/* ============================================
   Cría con Ciencia · Estilos compartidos
   ============================================ */

:root {
  --navy: #1f3a4a;
  --navy-deep: #0f2535;
  --navy-soft: #2d4a5e;
  --coral: #e8a3a3;
  --coral-deep: #d68585;
  --coral-soft: #fde8e8;
  --mint: #8fc0b8;
  --mint-deep: #6ea69c;
  --mint-soft: #e0efec;
  --lavender: #b8a8d9;
  --lavender-soft: #ece8f5;
  --paper: #fbf8f3;
  --cream: #faf6f0;
  --ink: #1f3a4a;
  --ink-soft: #5a6b7a;
  --ink-mute: #8a98a4;
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--coral); color: var(--navy-deep); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .3s ease;
}
nav.scrolled {
  box-shadow: 0 2px 24px rgba(31, 58, 74, 0.06);
  padding: 0.8rem 3rem;
}

.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-brand img { width: 44px; height: 44px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-name { font-weight: 700; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.01em; }
.nav-brand-tagline { font-size: 0.7rem; color: var(--ink-soft); font-weight: 400; letter-spacing: 0.02em; }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links > a, .nav-dropdown > a {
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  transition: color .2s; position: relative; cursor: pointer;
}
.nav-links a:hover, .nav-dropdown > a:hover { color: var(--coral-deep); }
.nav-links a.active, .nav-dropdown.active > a { color: var(--coral-deep); }
.nav-links a.active::after, .nav-dropdown.active > a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 24px; height: 2px; background: var(--coral-deep); border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: '▾'; margin-left: 0.3rem; font-size: 0.7rem;
  display: inline-block; transition: transform .2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white; border-radius: 14px; padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(31, 58, 74, 0.12);
  border: 1px solid rgba(31, 58, 74, 0.06);
  opacity: 0; visibility: hidden;
  transition: all .25s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 0.7rem 1rem;
  font-size: 0.9rem; color: var(--navy);
  border-radius: 8px; transition: background .2s;
}
.nav-dropdown-menu a:hover { background: var(--coral-soft); color: var(--coral-deep); }

.nav-cta {
  background: var(--coral-deep); color: white !important;
  padding: 0.75rem 1.4rem; border-radius: 999px;
  font-size: 0.9rem !important; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all .25s ease;
}
.nav-cta:hover { background: var(--navy); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }

.nav-toggle { display: none; background: none; border: none; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; border-radius: 2px; }

@media (max-width: 1100px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
    height: 100vh; flex-direction: column; justify-content: center;
    background: var(--paper); padding: 2rem; gap: 1.5rem;
    box-shadow: -8px 0 32px rgba(0,0,0,0.08); transition: right .35s ease;
    align-items: flex-start;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0.3rem 0 0.3rem 1rem;
    background: transparent; min-width: auto;
  }
  .nav-dropdown:hover > a::after { transform: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.65rem; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  cursor: pointer; border: none;
  transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(214, 133, 133, 0.3); }
.btn-outline { background: transparent; color: var(--coral-deep); border: 1.5px solid var(--coral-deep); }
.btn-outline:hover { background: var(--coral-deep); color: white; transform: translateY(-2px); }
.btn-text { background: transparent; color: var(--navy); padding: 0.95rem 0.5rem; border-bottom: 1.5px solid var(--navy); border-radius: 0; }
.btn-text:hover { color: var(--coral-deep); border-color: var(--coral-deep); }
.btn svg { width: 18px; height: 18px; }
.btn .arrow-circle {
  width: 26px; height: 26px; border-radius: 50%;
  background: white; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn .arrow-circle svg { width: 14px; height: 14px; }

/* ============ SECTIONS ============ */
section { position: relative; }
.section-pad { max-width: 1500px; margin: 0 auto; padding: 6rem 3rem; }
@media (max-width: 768px) { .section-pad { padding: 4rem 1.5rem; } }

.section-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 1rem;
}

