/* ============================================================
   service.css — Grupo FM Bulk Fumigation
   Common styles shared across all 5 service pages.
   Each page links this file + keeps a small inline <style>
   for its own section layouts only.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Accessibility: focus visible for keyboard nav */
*:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 2px; }

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root {
  --verde: #8fcc00;
  --azul: #0080ff;
  --negro: #080808;
  --blanco: #ffffff;
  --gris-oscuro: #111111;
  --gris-medio: #1a1a1a;
  --gris-texto: #aaaaaa;
}

html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--negro); color: var(--blanco); overflow-x: hidden; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 72px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.nav-logo img { height: 64px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: #444; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--verde); }
.nav-cta { background: var(--verde); color: var(--negro) !important; padding: 9px 22px; border-radius: 4px; font-weight: 700 !important; }
.nav-cta:hover { background: #a3e600 !important; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 60vh;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  padding: 120px 40px 80px;
  background: var(--negro);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
/* both class names used across pages */
.hero-bg, .hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.5) 60%, rgba(8,8,8,0.3) 100%),
    linear-gradient(180deg, rgba(8,8,8,0.4) 0%, rgba(8,8,8,0.2) 50%, rgba(8,8,8,0.75) 100%);
  z-index: 1;
}
/* both class names used across pages */
.hero-grid, .hero-grid-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(143,204,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(143,204,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px; z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.breadcrumb a { color: var(--gris-texto); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--verde); }
.breadcrumb span { color: #444; font-size: 13px; }
.breadcrumb .current { color: var(--verde); font-size: 13px; font-weight: 600; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(143,204,0,0.1); border: 1px solid rgba(143,204,0,0.3);
  color: var(--verde); font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 2px; margin-bottom: 24px;
  white-space: nowrap;
}
.hero-badge span:first-child { width: 6px; height: 6px; min-width: 6px; background: var(--verde); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900; line-height: 0.95;
  text-transform: uppercase; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--verde); display: block; }
.hero-desc { font-size: 17px; line-height: 1.7; color: var(--gris-texto); max-width: 560px; margin-bottom: 36px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--verde); color: var(--negro); font-weight: 700;
  font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 4px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #a3e600; transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--blanco); font-weight: 600;
  font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 13px 28px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--verde); background: rgba(143,204,0,0.06); }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── SECTIONS BASE ───────────────────────────────────────── */
section { padding: 100px 40px; }
.section-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--verde); font-weight: 700; margin-bottom: 16px; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(36px, 5vw, 56px); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; margin: 0 0 48px 0; }
h2.section-title { margin-top: 0; }
.section-title span { color: var(--verde); }

