/* ============================================
   IA PRO — v5: Mediterráneo premium + confianza
   ============================================ */

:root {
  --color-fondo: #FBFAF7;
  --color-verde: #0F6E56;
  --color-verde-oscuro: #0A4F3E;
  --color-verde-suave: rgba(15, 110, 86, 0.06);
  --color-ambar: #E8B84B;
  --color-ambar-texto: #9c7a1f;
  --color-gris: #2C2C2A;
  --color-blanco: #FFFFFF;

  --fuente-titulos: "Poppins", sans-serif;
  --fuente-texto: "Source Sans 3", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-fondo);
  color: var(--color-gris);
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul, dl, ol {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  color: var(--color-verde);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  margin-bottom: 1.75rem;
  max-width: 20ch;
}

.titulo-centrado {
  max-width: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ambar-texto);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.6rem;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.2rem;
  height: 2px;
  background: var(--color-ambar);
}

.eyebrow-center {
  text-align: center;
  padding-left: 0;
}

.eyebrow-center::before {
  left: 50%;
  transform: translateX(-50%);
  top: -0.6rem;
}

section {
  padding: 4.5rem 0;
}

/* ---------- Foco visible ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-ambar);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-verde);
  color: var(--color-blanco);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta {
  background: var(--color-ambar);
  color: var(--color-gris);
  padding: 0.9rem 1.85rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 184, 75, 0.45);
}

.btn-large {
  padding: 1.05rem 2.3rem;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-fondo);
  border-bottom: 1px solid rgba(15, 110, 86, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 24px;
}

.logo {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-verde);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.logo-dot {
  color: var(--color-ambar);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 400;
  color: var(--color-gris);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--color-verde);
}

.nav-cta {
  padding: 0.6rem 1.35rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-verde);
}

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  text-align: center;
  width: 100%;
}

.hero .kicker {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-verde);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  margin-bottom: 1.25rem;
  max-width: none;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

/* ---------- Badges de confianza (bajo el CTA principal) ---------- */
.trust-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-gris);
}

.trust-badges li {
  position: relative;
  padding-left: 1.3rem;
}

.trust-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ambar);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 110, 86, 0.16);
}

.stat dt {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--color-verde);
}

.stat dd {
  font-size: 0.85rem;
  margin-top: 0.2rem;
  line-height: 1.35;
}

.hero-image {
  width: 100%;
  max-width: 340px;
}

/* ---------- Marco de foto premium ---------- */
.frame-premium {
  position: relative;
}

.frame-premium::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  background: var(--color-ambar);
  border-radius: 6px;
  z-index: 0;
}

.frame-premium-alt::before {
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  background: var(--color-verde-suave);
  border: 1.5px solid var(--color-verde);
}

.foto-real {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1.5px solid var(--color-verde);
  border-radius: 6px;
}

/* ---------- Empatía ---------- */
.empatia {
  background: var(--color-blanco);
}

.empatia h2 {
  max-width: 24ch;
}

.empatia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(15, 110, 86, 0.14);
}

.empatia-grid p {
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(15, 110, 86, 0.14);
  font-size: 1.05rem;
}

.empatia-cierre {
  margin-top: 2.25rem;
  font-family: var(--fuente-titulos);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--color-verde);
  max-width: 52ch;
}

/* ---------- Cómo trabajo ---------- */
.tarjetas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1rem;
}

.tarjeta {
  padding: 2rem 0;
  border-top: 1px solid rgba(15, 110, 86, 0.16);
}

.tarjeta:last-child {
  border-bottom: 1px solid rgba(15, 110, 86, 0.16);
}

.tarjeta-numero {
  display: block;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-ambar-texto);
  margin-bottom: 0.6rem;
}

.tarjeta h3 {
  margin-bottom: 0.6rem;
  color: var(--color-gris);
}

/* ---------- Proceso ---------- */
.proceso {
  background: var(--color-blanco);
}

.proceso-subtitulo {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto 2.75rem;
}

.pasos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  counter-reset: paso;
}

.paso {
  text-align: center;
  padding: 0 1rem;
}

.paso-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border: 1.5px solid var(--color-verde);
  border-radius: 50%;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-verde);
}

.paso h3 {
  margin-bottom: 0.5rem;
}

.paso p {
  font-size: 0.95rem;
}

/* ---------- Sobre mí ---------- */
.sobre-mi {
  background: var(--color-fondo);
}

.sobre-mi-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.sobre-mi-imagen {
  width: 100%;
  max-width: 280px;
}

.sobre-mi-texto p {
  margin-bottom: 1rem;
}

.sobre-mi-local {
  font-weight: 700;
}

.firma {
  margin-top: 2rem;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-verde);
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-ambar);
  display: inline-block;
}

.firma-cargo {
  display: block;
  font-family: var(--fuente-texto);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-gris);
  margin-top: 0.2rem;
}

/* ---------- Pack ---------- */
.pack {
  background: var(--color-blanco);
}

