/* =============================================================
   Dental Arte — Estilos del sitio
   -------------------------------------------------------------
    1. Variables de marca (colores, fuentes, medidas)
    2. Base
    3. Utilidades
    4. Botones
    5. Portada (hero) y encabezado
    6. Cinta de servicios
    7. Encabezados de sección
    8. Servicios
    9. Galería
   10. Estadísticas
   10b. Promociones
   11. Horario y métodos de pago
   12. Ubicación
   13. Pie de página
   14. Mascota flotante
   15. Página 404
   16. Animaciones
   17. Responsive y accesibilidad
   ============================================================= */


/* 1. Variables de marca ---------------------------------------
   Para cambiar un color en TODO el sitio, cámbialo solo aquí. */
:root {
  --color-primary: #0E6E68;        /* teal principal */
  --color-primary-hover: #0A524E;
  --color-heading: #0E4B47;        /* títulos */
  --color-teal: #1FA79C;           /* teal claro */
  --color-forest: #0A403C;         /* verde oscuro (pie, cinta) */
  --color-band: #0D5B56;           /* franja de horario */
  --color-accent: #F0954A;         /* naranja de marca */
  --color-coral: #FF6B4A;
  --color-badge: #8E1B4E;          /* sello "1ra consulta gratis" */
  --color-badge-end: #B5225F;

  --color-bg: #FBF9F5;             /* fondo crema */
  --color-hero-bg: #F8F8F8;
  --color-surface: #F3F7F6;
  --color-surface-hover: #E5EEEC;
  --color-mint: #DFF3F1;
  --color-mint-light: #EAF7F5;
  --color-peach: #FDEBDB;

  --color-text: #243B3E;
  --color-muted: #5B7A78;
  --color-on-dark: #CDEAE6;
  --color-on-dark-muted: #9FC7C2;
  --color-on-dark-label: #7FD4CB;
  --color-on-dark-line: #155F58;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --section-pad-x: clamp(20px, 5vw, 64px);
  --content-max: 1100px;
  --shadow-soft: 0 6px 20px rgba(14, 75, 71, 0.06);
  --shadow-card: 0 6px 20px rgba(14, 75, 71, 0.1);
}


/* 2. Base ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
  overflow-x: hidden;
}

/* Seguro contra desbordes laterales: ningún adorno puede ensanchar la página
   (en celular eso deja arrastrar la web hacia los lados y aparece espacio en blanco) */
main,
.site-footer {
  overflow-x: clip;
}

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

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* 3. Utilidades ---------------------------------------------- */

/* Sprite de íconos SVG (invisible, solo se referencia con <use>) */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  fill: currentColor;
}

/* Texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Foto que llena su contenedor.
   El encuadre se ajusta con style="--focus: X% Y%" en cada <img>. */
.cover-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

.underline {
  text-decoration: underline;
}


/* 4. Botones ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  transition: background 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.btn--pill { border-radius: 999px; }

.btn--sm {
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 15px 26px;
  font-size: 15.5px;
}

.btn--gradient {
  background: linear-gradient(135deg, var(--color-teal), var(--color-primary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 110, 104, 0.3);
}

.btn--gradient.btn--lg {
  box-shadow: 0 10px 24px rgba(14, 110, 104, 0.28);
}

.btn--gradient:hover { filter: brightness(1.08); }

.btn--lift:hover { transform: translateY(-2px); }

.btn--soft {
  background: var(--color-surface);
  color: var(--color-heading);
}

.btn--soft:hover { background: var(--color-surface-hover); }

.btn--solid {
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
}

.btn--solid:hover { background: var(--color-primary-hover); }

.btn--teal {
  margin-top: 18px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--color-teal);
  color: #fff;
  font-size: 15px;
}

.btn--teal:hover { background: var(--color-primary); }


/* 5. Portada (hero) y encabezado ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(120deg, var(--color-forest), var(--color-primary), var(--color-teal), var(--color-heading));
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}

.hero__blob--a {
  top: -60px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.45), transparent 70%);
  animation: floatBlobA 9s ease-in-out infinite;
}

.hero__blob--b {
  bottom: -80px;
  right: 6%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(240, 149, 74, 0.35), transparent 70%);
  animation: floatBlobB 11s ease-in-out infinite;
}

.hero__card {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 48px);
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
  width: 178px;
  height: 80px;
  overflow: hidden;
}

/* El logo va levemente ampliado y bajado para recortar el reflejo inferior */
.site-header__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(9%) scale(1.18);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--color-surface);
  border-radius: 999px;
}

