/* =====================================================================
   Jenny Cangrejo · Contadora Pública — Hoja de estilos principal
   Paleta: verde bosque + esmeralda + blancos y grises muy claros.
   Estructura: 1) Variables  2) Reset/base  3) Utilidades
               4) Componentes por sección  5) Responsive
   ===================================================================== */

/* ============================ 1) VARIABLES ============================ */
:root {
  /* Verdes de marca */
  --forest:        #06291F;   /* verde bosque profundo (fondos oscuros) */
  --forest-800:    #0A3A2A;
  --emerald:       #0E8C5A;   /* esmeralda principal (acento) */
  --emerald-600:   #0B7A4E;
  --emerald-700:   #096B44;
  --emerald-300:   #34D399;   /* esmeralda claro / brillos */
  --mint:          #EAF7F0;   /* verde muy claro para fondos suaves */
  --mint-2:        #F2FBF6;

  /* Neutros */
  --white:  #FFFFFF;
  --gray-50: #F7FAF9;
  --gray-100:#EFF4F2;
  --border:  #E4EDE9;
  --ink:     #0B1512;   /* texto principal casi negro */
  --muted:   #566762;   /* texto secundario */
  --muted-2: #8A9793;

  /* Sistema */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(6,41,31,.06), 0 4px 14px rgba(6,41,31,.05);
  --shadow-md: 0 8px 30px rgba(6,41,31,.08);
  --shadow-lg: 0 24px 60px rgba(6,41,31,.14);
  --shadow-emerald: 0 14px 34px rgba(14,140,90,.30);

  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1180px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
}

