/* ==========================================================
   Clínica Dental Mendizábal — Hoja de estilos
   Paleta A "Confianza Mendizábal"
   ========================================================== */

:root {
  /* Colores */
  --blue:        #2E7CB6;
  --blue-deep:   #1A4D7A;
  --blue-darker: #123A5E;
  --blue-soft:   #E8F1F8;
  --blue-softer: #F4F8FC;
  --white:       #FFFFFF;
  --slate:       #3A4550;
  --slate-soft:  #6B7685;
  --gold:        #E9A03B;
  --gold-deep:   #C8821F;

  /* Tipografía */
  --font-title: 'Poppins', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;

  /* Escalas */
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 10px rgba(26, 77, 122, 0.08);
  --shadow-md:   0 10px 28px rgba(26, 77, 122, 0.12);
  --shadow-lg:   0 20px 50px rgba(26, 77, 122, 0.18);
  --transition:  300ms cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:   1200px;

  /* Spacing */
  --s-section:   96px;
}

/* ===================== RESET SUAVE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--blue-deep);
  line-height: 1.25;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.highlight { color: var(--blue); }

/* ===================== BOTONES ===================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  will-change: transform;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(233, 160, 59, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--gold-deep);
  box-shadow: 0 8px 20px rgba(233, 160, 59, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--blue-deep);
  border: 2px solid var(--blue);
  padding: 12px 26px;
}
.btn--ghost:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(26, 77, 122, 0.08);
  z-index: 100;
  animation: fadeDown 600ms ease-out both;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.header__logo img {
  height: 82px;
  width: auto;
  transition: transform var(--transition);
}
.header__logo:hover img { transform: scale(1.03); }

.nav { display: flex; gap: 32px; }
.nav__link {
  position: relative;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--blue);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--blue-deep); }
.nav__link:hover::after { width: 100%; }

.header__cta { padding: 11px 22px; font-size: 0.9rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span {
  width: 26px; height: 2.5px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-softer) 0%, var(--white) 100%);
}
.hero__bg-shape {
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(46, 124, 182, 0.14), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: floatShape 14s ease-in-out infinite;
}
/* Fondo con manzana SVG gigante como marca conceptual */
.hero__apple-bg {
  position: absolute;
  top: 50%;
  left: -80px;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  background: url('../img/apple-icon.svg') no-repeat center/contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  color: var(--blue);
  animation: appleBreath 8s ease-in-out infinite;
}
@keyframes appleBreath {
  0%, 100% { transform: translateY(-50%) scale(1) rotate(-6deg); }
  50%      { transform: translateY(-50%) scale(1.04) rotate(-4deg); }
}

/* Eyebrow del hero ahora con iconito de manzana */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__eyebrow img {
  width: 16px;
  height: 18px;
  color: var(--blue);
}

/* Badge circular con el logo sobre la foto del hero */
.hero__badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 2;
  animation: badgeFloat 5s ease-in-out infinite;
}
.hero__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-8px) rotate(-2deg); }
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: 1.12rem;
  color: var(--slate-soft);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  background: var(--blue-soft);
}
.hero__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 124, 182, 0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ===================== FRANJA DE CONFIANZA ===================== */
.trust {
  background: var(--blue-deep);
  color: var(--white);
  padding: 44px 0;
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}
.trust__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust__number {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  letter-spacing: -0.01em;
}
.trust__label {
  font-size: 0.95rem;
  opacity: 0.82;
  letter-spacing: 0.02em;
}
.trust__divider {
  width: 1px; height: 50px;
  background: rgba(255, 255, 255, 0.2);
}