/* ── DOC CARDS (shared across pages that have a docs section) */
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; }
.doc-card { background: var(--gris-medio); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 32px; display: flex; align-items: center; gap: 20px; transition: border-color 0.3s, background 0.3s; }
.doc-card:hover { border-color: rgba(143,204,0,0.3); background: #1e1e1e; }
.doc-icon { width: 52px; height: 52px; background: rgba(143,204,0,0.1); border: 1px solid rgba(143,204,0,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-icon svg { width: 26px; height: 26px; stroke: var(--verde); fill: none; stroke-width: 1.5; }
.doc-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.doc-card p { font-size: 12px; color: var(--gris-texto); line-height: 1.5; }

/* ── CTA FINAL ───────────────────────────────────────────── */
#cta { background: var(--verde); padding: 80px 40px; text-align: center; }
#cta h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(36px, 5vw, 60px); font-weight: 900; text-transform: uppercase; color: var(--negro); margin-bottom: 16px; line-height: 1; }
#cta p { font-size: 17px; color: rgba(8,8,8,0.65); margin-bottom: 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-dark { display: inline-flex; align-items: center; gap: 10px; background: var(--negro); color: var(--blanco); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; padding: 14px 28px; border-radius: 4px; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.btn-dark:hover { background: #1a1a1a; transform: translateY(-2px); }
.btn-outline-dark { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--negro); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; padding: 13px 28px; border: 2px solid rgba(8,8,8,0.3); border-radius: 4px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.btn-outline-dark:hover { border-color: var(--negro); background: rgba(8,8,8,0.08); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: #050505; border-top: 1px solid #111111; padding: 72px 40px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-col-title { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #ffffff; margin-bottom: 20px; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-list a { font-size: 13px; color: #555; text-decoration: none; transition: color 0.2s; }
.footer-links-list a:hover { color: var(--verde); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: #1a1a1a; border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: border-color 0.2s; }
.social-btn:hover { border-color: var(--verde); }
.social-btn svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 1.5; transition: stroke 0.2s; }
.social-btn:hover svg { stroke: var(--verde); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact-item svg { width: 15px; height: 15px; stroke: var(--verde); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span, .footer-contact-item a { font-size: 13px; color: #555; line-height: 1.6; text-decoration: none; }
.footer-contact-item a:hover { color: var(--verde); }
.footer-divider { height: 1px; background: #111; margin: 48px 0 24px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom span { font-size: 12px; color: #333; }

/* ── WHATSAPP ────────────────────────────────────────────── */
.ws-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ws-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.ws-float svg { width: 32px; height: 32px; color: #fff; }
.ws-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(37,211,102,0.4); animation: ws-pulse 2.5s ease-out infinite;
}
@keyframes ws-pulse { 0%{transform:scale(1);opacity:.6} 70%,100%{transform:scale(1.5);opacity:0} }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── LANG SWITCHER ───────────────────────────────────────── */
.lang-switcher { display: flex; align-items: center; gap: 3px; margin-left: 12px; }
.lang-btn { background: none; border: 1px solid rgba(0,0,0,0.18); color: #555; font-family: 'Barlow', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 3px; cursor: pointer; transition: all 0.2s; line-height: 1; }
.lang-btn:hover { border-color: var(--verde); color: var(--verde); }
.lang-btn.active { background: var(--verde); border-color: var(--verde); color: var(--negro); }

/* ── HAMBURGER / MOBILE NAV ──────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 200; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #333; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 99; background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.08); box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-8px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; pointer-events: none; }
.nav-mobile.active { transform: translateY(0); opacity: 1; pointer-events: all; }
.nav-mobile ul { list-style: none; padding: 12px 0; }
.nav-mobile-link { display: block; padding: 14px 24px; color: #444; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid rgba(0,0,0,0.04); transition: color 0.2s, background 0.2s; }
.nav-mobile-link:hover { color: var(--verde); background: rgba(143,204,0,0.04); }
.nav-mobile-cta { margin: 12px 24px; background: var(--verde); color: var(--negro) !important; font-weight: 700 !important; border-radius: 4px; text-align: center; border-bottom: none !important; }
.nav-mobile-cta:hover { background: #a3e600 !important; }

/* ── COTIZACIÓN FORM ─────────────────────────────────────── */
#cotizacion { background: var(--gris-oscuro); padding: 80px 40px; }
.cotizacion-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cotizacion-trust-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.cotizacion-trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(143,204,0,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-icon svg { width: 15px; height: 15px; stroke: var(--verde); fill: none; stroke-width: 2; }
.cotizacion-trust-item span { font-size: 14px; color: var(--gris-texto); }
.form-box { background: var(--gris-medio); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row .form-field { margin-bottom: 0; }
.field-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #888; }
.field-input { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 12px 14px; color: var(--blanco); font-family: 'Barlow', sans-serif; font-size: 14px; width: 100%; transition: border-color 0.2s; outline: none; -webkit-appearance: none; appearance: none; }
.field-input:focus { border-color: var(--verde); background: rgba(143,204,0,0.04); }
.field-input::placeholder { color: #555; }
.field-input.field-error { border-color: #ff4444; }
select.field-input { cursor: pointer; }
textarea.field-input { resize: vertical; min-height: 100px; }
.form-feedback { font-size: 13px; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; display: none; }
.form-feedback.error { color: #ff4444; background: rgba(255,68,68,0.06); border: 1px solid rgba(255,68,68,0.15); }
.form-feedback.success { color: var(--verde); font-weight: 600; background: rgba(143,204,0,0.06); border: 1px solid rgba(143,204,0,0.2); }
.btn-submit { width: 100%; background: var(--verde); color: var(--negro); font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 16px 24px; border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.2s, transform 0.2s; }
.btn-submit:hover:not(:disabled) { background: #a3e600; transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
  section { padding: 60px 24px; }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  footer { padding: 48px 24px 28px; }
  .cotizacion-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #cotizacion { padding: 60px 20px; }
  .form-box { padding: 28px 20px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