/* ============================ 2) RESET / BASE ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

::selection { background: var(--emerald-300); color: var(--forest); }

/* ============================ 3) UTILIDADES ============================ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--tint { background: linear-gradient(180deg, var(--mint-2), var(--white)); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--emerald-600);
  padding: 6px 14px; border-radius: 999px; background: var(--mint);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--emerald-300); background: rgba(52,211,153,.12); }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.01em; }
.section__lead { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.section__head--light .section__title, .section__head--light .eyebrow { color: var(--white); }
.section__lead--light { color: rgba(255,255,255,.72); }

.grad {
  background: linear-gradient(120deg, var(--emerald) 0%, var(--emerald-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease); }
.btn--primary { background: var(--emerald); color: #fff; box-shadow: var(--shadow-emerald); }
.btn--primary:hover { background: var(--emerald-600); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(14,140,90,.38); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--emerald-300); color: var(--emerald-700); transform: translateY(-2px); }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--forest-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--whatsapp { background: #25D366; color: #063a20; font-weight: 700; box-shadow: 0 14px 34px rgba(37,211,102,.35); }
.btn--whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--emerald-700); background: var(--mint); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(14,140,90,.15); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(14,140,90,.15); } 50% { box-shadow: 0 0 0 7px rgba(14,140,90,.05); } }

/* Animaciones scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ============================ NAVBAR ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { background: rgba(255,255,255,.9); border-color: var(--border); box-shadow: 0 6px 24px rgba(6,41,31,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__logo { display: grid; place-items: center; filter: drop-shadow(0 6px 12px rgba(14,140,90,.25)); }
.nav__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.nav__name span { color: var(--emerald-600); }
.nav__name--light { color: #fff; }
.nav__name--light span { color: var(--emerald-300); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--muted); padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s; position: relative; }
.nav__links a:not(.nav__cta):hover { color: var(--ink); background: var(--gray-50); }
.nav__cta { color: #fff !important; background: var(--emerald); padding: 10px 20px !important; margin-left: 8px; box-shadow: var(--shadow-emerald); transition: transform .2s var(--ease), background .2s; }
.nav__cta:hover { background: var(--emerald-600); transform: translateY(-1px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero { position: relative; padding: clamp(60px, 8vw, 96px) 0 clamp(40px, 5vw, 60px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 78% 8%, rgba(52,211,153,.20), transparent 60%),
    radial-gradient(600px 500px at 10% 20%, rgba(14,140,90,.10), transparent 55%),
    linear-gradient(180deg, var(--mint-2), var(--white) 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 6vw, 66px); letter-spacing: -0.02em; }
.hero__subtitle { margin-top: 22px; font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__trust { display: flex; align-items: center; gap: 14px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); max-width: 520px; }
.hero__trust p { font-size: 14.5px; color: var(--muted); }
.hero__avatars { display: flex; }
.hero__avatars span { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid #fff; margin-left: -12px; background: linear-gradient(135deg, var(--emerald-300), var(--emerald)); box-shadow: var(--shadow-sm); }
.hero__avatars span:first-child { margin-left: 0; }
.hero__avatars span:nth-child(2){ background: linear-gradient(135deg, #6EE7B7, var(--emerald-600)); }
.hero__avatars span:nth-child(3){ background: linear-gradient(135deg, #A7F3D0, var(--emerald)); }
.hero__avatars span:nth-child(4){ background: linear-gradient(135deg, var(--forest), var(--emerald-700)); }

.hero__media { position: relative; }

/* Marco de fotografía (placeholder) */
.photo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(14,140,90,.05) 0 14px, rgba(14,140,90,.02) 14px 28px),
    linear-gradient(160deg, var(--mint), #fff);
  border: 1.5px dashed var(--emerald-300);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.photo-frame--hero { aspect-ratio: 4 / 5; }
.photo-frame--about { aspect-ratio: 4 / 5; }
.photo-frame__placeholder { text-align: center; color: var(--emerald-700); padding: 24px; display: grid; gap: 6px; justify-items: center; }
.photo-frame__placeholder svg { opacity: .7; margin-bottom: 6px; }
.photo-frame__placeholder strong { font-size: 16px; }
.photo-frame__placeholder span { font-size: 13px; color: var(--muted); }
/* Cuando reemplaces por <img>: dale estas mismas clases si quieres el mismo marco */
.about__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
/* Foto del hero: marco de tamaño fijo (no depende del alto original de la imagen).
   object-fit: cover recorta lo que sobre para llenar el marco sin deformar. */
.hero__media { max-width: 440px; margin-left: auto; }
.hero__photo {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; height: 540px; object-fit: cover; object-position: center top;
}

/* Tarjetas flotantes decorativas */
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 13px 16px; border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.floating-card strong { display: block; font-size: 14px; }
.floating-card span { font-size: 12.5px; color: var(--muted); }
.floating-card__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--emerald); color: #fff; flex-shrink: 0; }
.floating-card__icon--soft { background: var(--mint); color: var(--emerald-600); }
.floating-card--a { bottom: 30px; left: -22px; animation: float 6s ease-in-out infinite; }
.floating-card--b { top: 34px; right: -18px; animation: float 6s ease-in-out infinite 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.credentials {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px;
  margin-top: clamp(40px, 5vw, 60px); padding: 20px 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 14.5px; font-weight: 600; color: var(--forest);
}
.credentials__sep { width: 5px; height: 5px; border-radius: 50%; background: var(--emerald-300); }

/* ============================ SERVICIOS ============================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-300));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--mint); color: var(--emerald-600); margin-bottom: 20px; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.service-card:hover .service-card__icon { background: var(--emerald); color: #fff; transform: scale(1.05) rotate(-3deg); }
.service-card h3 { font-size: 21px; margin-bottom: 8px; }
.service-card > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.service-card__list { display: grid; gap: 10px; }
.service-card__list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 13 4 4L19 7' stroke='%230E8C5A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.services-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 28px 34px; border-radius: var(--radius); background: var(--mint); border: 1px solid var(--border); }
.services-cta p { font-weight: 600; font-size: 17px; color: var(--forest); }

/* ============================ NOSOTROS ============================ */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
.about__media { position: relative; }
.about__badge {
  position: absolute; bottom: 22px; right: -14px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow-lg); text-align: left;
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--forest); }
.about__badge span { font-size: 13px; color: var(--muted); }
.about__role { color: var(--emerald-600); font-weight: 700; font-size: 18px; margin: 4px 0 18px; }
.about__text { color: var(--muted); margin-bottom: 16px; max-width: 560px; }
.about__creds { display: grid; gap: 14px; margin: 26px 0 30px; }
.about__creds li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.about__creds svg { color: var(--emerald); flex-shrink: 0; }