.main-nav__link {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav__link:hover {
  background: #fff;
  color: var(--color-primary);
}

.hero__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 50px);
  padding: clamp(10px, 3vw, 20px) clamp(20px, 4vw, 48px) clamp(40px, 5vw, 60px);
  background: var(--color-hero-bg);
}

.hero__content {
  flex: 1 1 380px;
  min-width: min(280px, 100%);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__eyebrow span { color: var(--color-accent); }

.hero__title {
  margin: 0 0 18px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__title span { display: block; }

.hero__title .hero__title-accent { color: var(--color-teal); }

.hero__lead {
  max-width: 440px;
  margin: 0 0 28px;
  color: var(--color-muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.hero__lead strong { color: var(--color-heading); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-feature__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--color-mint);
  font-size: 17px;
}

.hero-feature__icon--peach { background: var(--color-peach); }

.hero__media {
  position: relative;
  flex: 1 1 380px;
  min-width: min(280px, 100%);
  max-width: 520px;
}

.hero__deco {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
}

.hero__deco--a {
  top: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  background: var(--color-mint);
}

.hero__deco--b {
  bottom: 30px;
  left: -30px;
  width: 90px;
  height: 90px;
  background: var(--color-peach);
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-bg);
  transition: transform 0.15s ease-out;
}

.hero__name-tag {
  position: absolute;
  bottom: 16px;
  left: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--color-forest);
  box-shadow: 0 10px 30px rgba(14, 75, 71, 0.28);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero__name-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-teal);
}

.hero__badge {
  position: absolute;
  top: -18px;
  right: -14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin: 0;
  padding: 14px 22px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-badge), var(--color-badge-end));
  box-shadow: 0 10px 26px rgba(142, 27, 78, 0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transform: rotate(8deg);
}

.hero__badge strong { font-size: 16px; }


/* 6. Cinta de servicios -------------------------------------- */
.marquee {
  overflow: hidden;
  padding: 16px 0;
  background: var(--color-forest);
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 22s linear infinite;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-on-dark);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.marquee__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF8A65;
}


/* 7. Encabezados de sección ---------------------------------- */
.section {
  padding: clamp(50px, 7vw, 90px) var(--section-pad-x);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading__eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-heading__eyebrow--sm { font-size: 14px; }

.section-heading__title {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
}


/* 8. Servicios ----------------------------------------------- */
.services {
  background: linear-gradient(180deg, var(--color-mint-light), var(--color-mint));
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 22px;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* --reveal pasa de 0 a 1 al pasar el mouse y muestra la descripción */
.service-card {
  --reveal: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 3px solid var(--color-teal);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
  --reveal: 1;
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(31, 167, 156, 0.35);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 64, 60, 0.94) 100%);
}

.service-card__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.service-card__desc {
  max-height: calc(var(--reveal) * 90px);
  margin: calc(var(--reveal) * 8px) 0 0;
  overflow: hidden;
  opacity: var(--reveal);
  color: #DDEEEC;
  font-size: 14px;
  line-height: 1.5;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}


/* 9. Galería ------------------------------------------------- */
.gallery {
  background: linear-gradient(180deg, var(--color-bg), var(--color-mint-light));
}

.section-heading--gallery {
  position: relative;
  margin-bottom: 16px;
}

.gallery__deco {
  position: absolute;
  opacity: 0.16;
}

.gallery__deco--1 { top: -30px;    left: calc(50% - 220px);  font-size: 30px; transform: rotate(-12deg); }
.gallery__deco--2 { top: -10px;    right: calc(50% - 230px); font-size: 24px; transform: rotate(15deg); }
.gallery__deco--3 { top: 20px;     left: calc(50% - 340px);  font-size: 22px; transform: rotate(-8deg); opacity: 0.14; }
.gallery__deco--4 { bottom: -40px; right: calc(50% - 360px); font-size: 26px; transform: rotate(10deg); opacity: 0.14; }