/* ===================== SECCIONES ===================== */
.about, .services, .digital, .team, .location {
  padding: var(--s-section) 0;
}
.about { background: var(--white); }
.services { background: var(--blue-softer); }
.digital {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-darker) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.team { background: var(--white); }
.location { background: var(--blue-softer); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.eyebrow-icon {
  width: 16px;
  height: 18px;
  color: var(--blue);
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
}

/* ----- ABOUT ----- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about__col p {
  font-size: 1.05rem;
  color: var(--slate);
  margin: 0;
}

/* ----- PHILOSOPHY (banner manzana) ----- */
.philosophy {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.philosophy__apple-left,
.philosophy__apple-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  opacity: 0.12;
  color: var(--white);
  pointer-events: none;
}
.philosophy__apple-left { left: -50px; animation: philosophySway 9s ease-in-out infinite; }
.philosophy__apple-right {
  right: -50px;
  transform: translateY(-50%) scaleX(-1);
  animation: philosophySway 9s ease-in-out infinite reverse;
}
.philosophy__apple-left img,
.philosophy__apple-right img {
  width: 100%;
  height: 100%;
  filter: invert(1) brightness(2);
}
@keyframes philosophySway {
  0%, 100% { transform: translateY(-50%) rotate(-6deg); }
  50%      { transform: translateY(-56%) rotate(0deg); }
}

.philosophy__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.philosophy__image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 3;
  animation: philosophyFloat 7s ease-in-out infinite;
}
.philosophy__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 124, 182, 0.18), transparent 60%);
  pointer-events: none;
}
.philosophy__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.philosophy__image:hover img { transform: scale(1.06); }
@keyframes philosophyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.philosophy__quote {
  max-width: 560px;
  margin: 0;
  position: relative;
  text-align: left;
}
.philosophy__subtext { margin: 0; }
.philosophy__open-quote {
  font-family: var(--font-title);
  font-size: 6rem;
  color: var(--gold);
  line-height: 0.2;
  display: block;
  margin-bottom: 14px;
}
.philosophy__quote p {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 24px;
  color: var(--white);
}
.philosophy__subtext {
  display: block;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.philosophy__subtext strong { color: var(--gold); font-weight: 600; }

/* ----- SERVICES ----- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(26, 77, 122, 0.06);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service__icon {
  width: 56px; height: 56px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.service__icon svg { width: 28px; height: 28px; }
.service:hover .service__icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08) rotate(-4deg);
}
.service h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.service p {
  font-size: 0.95rem;
  color: var(--slate-soft);
  margin: 0;
}

/* ----- TEAM ----- */
.team__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.team__text p {
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 28px;
  max-width: 500px;
}
.team__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: var(--shadow-lg);
}
.team__image img { width: 100%; height: 100%; object-fit: cover; }

/* ----- REVIEWS ----- */
.reviews {
  padding: var(--s-section) 0;
  background: var(--blue-softer);
}
.reviews__intro {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.7;
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--gold);
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review__stars {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review blockquote {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
}
.review__author {
  color: var(--slate-soft);
  font-size: 0.9rem;
  font-weight: 500;
}
.reviews__cta {
  text-align: center;
  margin-top: 40px;
}

/* ----- FAQ ----- */
.faq {
  padding: var(--s-section) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-softer) 100%);
}
.faq__list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--white);
  border: 1px solid rgba(46, 124, 182, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}
.faq__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.faq__item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 124, 182, 0.25);
}
.faq__item summary {
  padding: 20px 26px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-deep);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 60px;
  transition: color var(--transition);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform var(--transition), background var(--transition);
}
.faq__item[open] summary::after {
  content: "−";
  background: var(--blue);
  color: var(--white);
  transform: translateY(-50%) rotate(180deg);
}
.faq__item summary:hover { color: var(--blue); }
.faq__item p {
  margin: 0;
  padding: 0 26px 22px;
  color: var(--slate);
  line-height: 1.7;
  font-size: 0.98rem;
}
.faq__item p a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 124, 182, 0.3);
}
.faq__item p a:hover { color: var(--blue-deep); }

/* ----- LOCATION ----- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.location__info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.location__info h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--blue-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.contact-list a, .contact-list span {
  color: var(--slate);
  font-size: 1.02rem;
  transition: color var(--transition);
}
.contact-list a:hover { color: var(--blue); }

.location__social {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--blue-soft);
  color: var(--blue-deep);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.social svg { width: 18px; height: 18px; flex-shrink: 0; }
.social:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.social--whatsapp {
  background: #25D366;
  color: var(--white);
}
.social--whatsapp:hover { background: #1ebe5a; }
.social--google {
  background: #FFF4DC;
  color: #B07700;
  border: 1px solid #FFDB8A;
}
.social--google:hover { background: #FFE9B5; }

.social--maps {
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.social--maps:hover { background: #D6E6F4; }

/* ====== Botón flotante de WhatsApp ====== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 14px;
  background: #25D366;
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: wappPop 700ms ease-out 900ms both;
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  background: #1ebe5a;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wappPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes wappPop {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wappPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ====== Banner de cookies ====== */
.cookies-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(18, 58, 94, 0.25);
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 400ms ease, transform 400ms ease;
  z-index: 200;
  border: 1px solid rgba(26, 77, 122, 0.08);
}
.cookies-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookies-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookies-banner__text { flex: 1 1 300px; min-width: 0; }
.cookies-banner__text strong {
  display: block;
  color: var(--blue-deep);
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 4px;
}
.cookies-banner__text p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-soft);
  line-height: 1.5;
}
.cookies-banner__text a { color: var(--blue); text-decoration: underline; }
.cookies-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookies-banner__actions .btn { padding: 10px 20px; font-size: 0.88rem; }