h1, h2 {
  font-family: var(--font);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.025em; color: var(--navy);
}
h1.section-title, h2.section-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}
.section-title .pink { color: var(--coral-deep); }
.section-title .mint { color: var(--mint-deep); }
.section-title .lav { color: var(--lavender); }

.section-lead { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); max-width: 680px; }

/* ============ INNER PAGE HERO ============ */
.page-hero {
  padding: 9rem 3rem 5rem; max-width: 1500px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--navy); margin-bottom: 1.5rem;
}
.page-hero h1 .pink { color: var(--coral-deep); }
.page-hero h1 .mint { color: var(--mint-deep); }
.page-hero p {
  font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); max-width: 520px;
}
.page-hero-visual { position: relative; }
.page-hero-photo {
  position: relative; aspect-ratio: 1.1;
  border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(31, 58, 74, 0.15);
}
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.page-hero-shape-mint, .page-hero-shape-pink {
  position: absolute; opacity: 0.5; z-index: 0;
}
.page-hero-shape-mint {
  left: -50px; top: 30%; width: 160px; height: 160px;
  background: var(--mint);
  border-radius: 50% 60% 50% 40% / 60% 50% 50% 40%;
}
.page-hero-shape-pink {
  right: -30px; bottom: 5%; width: 180px; height: 160px;
  background: var(--coral);
  border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
}

@media (max-width: 980px) {
  .page-hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; gap: 3rem; }
  .page-hero-shape-mint, .page-hero-shape-pink { display: none; }
}

/* ============ FOOTER ============ */
footer { background: var(--navy-deep); color: var(--cream); padding: 3rem 3rem 2rem; }
@media (max-width: 768px) { footer { padding: 2.5rem 1.5rem 2rem; } }

.footer-main {
  max-width: 1500px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1.4fr 1fr 1fr;
  gap: 2.5rem; align-items: center;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(250, 246, 240, 0.1);
}
@media (max-width: 1100px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; gap: 2rem; text-align: center; } }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; position: relative; z-index: 2; }
.footer-brand img {
  width: 52px; height: 52px;
  filter: brightness(0) invert(1);
  position: relative; z-index: 3;
  display: block;
}
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand-text strong { font-size: 1.15rem; font-weight: 700; }
.footer-brand-text span { font-size: 0.78rem; color: rgba(250, 246, 240, 0.6); }

.footer-quote {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(250, 246, 240, 0.85); font-size: 0.92rem; line-height: 1.5;
}
.footer-quote-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(232, 163, 163, 0.2); color: var(--coral);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-quote-icon svg { width: 18px; height: 18px; }

.footer-contacts { display: grid; gap: 0.6rem; }
.footer-contact-row {
  display: flex; align-items: center; gap: 0.6rem;
  color: rgba(250, 246, 240, 0.85); font-size: 0.88rem;
}
.footer-contact-row svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-contact-row .green { color: #25D366; }
.footer-contact-row .pink { color: var(--coral); }

.footer-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  border: 1.5px solid rgba(250, 246, 240, 0.4);
  color: var(--cream); font-weight: 600; font-size: 0.9rem;
  transition: all .25s ease; justify-self: end;
}
@media (max-width: 600px) { .footer-cta { justify-self: center; } }
.footer-cta:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.footer-cta svg { width: 16px; height: 16px; }

.footer-bottom {
  max-width: 1500px; margin: 0 auto; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  color: rgba(250, 246, 240, 0.5); font-size: 0.8rem;
}

/* ============ FLOATING CONTACT BUTTONS ============ */
.float-contact {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  transition: all .25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.float-btn svg { width: 26px; height: 26px; }
.float-btn:hover { transform: scale(1.08); }
.float-btn.email {
  background: var(--coral-deep);
  box-shadow: 0 8px 24px rgba(214, 133, 133, 0.45);
}
.float-btn.email:hover { box-shadow: 0 12px 30px rgba(214, 133, 133, 0.6); }
.float-btn.whatsapp {
  background: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.float-btn.whatsapp:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55); }

/* Backwards-compat: si quedó algún .whatsapp-float suelto */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