.gallery__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  color: var(--color-teal);
  font-size: 15px;
}

.gallery__divider::before,
.gallery__divider::after {
  content: "";
  width: 36px;
  height: 1px;
  background: #B9DBD6;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 18px;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Marco con borde de degradado animado */
.gallery__item {
  position: relative;
  margin: 0;
  padding: 2.5px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-accent), var(--color-teal));
  background-size: 220% 220%;
  box-shadow: 0 0 24px rgba(31, 167, 156, 0.3), 0 10px 28px rgba(14, 75, 71, 0.14);
  animation: gradientShift 6s ease infinite;
  transition: transform 0.3s ease;
}

.gallery__item:hover { transform: scale(1.02); }

.gallery__item--warm {
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal), var(--color-accent));
  background-size: 220% 220%;
  box-shadow: 0 0 24px rgba(240, 149, 74, 0.3), 0 10px 28px rgba(14, 75, 71, 0.14);
}

.gallery__item--big {
  grid-column: span 2;
  grid-row: span 2;
  box-shadow: 0 0 24px rgba(31, 167, 156, 0.35), 0 10px 28px rgba(14, 75, 71, 0.14);
}

.gallery__item--wide { grid-column: span 2; }

.gallery__frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
}


/* 10. Estadísticas ------------------------------------------- */
.stats {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 6vw, 80px) var(--section-pad-x);
  background: linear-gradient(120deg, var(--color-accent), var(--color-coral));
}

.stats__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat__value {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.stat__label {
  margin: 6px 0 0;
  color: #FFE7DA;
  font-size: 14px;
  font-weight: 600;
}


/* 10b. Promociones ------------------------------------------- */
.promos {
  background: linear-gradient(180deg, var(--color-mint-light), var(--color-bg));
}

.section-heading--promos { margin-bottom: 40px; }

.promos__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.promo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  align-items: center;
  gap: 26px;
}

.promo__media {
  overflow: hidden;
  border: 3px solid var(--color-teal);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(14, 75, 71, 0.16);
  transition: transform 0.3s ease;
}

.promo__media:hover { transform: translateY(-4px); }

.promo__media--highlight {
  border-color: var(--color-badge);
  box-shadow: 0 10px 30px rgba(142, 27, 78, 0.18);
}

.promo__media img {
  display: block;
  width: 100%;
  height: auto;
}

.promo__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.promo__tag {
  align-self: flex-start;
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-badge), var(--color-badge-end));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.promo__tag--teal {
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
}

.promo__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.promo__price {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 800;
  line-height: 1;
}

.promo__price--highlight { color: var(--color-badge); }

