/* ══════════════════════════════════════════════════════════════════════
   GESTORÍA ANDREA CERDÁN · style.css
   Mobile-first · Poppins 400/500/700 · Sin frameworks externos
   ══════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────────── */
:root {
  --primary:         #064E3B;
  --primary-hover:   #0a6b52;
  --primary-light:   rgba(6, 78, 59, 0.07);
  --secondary:       #D4AF37;
  --secondary-hover: #b8961f;
  --text:            #1a1a1a;
  --text-muted:      #5a6270;
  --bg:              #ffffff;
  --bg-light:        #f7f8f4;
  --border:          #e5e7eb;
  --radius:          8px;
  --radius-lg:       14px;
  --shadow:          0 2px 14px rgba(0, 0, 0, 0.07);
  --shadow-hover:    0 6px 24px rgba(6, 78, 59, 0.12);
  --font:            'Poppins', system-ui, -apple-system, sans-serif;
  --transition:      200ms ease;
}

/* ── RESET & BASE ────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ── CONTAINER ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.h3-sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95em;
}

p {
  line-height: 1.7;
}

/* ── EYEBROW BADGE ───────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.4em 1em;
  border-radius: 100px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-hover);
}

.btn--secondary {
  background: var(--secondary);
  color: #1a1a1a;
}
.btn--secondary:hover {
  background: var(--secondary-hover);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover {
  background: #1eb957;
}

.btn--full {
  width: 100%;
}


/* ════════════════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.navbar__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

.navbar__link:hover {
  color: var(--primary);
}

.navbar__link[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}


/* ════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--bg-light);
  padding: 3.5rem 0 3rem;
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

/* ════════════════════════════════════════════════════════════════════════
   TOP BAR — aviso de servicio privado independiente
   ════════════════════════════════════════════════════════════════════════ */
.top-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.6rem 1rem;
}

.top-bar__text {
  max-width: 1100px;
  margin: 0 auto;
  color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}


/* ════════════════════════════════════════════════════════════════════════
   TESTIMONIOS
   ════════════════════════════════════════════════════════════════════════ */
.testimonios {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0;
}

.testimonios__rating {
  text-align: center;
  margin-bottom: 2.25rem;
}

.stars {
  display: block;
  font-size: 1.6rem;
  color: var(--secondary);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.testimonios__rating p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.testimonios__rating strong {
  color: #fff;
}

.testimonios__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.testimonio {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.testimonio:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.2);
  transform: translateY(-3px);
}


/* ════════════════════════════════════════════════════════════════════════
   ONLINE, PERO CERCA DE TI (trust)
   ════════════════════════════════════════════════════════════════════════ */
.trust {
  background: var(--bg-light);
  padding: 4.5rem 0;
  text-align: center;
}

.trust__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.trust__inner h2 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.trust__inner p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.trust__inner p strong {
  color: var(--text);
}


/* ════════════════════════════════════════════════════════════════════════
   SERVICIOS
   ════════════════════════════════════════════════════════════════════════ */
.servicios {
  padding: 5rem 0;
}

.servicios__note {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.servicios__note p {
  color: var(--text-muted);
  font-size: 1rem;
}

.servicios h2 {
  text-align: center;
  margin-bottom: 2.75rem;
}

.servicios__grid {
  display: grid;
  gap: 1.5rem;
}

.servicio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.servicio-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.servicio-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius);
  color: var(--primary);
  flex-shrink: 0;
}

.servicio-card h3 {
  color: var(--primary);
}

.servicio-card__lead {
  font-weight: 600;
  font-size: 0.9375rem;
}

.servicio-card__list {
  padding-left: 1.2rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.servicio-card__note {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--secondary);
}

.servicio-card__precio {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}


/* ════════════════════════════════════════════════════════════════════════
   ¿CONVERTIMOS LO DIFÍCIL EN FÁCIL? (valueprops)
   ════════════════════════════════════════════════════════════════════════ */
.valueprops {
  padding: 5rem 0;
}

.valueprops h2 {
  text-align: center;
  margin-bottom: 2.75rem;
}

.valueprops__grid {
  display: grid;
  gap: 2.5rem;
  position: relative;
}

.valueprop {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.valueprop:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.valueprop__num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg-light), 0 0 0 6px var(--secondary), 0 6px 16px rgba(6, 78, 59, 0.25);
}

.valueprop h3 {
  color: var(--primary);
}

.valueprop p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}


/* ════════════════════════════════════════════════════════════════════════
   BIO ANDREA
   ════════════════════════════════════════════════════════════════════════ */
.bio {
  background: var(--bg-light);
  padding: 5rem 0;
}

.bio__inner {
  display: grid;
  gap: 2.5rem;
}

.bio__image img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.bio__content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bio__content h2 {
  color: var(--primary);
}


/* ════════════════════════════════════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════════════════════════════════════ */
.contacto {
  background: var(--primary);
  color: #fff;
  padding: 5rem 0;
}

.contacto__inner {
  display: grid;
  gap: 3rem;
}

.contacto__copy h2 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.contacto__copy > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.25rem;
  font-size: 1.0625rem;
}

.contacto__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto__info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.contacto__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.contacto__info a {
  color: var(--secondary);
}

.contacto__info a:hover {
  text-decoration: underline;
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color var(--transition), background var(--transition);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.12);
}

.form__group textarea {
  resize: vertical;
  min-height: 110px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.form__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--secondary);
  cursor: pointer;
}

.form__check label {
  cursor: pointer;
  line-height: 1.5;
}

.form__check a {
  color: var(--secondary);
}

.form__check a:hover {
  text-decoration: underline;
}

/* Success message */
.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.form__success-icon {
  font-size: 2.5rem;
}

.form__success p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 280px;
}


/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.footer {
  background: #0c0c0c;
  color: rgba(255, 255, 255, 0.5);
  padding: 1.75rem 0;
  font-size: 0.82rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--secondary);
}


/* ════════════════════════════════════════════════════════════════════════
   PÁGINAS LEGALES
   ════════════════════════════════════════════════════════════════════════ */
.legal {
  padding: 3.5rem 0 5rem;
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal__inner h1 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.legal__updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.legal__inner h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal__inner h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal__inner p {
  margin-bottom: 1rem;
  color: var(--text);
}

.legal__inner ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal__inner a {
  color: var(--primary);
  text-decoration: underline;
}

.legal__inner strong {
  color: var(--text);
}

.legal__pending {
  background: var(--bg-light);
  border-left: 3px solid var(--secondary);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}


/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (640px+)
   ════════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .testimonios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar__nav {
    display: flex;
  }
}


/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (920px+)
   ════════════════════════════════════════════════════════════════════════ */
@media (min-width: 920px) {

  /* Hero */
  .hero {
    padding: 5rem 0 4.5rem;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
  }

  .hero__image {
    justify-content: flex-end;
  }

  .hero__image img {
    max-width: none;
    width: 100%;
  }

  /* Testimonios */
  .testimonios__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Servicios */
  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Value props */
  .valueprops__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .valueprops__grid::before {
    content: '';
    position: absolute;
    top: 58px;
    left: 16.5%;
    width: 67%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--secondary) 0, var(--secondary) 8px, transparent 8px, transparent 16px);
    z-index: 0;
  }

  /* Bio */
  .bio__inner {
    grid-template-columns: 360px 1fr;
    align-items: center;
    gap: 5rem;
  }

  .bio__image img {
    max-width: none;
    margin: 0;
    width: 100%;
  }

  /* Contacto */
  .contacto__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 5rem;
  }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