@media (max-width: 520px) {
  .cookies-banner { padding: 18px; }
  .cookies-banner__actions { width: 100%; }
  .cookies-banner__actions .btn { flex: 1; text-align: center; }
}

.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-md);
}
.location__map iframe { display: block; width: 100%; height: 100%; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--blue-darker);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
  text-align: center;
}
.footer__brand img {
  height: 78px;
  margin: 0 auto 20px;
  filter: brightness(1.05);
}
.footer__tagline {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 24px;
  font-weight: 500;
}
.footer__legal {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.footer__legal a { transition: color var(--transition); }
.footer__legal a:hover { color: var(--white); }
.footer__legal span { opacity: 0.4; }
.footer__copy {
  font-size: 0.82rem;
  opacity: 0.6;
  margin: 0;
}

/* ===================== ANIMACIONES ===================== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-20px, 20px); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay.is-visible { transition-delay: 150ms; }

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

/* ===================== ODONTOLOGÍA DIGITAL ===================== */
.digital::before {
  content: "";
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46, 124, 182, 0.35), transparent 70%);
  animation: floatShape 18s ease-in-out infinite;
  pointer-events: none;
}
.digital::after {
  content: "";
  position: absolute;
  bottom: -300px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(233, 160, 59, 0.15), transparent 65%);
  pointer-events: none;
}
.digital .container { position: relative; z-index: 1; }

.digital__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.digital__text .section-eyebrow { color: var(--gold); }
.digital__text .section-title { color: var(--white); }
.digital__lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  margin-bottom: 32px;
}
.digital__lead strong { color: var(--gold); }

.digital__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.digital__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition);
}
.digital__list li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}
.digital__list strong {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 600;
}
.digital__list span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.93rem;
}

.digital__stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.stat {
  flex: 1 1 120px;
  text-align: center;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.stat__num {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
}

.digital__visual {
  position: relative;
  aspect-ratio: 4/5;
}
.digital__visual > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.digital__visual--floating {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 45%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 4px solid var(--white);
  animation: floatCard 6s ease-in-out infinite;
}
.digital__logo {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 110px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: var(--white);
  padding: 8px;
  transform: rotate(-6deg);
  animation: floatCard 7s ease-in-out infinite 1s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-10px) rotate(-6deg); }
}

/* El segundo keyframes idéntico pero sin rotación para digital__visual--floating */
.digital__visual--floating {
  animation-name: floatCardStraight;
}
@keyframes floatCardStraight {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  :root { --s-section: 72px; }

  .header__logo img { height: 70px; }
  .nav { display: none; }
  .nav__toggle { display: flex; }
  .header__cta { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 20px 28px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--blue-soft);
  }

  .hero { padding: 60px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__image { aspect-ratio: 4/3; max-width: 520px; margin: 0 auto; }

  .trust__inner { gap: 28px; }
  .trust__divider { display: none; }

  .about__grid { grid-template-columns: 1fr; gap: 20px; }

  .digital__grid { grid-template-columns: 1fr; gap: 60px; }
  .digital__visual { aspect-ratio: 4/3; max-width: 520px; margin: 0 auto; }
  .digital__visual--floating { width: 50%; bottom: -30px; right: -15px; }
  .digital__logo { width: 90px; top: -20px; left: -15px; }
  .digital__stats { gap: 12px; }
  .stat__num { font-size: 1.7rem; }

  .team__inner { grid-template-columns: 1fr; gap: 36px; }
  .team__image { order: -1; }

  .hero__apple-bg { width: 340px; height: 340px; left: -100px; opacity: 0.04; }
  .hero__badge { width: 90px; height: 90px; bottom: -20px; right: -10px; padding: 10px; }

  .philosophy { padding: 60px 0; }
  .philosophy__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .philosophy__quote { text-align: center; margin: 0 auto; }
  .philosophy__subtext { margin: 0 auto; }
  .philosophy__apple-left,
  .philosophy__apple-right { width: 140px; height: 140px; opacity: 0.08; }
  .philosophy__apple-left { left: -70px; }
  .philosophy__apple-right { right: -70px; }

  .location__grid { grid-template-columns: 1fr; }
  .location__map { min-height: 320px; }
}

@media (max-width: 600px) {
  .whatsapp-float { padding: 14px; }
  .whatsapp-float__label { display: none; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .header__logo img { height: 58px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .location__info { padding: 28px; }
}