.promo__name {
  margin: 0;
  color: var(--color-teal);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.promo__text {
  max-width: 380px;
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

.promo__cta { align-self: flex-start; }


/* 11. Horario y métodos de pago ------------------------------ */
.info-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(40px, 5vw, 60px) var(--section-pad-x);
  background: var(--color-band);
}

.info-band__col { flex: 1 1 220px; }

.info-band__label {
  margin: 0 0 8px;
  color: var(--color-on-dark-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.info-band__label--payments { margin-bottom: 10px; }

.info-band__title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.info-band__text {
  margin: 0;
  color: var(--color-on-dark);
  font-size: 16px;
}

.info-band__phone {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.info-band__col--wide { flex: 1 1 320px; }

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.payment--visa {
  color: #1A1F71;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.payment--mastercard { padding: 6px 10px; }

.payment--amex {
  background: #016FD0;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.payment--diners {
  padding: 6px 10px;
  color: #1268A8;
  font-size: 11px;
  letter-spacing: 0.01em;
}


/* 12. Ubicación ---------------------------------------------- */
.location { background: var(--color-bg); }

.section-heading--location { margin-bottom: 40px; }

.location__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 32px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.location__map {
  flex: 1 1 420px;
  min-width: min(280px, 100%);
  min-height: 340px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(14, 75, 71, 0.12);
}

.location__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.location__card {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: min(260px, 100%);
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.location__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.location__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-mint);
  color: var(--color-primary);
}

.location__icon--peach {
  background: var(--color-peach);
  color: var(--color-accent);
}

.location__label {
  margin: 0;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 700;
}

.location__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}


/* 13. Pie de página ------------------------------------------ */
.site-footer {
  padding: clamp(50px, 6vw, 80px) var(--section-pad-x) 40px;
  background: var(--color-forest);
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-footer__col { flex: 1 1 200px; }

.site-footer__col--brand { flex: 1 1 280px; }

.site-footer__brand {
  margin: 0 0 12px;
  color: var(--color-teal);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
}

.site-footer__brand span { color: var(--color-on-dark); }

.site-footer__tagline {
  max-width: 340px;
  margin: 1em 0;
  color: var(--color-on-dark-muted);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-on-dark);
  font-size: 15px;
  font-weight: 600;
}

.round-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-on-dark-line);
  color: #fff;
}

.site-footer__text {
  margin: 0;
  color: var(--color-on-dark);
  font-size: 15px;
  line-height: 2;
}

.site-footer__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-on-dark);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer__bottom {
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--color-on-dark-line);
  color: #6FA9A2;
  font-size: 13px;
  text-align: center;
}


/* 14. Mascota flotante --------------------------------------- */
.mascot {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transition: transform 0.3s ease-out;
}

.mascot__bubble {
  max-width: 200px;
  padding: 10px 16px;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(14, 75, 71, 0.22);
  color: var(--color-heading);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.mascot__link {
  display: block;
  filter: drop-shadow(0 10px 18px rgba(14, 75, 71, 0.35));
  animation: mascotBob 2.4s ease-in-out infinite;
}

.mascot__tooth {
  display: block;
  transition: transform 0.15s ease;
}

.mascot__link:hover .mascot__tooth { transform: scale(1.06); }

.mascot__tooth svg {
  display: block;
  width: 86px;
  height: 86px;
}


/* 15. Página 404 --------------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100vh;
  padding: 40px var(--section-pad-x);
  background: linear-gradient(180deg, var(--color-mint-light), var(--color-mint));
  text-align: center;
}

.error-page__logo {
  width: 170px;
  height: 52px;
  margin-bottom: 12px;
  object-fit: contain;
}

.error-page__code {
  margin: 0;
  color: var(--color-teal);
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  line-height: 1;
}

.error-page__title {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
}

.error-page__text {
  max-width: 420px;
  margin: 0 0 16px;
  color: var(--color-muted);
  line-height: 1.6;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}


/* 16. Animaciones -------------------------------------------- */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatBlobA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(26px, -34px) rotate(18deg); }
}

@keyframes floatBlobB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-30px, 26px) rotate(-14deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

/* Aparición suave al hacer scroll (solo si JavaScript está activo) */
.js .reveal {
  transform: translateY(24px);
  transition: transform 0.7s ease;
}

.js .reveal.is-visible { transform: none; }


/* 17. Responsive y accesibilidad ----------------------------- */

/* En pantallas táctiles no hay "hover": la descripción se ve siempre */
@media (hover: none) {
  .service-card { --reveal: 1; }
}

@media (max-width: 700px) {
  /* Menú: con 4 enlaces no cabe en una fila; se reparte en dos, centrado */
  .site-header { justify-content: center; }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    border-radius: 20px;
  }

  .main-nav__link {
    padding: 8px 14px;
    font-size: 13.5px;
  }

  /* Adornos flotantes de la galería: en pantallas chicas se salen del borde */
  .gallery__deco { display: none; }

  .location__card { padding: 24px; }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 170px;
    gap: 12px;
  }

  .gallery__item--big {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Beneficios de la portada: uno debajo del otro */
  .hero-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mascot__tooth svg {
    width: 64px;
    height: 64px;
  }

  /* En celular el globo tapaba textos y botones al bajar: solo queda el diente */
  .mascot__bubble { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal { transform: none; }
}