.pack-panel {
  max-width: 620px;
  margin: 0 auto;
  background: var(--color-fondo);
  border: 1px solid rgba(15, 110, 86, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.pack-barra {
  height: 6px;
  background: var(--color-ambar);
}

.pack-cuerpo {
  padding: 2rem 2.25rem 1rem;
}

.pack-cuerpo h3 {
  color: var(--color-verde);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.pack-lista li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.pack-lista li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-ambar-texto);
  font-weight: 700;
}

.pack-precio-bloque {
  padding: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  border-top: 1px dashed rgba(15, 110, 86, 0.25);
  margin: 0 2.25rem;
}

.pack-precio {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.pack-precio .cifra {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--color-verde);
  white-space: nowrap;
}

.pack-precio .unidad {
  font-size: 1.05rem;
  color: var(--color-gris);
}

.pack-nota {
  font-size: 0.8rem;
  opacity: 0.7;
}

.pack-recordatorio {
  font-weight: 700;
  text-align: center;
  max-width: 520px;
  margin: 1.75rem auto 0;
}

.pack-cta {
  text-align: center;
  margin-top: 1.75rem;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--color-fondo);
}

.faq-lista {
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid rgba(15, 110, 86, 0.16);
}

.faq-item {
  border-bottom: 1px solid rgba(15, 110, 86, 0.16);
  padding: 1.1rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--fuente-titulos);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--color-gris);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-verde);
  border: 1.5px solid var(--color-verde);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  color: var(--color-verde);
}

.faq-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.faq-item p {
  margin-top: 0.9rem;
  padding-right: 2.6rem;
  font-size: 0.98rem;
}

/* ---------- Contacto ---------- */
.contacto-subtitulo {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.formulario {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-blanco);
  padding: 2rem;
  border: 1px solid rgba(15, 110, 86, 0.2);
  border-radius: 6px;
}

.campo {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
}

.campo label {
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.opcional {
  font-weight: 400;
  opacity: 0.65;
}

.campo input,
.campo textarea {
  font-family: var(--fuente-texto);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(15, 110, 86, 0.3);
  border-radius: 4px;
  background: var(--color-fondo);
  color: var(--color-gris);
}

.campo input:focus,
.campo textarea:focus {
  border-color: var(--color-verde);
}

.formulario .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.formulario-nota {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.9rem;
}

.form-mensaje {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
}

.form-mensaje--exito {
  background: var(--color-verde-suave);
  color: var(--color-verde);
  border: 1.5px solid var(--color-verde);
}

.form-mensaje--error {
  background: var(--color-fondo);
  color: var(--color-gris);
  border: 1.5px solid var(--color-ambar);
}

.form-mensaje--error a {
  color: var(--color-verde);
  text-decoration: underline;
}

.contacto-directo {
  text-align: center;
  margin-top: 2.5rem;
}

.contacto-directo a {
  color: var(--color-verde);
  font-weight: 700;
  text-decoration: none;
}

.contacto-directo a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-verde);
  color: var(--color-blanco);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.footer-inner a {
  color: var(--color-blanco);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 0.6rem 0;
}

.footer-legal {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- Barra CTA fija (móvil) ---------- */
.cta-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--color-fondo);
  border-top: 1px solid rgba(15, 110, 86, 0.2);
  box-shadow: 0 -6px 18px rgba(44, 44, 42, 0.08);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.cta-sticky.visible {
  transform: translateY(0);
}

.cta-sticky .btn {
  display: block;
  text-align: center;
  width: 100%;
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 640px) {
  .tarjetas {
    grid-template-columns: repeat(3, 1fr);
  }

  .tarjeta {
    padding: 0 2rem 0 0;
    border-top: none;
    border-bottom: none !important;
    border-left: 1px solid rgba(15, 110, 86, 0.16);
    padding-left: 2rem;
  }

  .tarjeta:first-child {
    border-left: none;
    padding-left: 0;
  }

  .pasos {
    grid-template-columns: repeat(3, 1fr);
  }

  .pack-precio-bloque {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

@media (min-width: 860px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .hero-text {
    text-align: left;
    flex: 1.15;
  }

  .hero .kicker,
  .hero-subtitle {
    margin-left: 0;
  }

  .hero-image {
    flex: 0 0 360px;
    max-width: 360px;
  }

  .trust-badges {
    align-items: flex-start;
  }

  .stats {
    max-width: 460px;
  }

  .sobre-mi-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .sobre-mi-imagen {
    flex: 0 0 300px;
  }

  .sobre-mi-texto {
    flex: 1;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-enlaces {
    text-align: right;
  }

  .footer-social {
    justify-content: flex-end;
  }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--color-blanco);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .main-nav.abierto {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .cta-sticky {
    display: block;
  }

  /* Deja hueco al final para que la barra fija no tape el footer */
  .site-footer {
    padding-bottom: calc(3rem + 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn, .main-nav, .cta-sticky, .faq-item summary::after {
    transition: none;
  }
}
