/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --teal:        #1A9AA0;
  --teal-dark:   #0D5F63;
  --teal-light:  #2bb8bf;
  --magenta:     #E8197A;
  --magenta-lt:  #f04d9a;
  --gold:        #F5C518;
  --gold-dark:   #C9960A;
  --cream:       #FFFDF5;
  --text:        #0D2E30;
  --text-soft:   #4a7a7e;
  --white:       #ffffff;
  --radius:      1rem;
  --shadow:      0 4px 24px rgba(26,154,160,.10);
  --shadow-md:   0 8px 40px rgba(26,154,160,.16);
}

/* ── Reset / Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-white,
.btn-wa-nav,
.btn-wa-footer {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.6rem;
  border-radius: 2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, opacity .18s;
  border: 2px solid transparent;
}
.btn-primary:hover, .btn-wa-nav:hover, .btn-wa-footer:hover { transform: scale(1.04); }
.btn-primary:active, .btn-wa-nav:active                     { transform: scale(.97); }

.btn-primary  { background: var(--teal); color: var(--white); box-shadow: 0 4px 16px rgba(26,154,160,.30); }
.btn-secondary{ background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: var(--white); transform: scale(1.03); }

.btn-white    { background: var(--white); color: var(--teal-dark); }
.btn-white:hover { transform: scale(1.04); box-shadow: 0 6px 24px rgba(0,0,0,.12); }

.btn-wa-nav   { background: #25D366; color: var(--white); font-size: .88rem; padding: .55rem 1.2rem; }
.btn-wa-footer{ background: #25D366; color: var(--white); margin-top: 1.2rem; }

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

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,253,245,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(255,253,245,.97);
  border-color: rgba(26,154,160,.15);
  box-shadow: 0 2px 20px rgba(26,154,160,.10);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(26,154,160,.25);
}

.nav-title {
  font-family: 'Pacifico', cursive;
  color: var(--teal);
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-link {
  padding: .45rem .85rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--teal);
  transition: background .18s, color .18s;
}
.nav-link:hover, .nav-link.active {
  background: var(--teal);
  color: var(--white);
}

.nav-soon {
  position: relative;
  padding: .45rem .85rem;
  font-weight: 600;
  font-size: .9rem;
  color: rgba(26,154,160,.35);
  cursor: default;
}
.soon-badge {
  position: absolute;
  top: -4px; right: -2px;
  background: var(--gold);
  color: var(--teal-dark);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 1rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    background: rgba(255,253,245,.98);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-link, .nav-soon { padding: .85rem 1rem; font-size: 1rem; }
  .btn-wa-nav { justify-content: center; padding: .85rem 1rem; font-size: .95rem; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-light) 100%);
  overflow: hidden;
  padding-top: 66px;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
}
.shape-1 {
  width: 480px; height: 480px;
  background: var(--gold);
  top: -120px; right: -80px;
  animation: float 8s ease-in-out infinite;
}
.shape-2 {
  width: 320px; height: 320px;
  background: var(--magenta);
  bottom: 40px; left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--white);
  top: 40%; left: 40%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.04); }
}

.hero-inner {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 3rem 1.5rem 6rem;
  max-width: 680px;
}

.hero-logo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid rgba(255,255,255,.4);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
  margin-bottom: .75rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: .95;
}
.hero-sub strong { color: var(--gold); font-weight: 800; }

.hero-desc {
  font-size: .97rem;
  opacity: .85;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ── Section commons ────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: rgba(26,154,160,.10);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2rem;
  margin-bottom: .9rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--teal-dark);
  margin-bottom: .6rem;
}

.section-desc {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Value / Steps ──────────────────────────────────────── */
.value-section {
  padding: 6rem 0 4rem;
  background: var(--cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.step-icon {
  width: 60px; height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.step-num {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 2.5rem;
  font-family: 'Pacifico', cursive;
  color: rgba(26,154,160,.08);
  line-height: 1;
}

.step-title {
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin-bottom: .5rem;
}

.step-desc {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── Highlight ──────────────────────────────────────────── */
.highlight-section {
  padding: 4rem 0;
  background: var(--cream);
}

.highlight-card {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  border-radius: 1.75rem;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 48px rgba(13,95,99,.30);
}

@media (max-width: 640px) {
  .highlight-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
  }
  .highlight-deco { display: none; }
}

.highlight-title {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .9rem;
}
.highlight-desc {
  color: rgba(255,255,255,.82);
  font-size: .96rem;
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: 480px;
}

.highlight-deco {
  position: relative;
  width: 180px; height: 180px;
  flex-shrink: 0;
}
.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .18;
}
.deco-1 { width: 180px; height: 180px; background: var(--gold); top: 0; left: 0; }
.deco-2 { width: 110px; height: 110px; background: var(--magenta); top: 20px; left: 35px; opacity: .22; }
.deco-3 { width: 70px; height: 70px; background: var(--white); top: 55px; left: 55px; opacity: .3; }

.deco-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.deco-num { font-family: 'Pacifico', cursive; font-size: 2.8rem; line-height: 1; }
.deco-txt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; opacity: .85; text-transform: uppercase; }

/* ── Team preview ───────────────────────────────────────── */
.team-preview-section {
  padding: 5rem 0;
  background: var(--cream);
}

.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.persona-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.persona-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.persona-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.persona-initial {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  line-height: 1;
}

.persona-nombre {
  font-size: 1rem;
  color: var(--teal-dark);
  margin-bottom: .25rem;
}
.persona-rol {
  font-size: .83rem;
  color: var(--text-soft);
}

.team-preview-cta { text-align: center; }

/* ── Personas page ──────────────────────────────────────── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 9rem 0 5rem;
  text-align: center;
  overflow: hidden;
}
.hero-wave-sm svg { height: 60px; }

.page-hero-inner { color: var(--white); }
.page-hero-inner .section-tag { background: rgba(255,255,255,.18); color: var(--white); }
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: .75rem;
}
.page-desc {
  color: rgba(255,255,255,.82);
  font-size: .97rem;
  max-width: 480px;
  margin: 0 auto;
}

.personas-section {
  padding: 5rem 0;
  background: var(--cream);
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.persona-card-lg {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.persona-card-lg:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.persona-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.persona-initial-lg {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  line-height: 1;
}
.persona-nombre-lg {
  font-size: 1.08rem;
  color: var(--teal-dark);
  margin-bottom: .2rem;
}
.persona-rol-lg {
  font-size: .85rem;
  color: var(--text-soft);
}

/* ── CTA section ────────────────────────────────────────── */
.cta-section {
  padding: 5rem 0 6rem;
  background: var(--cream);
}

.cta-inner {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-lt) 100%);
  border-radius: 2rem;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 12px 48px rgba(232,25,122,.22);
}

.cta-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: .75rem;
}
.cta-desc {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--teal-dark);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .4rem; }

.footer-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
  margin-bottom: .4rem;
}
.footer-name {
  font-family: 'Pacifico', cursive;
  color: var(--gold);
  font-size: 1.2rem;
}
.footer-tagline { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-copy    { color: rgba(255,255,255,.35); font-size: .78rem; margin-top: 1.5rem; }

/* ── Floating WhatsApp ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,.0); }
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Galería preview (home) ─────────────────────────────── */
.galeria-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 2rem;
}

.galeria-preview-item {
  border-radius: .85rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}

.galeria-preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria-preview-item:hover img { transform: scale(1.06); }

@media (max-width: 640px) {
  .galeria-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Galería ────────────────────────────────────────────── */
.galeria-section {
  padding: 4rem 0 6rem;
  background: var(--cream);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.galeria-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(26,154,160,.06);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,95,99,.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity .3s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-label {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 640px) {
  .hero-logo { width: 88px; height: 88px; }
  .value-section  { padding: 5rem 0 3rem; }
  .highlight-card { padding: 2.5rem 1.75rem; }
  .cta-inner { padding: 3rem 1.5rem; }
}
