/* ===========================================================
   PetVida — Landing Veterinaria
   Estilos · Mobile-first · Modo claro/oscuro
   =========================================================== */

:root {
  --primary: #0ea5a4;
  --primary-dark: #0c8584;
  --primary-light: #5eead4;
  --accent: #f97316;
  --accent-light: #fdba74;

  --bg: #ffffff;
  --bg-alt: #f1faf9;
  --surface: #ffffff;
  --text: #0f2a2a;
  --text-soft: #496363;
  --border: #e2eeee;
  --shadow: 0 18px 40px -18px rgba(14, 165, 164, .35);
  --shadow-sm: 0 8px 24px -12px rgba(15, 42, 42, .18);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --header-h: 72px;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1718;
  --bg-alt: #0f2122;
  --surface: #122727;
  --text: #e7f5f4;
  --text-soft: #9cbab9;
  --border: #1d3a3a;
  --shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.5);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--text); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--primary-dark); color: #d6fffb; font-size: .85rem; }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; opacity: .9; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding-block: .5rem; flex-wrap: wrap; gap: .5rem; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar__right { display: flex; gap: 1rem; align-items: center; }
.badge-24 { background: var(--accent); color: #fff; padding: .15rem .6rem; border-radius: 999px; font-weight: 600; }
.socials { display: flex; align-items: center; gap: .45rem; }
.social { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .18s, filter .18s; }
.social svg { width: 16px; height: 16px; }
.social:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
.social--fb { background: #1877f2; }
.social--ig { background: radial-gradient(circle at 30% 107%, #fdf497, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social--wa { background: #25d366; }
.social--tt { background: #111; }
.social--mail { background: var(--accent); }
@media (max-width: 640px){ .topbar__right a { display: none; } }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); height: var(--header-h); }

.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.logo__icon { display: inline-flex; color: var(--primary); }
.logo__icon svg { width: 28px; height: 28px; }
.logo__text strong { color: var(--primary); }
.logo--light { color: #fff; }

/* logo a la izquierda, menú agrupado a la derecha, centro libre */
.nav { display: flex; align-items: center; gap: clamp(.7rem, 1.5vw, 1.5rem); margin-left: auto; }
.nav a { font-weight: 500; color: var(--text-soft); position: relative; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--primary); transition: width .25s; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--primary); }
.nav a.active::after { width: 100%; }

/* ---------- Cabecera de subpáginas ---------- */
.page-hero { position: relative; background: var(--bg-alt); padding: clamp(3rem, 6vw, 5rem) 0; text-align: center; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; width: 320px; height: 320px; background: var(--primary-light); border-radius: 50%; filter: blur(70px); opacity: .35; top: -120px; right: -60px; }
.page-hero::after { content: ''; position: absolute; width: 260px; height: 260px; background: var(--accent-light); border-radius: 50%; filter: blur(70px); opacity: .25; bottom: -140px; left: -60px; }
.page-hero__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: .8rem; }
.page-hero p { color: var(--text-soft); font-size: 1.08rem; }
.breadcrumb { display: flex; justify-content: center; gap: .4rem; font-size: .88rem; color: var(--text-soft); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

.navbar__actions { display: flex; align-items: center; gap: .8rem; margin-left: 1.6rem; }
.theme-toggle { background: var(--bg-alt); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: transform .2s; }
.theme-toggle:hover { transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; color: var(--text); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: .3s; }
.hamburger.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px){
  .nav {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(80%, 320px); height: 100vh;
    flex-direction: column; justify-content: flex-start; background: var(--surface); padding: 6rem 2rem 2rem; gap: 1.4rem;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
  .nav a:nth-child(5) { margin-left: 0; }
  .hamburger { display: flex; z-index: 110; }
  .navbar__actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; background: var(--bg-alt); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }
.hero__blob--1 { width: 380px; height: 380px; background: var(--primary-light); top: -100px; right: -80px; }
.hero__blob--2 { width: 300px; height: 300px; background: var(--accent-light); bottom: -120px; left: -60px; opacity: .35; }
.hero__content, .hero__media { position: relative; z-index: 1; }

.pill { display: inline-block; background: var(--surface); border: 1px solid var(--border); color: var(--primary-dark); font-weight: 600; font-size: .85rem; padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1rem; }
.text-grad { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { font-size: 1.12rem; color: var(--text-soft); max-width: 520px; margin-bottom: 1.8rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero__trust { display: flex; align-items: center; gap: 1rem; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; object-fit: cover; border: 3px solid var(--bg-alt); border-radius: 50%; margin-left: -12px; box-shadow: var(--shadow-sm); }
.avatars img:first-child { margin-left: 0; }
.hero__trust p { font-size: .92rem; color: var(--text-soft); }

.hero__card { position: relative; }
.hero__imgwrap { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.2; }
.hero__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; animation: float 4s ease-in-out infinite; }
.hero__float--top { top: 24px; left: -20px; }
.hero__float--bottom { bottom: 28px; right: -20px; animation-delay: 1.5s; }
.hero__float-icon { display: inline-flex; color: var(--accent); }
.hero__float-icon svg { width: 26px; height: 26px; }
.hero__float small { display: block; font-weight: 400; color: var(--text-soft); font-size: .8rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--green { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

@media (max-width: 880px){
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__media { max-width: 420px; margin-inline: auto; }
  .hero__float--top { left: 0; }
  .hero__float--bottom { right: 0; }
}

/* ---------- Marcas ---------- */
.brands { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.brands__title { text-align: center; color: var(--text-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.2rem; }
.brands__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
.brands__row span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text-soft); opacity: .65; transition: opacity .2s; }
.brands__row span:hover { opacity: 1; color: var(--primary); }

/* ---------- Stats ---------- */
.stats { background: var(--primary); color: #fff; padding: 3rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat h3 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; font-weight: 800; }
.stat p { color: #d6fffb; font-size: .95rem; }
@media (max-width: 640px){ .stats__grid { grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: .7rem; }
.eyebrow--light { color: var(--primary-light); }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: .8rem; }
.section__head p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Cards servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 1024px){ .cards { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 720px){ .cards { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 460px){ .cards { grid-template-columns: 1fr;} }

.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.card__icon { color: var(--primary); width: 64px; height: 64px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 16px; margin-bottom: 1rem; }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .94rem; margin-bottom: 1rem; }
.card__link { color: var(--primary); font-weight: 600; font-size: .92rem; }
.card__link:hover { color: var(--accent); }
.card--featured { border-color: var(--primary); box-shadow: var(--shadow); }
.card__tag { position: absolute; top: 1rem; right: 1rem; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 24px; box-shadow: var(--shadow); }
.about__badge { position: absolute; bottom: -22px; right: -10px; background: var(--accent); color: #fff; border-radius: 18px; padding: 1rem 1.3rem; text-align: center; box-shadow: var(--shadow); }
.about__badge strong { font-family: var(--font-head); font-size: 2rem; display: block; }
.about__badge span { font-size: .8rem; }
.about__content h2 { font-size: clamp(1.7rem,4vw,2.4rem); margin-bottom: 1rem; }
.about__content > p { color: var(--text-soft); margin-bottom: 1.4rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.8rem; }
.features li { display: flex; align-items: center; gap: .5rem; font-size: .94rem; font-weight: 500; }
.features__ico { color: var(--primary); }
@media (max-width: 880px){ .about { grid-template-columns: 1fr; } .features { grid-template-columns: 1fr; } .about__media { max-width: 480px; margin-inline: auto; } }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.step { text-align: center; padding: 1.5rem 1rem; position: relative; }
.step__num { width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; border-radius: 50%; box-shadow: var(--shadow); }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--text-soft); font-size: .92rem; }
@media (max-width: 820px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 440px){ .steps { grid-template-columns: 1fr; } }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.member { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: transform .25s, box-shadow .25s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__img { width: 130px; height: 130px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; border: 4px solid var(--bg-alt); }
.member__img img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.1rem; }
.member__role { color: var(--text-soft); font-size: .88rem; margin-bottom: .7rem; }
.member__social { display: flex; justify-content: center; gap: .5rem; }
.member__social a { width: 32px; height: 32px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 50%; font-size: .8rem; font-weight: 600; color: var(--primary); transition: .2s; }
.member__social a:hover { background: var(--primary); color: #fff; }
@media (max-width: 880px){ .team { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 440px){ .team { grid-template-columns: 1fr; } }

/* ---------- Planes ---------- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.7rem; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan__name { font-size: 1.3rem; }
.plan__desc { color: var(--text-soft); font-size: .9rem; margin-bottom: 1rem; }
.plan__price { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--text); margin-bottom: 1.2rem; line-height: 1; }
.plan__price span { font-size: 1.4rem; vertical-align: super; }
.plan__price small { font-size: 1rem; color: var(--text-soft); font-weight: 400; }
.plan ul { margin-bottom: 1.6rem; flex: 1; display: grid; gap: .6rem; }
.plan li { font-size: .92rem; }
.plan li.off { color: var(--text-soft); opacity: .6; }
.plan--featured { border-color: var(--primary); box-shadow: var(--shadow); transform: scale(1.03); }
.plan--featured:hover { transform: scale(1.03) translateY(-6px); }
.plan__ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; padding: .3rem 1rem; border-radius: 999px; }
@media (max-width: 880px){ .pricing { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } .plan--featured { transform: none; } }

/* ---------- Testimonios ---------- */
.testimonials { overflow: hidden; }
.testimonial-track { display: flex; transition: transform .5s ease; }
.testimonial { min-width: 100%; padding: 0 1rem; }
.testimonial { background: var(--surface); }
.testimonials .testimonial { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; text-align: center; }
.stars { color: #fbbf24; font-size: 1.3rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial p { font-size: 1.1rem; font-style: italic; color: var(--text); margin-bottom: 1.4rem; }
.testimonial__author { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.testimonial__avatar { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--primary); width: 54px; height: 54px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 50%; }
.testimonial__author small { display: block; color: var(--text-soft); }
.testimonials__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.6rem; }
.testimonials__dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; transition: .2s; }
.testimonials__dots button.active { background: var(--primary); width: 28px; border-radius: 999px; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery img { width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: transform .3s, filter .3s; }
.gallery img:hover { transform: scale(1.03); filter: brightness(1.05); }
@media (max-width: 760px){ .gallery { grid-template-columns: repeat(2,1fr); } .gallery img { height: 180px; } }

/* ---------- Cita / Appointment ---------- */
.appointment { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.appointment__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.appointment__info h2 { color: #fff; font-size: clamp(1.7rem,4vw,2.4rem); margin-bottom: 1rem; }
.appointment__info > p { color: #d6fffb; margin-bottom: 1.4rem; }
.appointment__list { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.appointment__list li { color: #eafffe; display: flex; align-items: center; gap: .55rem; }
.appointment__list svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.appointment__form { background: var(--surface); color: var(--text); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.appointment__form h3 { margin-bottom: 1.2rem; font-size: 1.4rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,164,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__note { color: #16a34a; font-weight: 600; text-align: center; margin-top: 1rem; }
@media (max-width: 880px){ .appointment__grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.accordion__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; }
.accordion__head { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion__head span { color: var(--primary); font-size: 1.5rem; transition: transform .3s; flex-shrink: 0; }
.accordion__item.open .accordion__head span { transform: rotate(45deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion__body p { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--bg-alt); padding: 3.5rem 0; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.newsletter h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.newsletter p { color: var(--text-soft); }
.newsletter__form { display: flex; gap: .6rem; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter__form input { flex: 1; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); }
.newsletter__form input:focus { outline: none; border-color: var(--primary); }

/* ---------- Footer ---------- */
.footer { background: #08201f; color: #b9d4d2; padding-top: 4rem; }
[data-theme="dark"] .footer { background: #061312; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer__col a, .footer__col p { display: block; color: #9bbcba; margin-bottom: .5rem; font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: var(--primary-light); }
.footer__col > p:first-of-type { margin-top: 1rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__social a { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 50%; color: #fff; font-size: .82rem; font-weight: 600; }
.footer__social a:hover { background: var(--primary); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #7fa3a1; }
@media (max-width: 880px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Flotantes ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: #25d366; color: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.5); z-index: 90; animation: pulse 2.5s infinite; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
.to-top { position: fixed; bottom: 92px; right: 26px; width: 46px; height: 46px; border: none; background: var(--primary); color: #fff; border-radius: 50%; font-size: 1.3rem; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; z-index: 90; box-shadow: var(--shadow-sm); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---------- Animaciones reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  *, [data-reveal] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