/* ============================ POR QUÉ ELEGIRNOS ============================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--mint); color: var(--emerald-600); margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 7px; }
.feature p { font-size: 14.5px; color: var(--muted); }
.feature--accent { background: linear-gradient(160deg, var(--forest), var(--emerald-700)); border-color: transparent; color: #fff; }
.feature--accent h3 { color: #fff; }
.feature--accent p { color: rgba(255,255,255,.78); }
.feature__icon--light { background: rgba(255,255,255,.14); color: var(--emerald-300); }

/* ============================ ESTADÍSTICAS ============================ */
.stats { position: relative; padding: clamp(70px, 9vw, 110px) 0; background: var(--forest); color: #fff; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 85% 15%, rgba(52,211,153,.16), transparent 60%), radial-gradient(500px 400px at 10% 90%, rgba(14,140,90,.18), transparent 60%); }
.stats > .container { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 20px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 58px); line-height: 1; background: linear-gradient(120deg, #fff, var(--emerald-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 12px; color: rgba(255,255,255,.75); font-size: 15px; font-weight: 500; }

/* ============================ PROCESO / TIMELINE ============================ */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.timeline__item { position: relative; padding-top: 46px; }
.timeline__item::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--emerald-300), var(--border)); }
.timeline__item:last-child::before { background: var(--emerald-300); }
.timeline__num {
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--emerald);
  color: var(--emerald-700); font-weight: 700; font-size: 14px; z-index: 1; box-shadow: 0 0 0 5px var(--mint-2);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.timeline__item:hover .timeline__num { background: var(--emerald); color: #fff; transform: scale(1.08); }
.timeline__body h3 { font-size: 18px; margin-bottom: 6px; }
.timeline__body p { font-size: 14.5px; color: var(--muted); }

/* ============================ TESTIMONIOS ============================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial__stars { color: #F5B301; letter-spacing: 3px; font-size: 17px; }
.testimonial blockquote { font-size: 16.5px; color: var(--ink); line-height: 1.6; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--emerald-300), var(--emerald)); color: #063a20; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.testimonial figcaption strong { display: block; font-size: 15px; }
.testimonial figcaption span span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ============================ FAQ / ACORDEÓN ============================ */
.faq { max-width: 820px; }
.accordion { display: grid; gap: 14px; }
.accordion__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.accordion__item.is-open { border-color: var(--emerald-300); box-shadow: var(--shadow-md); }
.accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; font-weight: 600; font-size: 17px; color: var(--ink); }
.accordion__chev { color: var(--emerald-600); flex-shrink: 0; transition: transform .35s var(--ease); }
.accordion__item.is-open .accordion__chev { transform: rotate(180deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion__inner { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ============================ CTA BAND ============================ */
.cta-band { padding: clamp(30px, 5vw, 50px) 0; }
.cta-band__inner {
  position: relative; text-align: center; max-width: 900px; margin: 0 auto;
  background: linear-gradient(150deg, var(--forest), var(--emerald-700));
  border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 72px) 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band__glow { position: absolute; inset: 0; background: radial-gradient(500px 300px at 20% 10%, rgba(52,211,153,.28), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(52,211,153,.16), transparent 60%); }
.cta-band__inner > * { position: relative; }
.cta-band__title { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: clamp(26px, 3.8vw, 40px); }
.cta-band__text { color: rgba(255,255,255,.78); margin: 16px auto 30px; max-width: 560px; font-size: 17px; }

/* ============================ CONTACTO ============================ */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.contact__intro { position: sticky; top: 100px; }
.contact__intro .section__head { text-align: left; margin: 0; }
.contact__intro .section__lead { margin-top: 14px; }
.contact__list { display: grid; gap: 18px; margin-top: 32px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--mint); color: var(--emerald-600); flex-shrink: 0; }
.contact__list strong { display: block; font-size: 14px; }
.contact__list a, .contact__list span { color: var(--muted); font-size: 15px; }
.contact__list a:hover { color: var(--emerald-700); }

.contact__form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-md); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--gray-50);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 4px rgba(14,140,90,.12); }
.field input.is-error { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.1); }
.contact__note { font-size: 13px; color: var(--muted-2); text-align: center; margin-top: 14px; }

/* ============================ FOOTER ============================ */
.footer { background: var(--forest); color: rgba(255,255,255,.7); padding-top: clamp(56px, 7vw, 84px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin: 18px 0 22px; font-size: 15px; max-width: 320px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .25s var(--ease), transform .25s var(--ease); }
.footer__social a:hover { background: var(--emerald); transform: translateY(-3px); }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .02em; }
.footer__col a, .footer__muted { display: block; font-size: 15px; color: rgba(255,255,255,.68); margin-bottom: 12px; transition: color .2s; }
.footer__col a:hover { color: var(--emerald-300); }
.footer__muted { color: rgba(255,255,255,.5); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.footer__bottom .footer__muted { margin: 0; }

/* ============================ FLOATING / UI ============================ */
.fab-whatsapp {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease); animation: fabIn .5s var(--ease) both .8s;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp__pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: fabPulse 2.4s ease-out infinite; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes fabIn { from { transform: scale(0); } to { transform: scale(1); } }

.back-to-top {
  position: fixed; bottom: 96px; right: 30px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--forest); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--forest); color: #fff; transform: translateY(-3px); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 101; background: linear-gradient(90deg, var(--emerald), var(--emerald-300)); transition: width .1s linear; }

/* ============================ 5) RESPONSIVE ============================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; margin: 6px auto 0; order: -1; }
  .hero__trust { margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; margin: 0 auto; }
  .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .timeline__item::before { display: none; }
  .contact { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  /* Menú móvil */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 18px 22px 26px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .nav__cta { margin: 6px 0 0; text-align: center; }

  .hero__actions .btn { flex: 1; }
  .services-cta { flex-direction: column; text-align: center; align-items: stretch; }
  .services-cta .btn { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .services-grid, .testimonials-grid, .features-grid, .stats-grid, .timeline { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .floating-card--a { left: 8px; }
  .floating-card--b { right: 8px; }
  .about__badge { right: 8px; }
  .fab-whatsapp { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .back-to-top { bottom: 82px; right: 21px; }
}
