/* ================================================================
   DEMO: CLÍNICA VETERINARIA "HUELLA SANA"
   ------------------------------------------------------------------
   Hoja de estilos exclusiva de la plantilla /veterinaria/.
   Estructura del archivo (usa Buscar para saltar a cada bloque):

     1. Fuentes y variables globales
     2. Reset y estilos base
     3. Utilidades y elementos comunes (botones, enlaces, textos)
     4. Cabecera (header)
     5. Hero (portada)
     6. Bienvenida / Compromiso
     7. Servicios (ruta de cuidado)
     8. Equipo
     9. Urgencias
    10. Contacto y pie de página (footer)
    11. Responsive: tablet y móvil (max-width: 800px)
    12. Responsive: móvil pequeño (max-width: 500px)
   ================================================================ */


/* ── 1. Fuentes y variables globales ─────────────────────────────
   Todos los colores de la demo están centralizados aquí como
   variables CSS. Para cambiar la paleta completa, basta con editar
   estos valores; se propagarán a toda la plantilla automáticamente. */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Nunito+Sans:wght@400;600;700;800;900&display=swap');

:root {
  --vet-ink:   #243f5b; /* texto principal / fondos oscuros (footer, urgencias) */
  --vet-blue:  #537995; /* acentos secundarios (enlaces, iconos, etiquetas) */
  --vet-sky:   #dcecf1; /* fondo azul claro (servicios, formas decorativas) */
  --vet-cloud: #f6f5f0; /* fondo crema (hero, bienvenida, contacto) */
  --vet-peach: #f8c6a9; /* acento cálido (sellos, detalles decorativos) */
  --vet-sun:   #e88662; /* color de marca / llamadas a la acción (botones) */
  --vet-white: #fffefa; /* blanco cálido (tarjetas, bordes de fotos) */
  --vet-muted: #647382; /* texto secundario / descripciones */
  --vet-line:  #c9d7db; /* líneas divisorias sutiles */
}


/* ── 2. Reset y estilos base ──────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--vet-white);
  color: var(--vet-ink);
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.6;
}

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

/* Evita que las formas decorativas del hero generen scroll horizontal. */
.vet-page {
  overflow: hidden;
}

/* Contenedor centrado que usan todas las secciones. */
.vet-container {
  margin: auto;
  max-width: 1180px;
  padding: 0 36px;
}

/* Titulares con la tipografía serif de la marca. */
h1, h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

/* Palabra destacada dentro de un titular, ej. <em>vocación.</em> */
em {
  color: var(--vet-sun);
}


/* ── 3. Utilidades y elementos comunes ────────────────────────── */

/* Etiqueta pequeña en mayúsculas que precede a cada titular de sección,
   ej. "● Clínica veterinaria · Madrid". El "span" es el punto de color. */
.vet-kicker {
  color: var(--vet-blue);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vet-kicker span {
  color: var(--vet-sun);
  font-size: 0.9rem;
  margin-right: 0.3rem;
}

/* Botón sólido principal (llamadas a la acción tipo "Pedir cita"). */
.vet-button {
  align-items: center;
  background: var(--vet-sun);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  gap: 1rem;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.35rem;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
}
.vet-button:hover {
  background: #cf6f50;
  transform: translateY(-2px);
}
.vet-button span {
  font-size: 1rem;
}

/* Enlace de texto subrayado (ej. "Nuestros servicios →"). */
.vet-text-link {
  border-bottom: 1px solid var(--vet-blue);
  color: var(--vet-blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  padding-bottom: 4px;
  text-transform: uppercase;
}


/* ── 4. Cabecera (header) ─────────────────────────────────────── */

.vet-header {
  background: rgba(255, 254, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 63, 91, 0.09);
  position: sticky;
  top: 0;
  z-index: 10;
}

.vet-header-inner {
  align-items: center;
  display: flex;
  height: 78px;
  justify-content: space-between;
}

/* Logotipo textual "Huella Sana". */
.vet-brand {
  align-items: center;
  display: flex;
  font-size: 1.12rem;
  font-weight: 900;
  gap: 0.4rem;
  letter-spacing: -0.05em;
}
.vet-brand strong {
  color: var(--vet-sun);
}
.vet-brand-mark {
  color: var(--vet-sun);
  font-size: 0.9rem;
}

/* Menú de navegación principal (versión escritorio). */
.vet-nav {
  display: flex;
  gap: 2.1rem;
}
.vet-nav a {
  color: var(--vet-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.vet-nav a:hover {
  color: var(--vet-sun);
}

/* Botón "Pedir cita" dentro de la cabecera (más compacto que el del hero). */
.vet-button-header {
  font-size: 0.64rem;
  padding: 0.7rem 1rem;
}

/* Botón hamburguesa, solo visible en móvil (ver bloque responsive). */
.vet-menu-toggle {
  background: none;
  border: 0;
  color: var(--vet-ink);
  display: none;
  width: 32px;
}
.vet-menu-toggle span {
  background: currentColor;
  display: block;
  height: 2px;
  margin: 5px 0;
  transition: 0.2s;
  width: 100%;
}


/* ── 5. Hero (portada) ────────────────────────────────────────── */

.vet-hero {
  background: var(--vet-cloud);
  min-height: 650px;
  overflow: hidden;
  position: relative;
}

/* Rejilla de dos columnas: texto a la izquierda, foto a la derecha. */
.vet-hero-layout {
  align-items: center;
  display: grid;
  gap: 5rem;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 650px;
  position: relative;
  z-index: 1; /* por encima de las formas decorativas */
}

/* Círculos decorativos de fondo del hero (puramente estéticos). */
.vet-hero-shape {
  border-radius: 50%;
  position: absolute;
}
.vet-hero-shape-a {
  background: var(--vet-sky);
  height: 720px;
  right: -240px;
  top: -230px;
  width: 720px;
}
.vet-hero-shape-b {
  border: 1px solid rgba(83, 121, 149, 0.25);
  bottom: -300px;
  height: 500px;
  left: 31%;
  width: 500px;
}

.vet-hero h1 {
  font-size: clamp(3.5rem, 6.2vw, 6.5rem);
  margin: 1rem 0 1.6rem;
}

.vet-lead {
  color: var(--vet-muted);
  font-size: 1rem;
  max-width: 420px;
}

.vet-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
}

/* Foto principal del hero con forma orgánica (border-radius asimétrico)
   y ligera rotación para dar un aire más cercano y menos "corporativo". */
.vet-hero-portrait {
  background: center / cover no-repeat;
  background-image: url('https://images.unsplash.com/photo-1583337130417-3346a1be7dee?auto=format&fit=crop&w=1200&q=85');
  border: 12px solid var(--vet-white);
  border-radius: 49% 51% 45% 55% / 55% 45% 55% 45%;
  height: 475px;
  position: relative;
  transform: rotate(3deg);
  width: 100%;
}

/* Sello circular "15 años cuidando" superpuesto en la esquina de la foto. */
.vet-portrait-stamp {
  align-items: center;
  background: var(--vet-peach);
  border: 8px solid var(--vet-cloud);
  border-radius: 50%;
  display: flex;
  height: 105px;
  justify-content: center;
  left: -35px;
  line-height: 1;
  position: absolute;
  text-align: center;
  top: 35px;
  transform: rotate(-8deg);
  width: 105px;
}
.vet-portrait-stamp span {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
}
.vet-portrait-stamp small {
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1.1;
  margin-left: 4px;
  text-transform: uppercase;
}

/* Tarjeta flotante inferior de la foto ("Una visita sin miedo"). */
.vet-portrait-caption {
  align-items: center;
  background: var(--vet-white);
  border-radius: 20px;
  bottom: -23px;
  box-shadow: 0 12px 30px rgba(36, 63, 91, 0.13);
  display: flex;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  position: absolute;
  right: -20px;
  transform: rotate(-3deg);
}
.vet-portrait-caption > span {
  align-items: center;
  background: var(--vet-sky);
  border-radius: 50%;
  color: var(--vet-sun);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.vet-portrait-caption p {
  color: var(--vet-muted);
  font-size: 0.65rem;
  line-height: 1.4;
}
.vet-portrait-caption strong {
  color: var(--vet-ink);
}


/* ── 6. Bienvenida / Compromiso ───────────────────────────────── */

.vet-welcome {
  padding: 8rem 0 5rem;
}

.vet-welcome-copy {
  align-items: end;
  display: flex;
  gap: 8rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* Tamaño de titular compartido por varias secciones (h2 principal). */
.vet-welcome h2,
.vet-services h2,
.vet-team h2,
.vet-emergency h2,
.vet-contact h2 {
  font-size: clamp(2.7rem, 4.8vw, 5rem);
}

.vet-welcome-copy p {
  color: var(--vet-muted);
  font-size: 0.93rem;
  max-width: 380px;
}

/* Fila "Prevención + Diagnóstico + Acompañamiento" bajo la bienvenida. */
.vet-care-points {
  align-items: center;
  border-bottom: 1px solid var(--vet-line);
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 5rem;
  padding-bottom: 1.2rem;
}
.vet-care-points span {
  color: var(--vet-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.vet-care-points i {
  color: var(--vet-sun);
  font-size: 1.4rem;
  font-style: normal; /* el "<i>" se usa como separador "+", no como cursiva */
}


/* ── 7. Servicios (ruta de cuidado) ───────────────────────────── */

.vet-services {
  background: var(--vet-sky);
  padding: 7rem 0;
}

.vet-services-title {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 1fr;
  max-width: 820px;
}
.vet-services-title .vet-kicker {
  grid-column: 1 / -1;
}
.vet-services-title > p {
  color: var(--vet-muted);
  font-size: 0.86rem;
  padding-top: 1rem;
}

/* Rejilla de 3 tarjetas de servicio, conectadas por una línea discontinua
   que simula una "ruta" o proceso paso a paso. */
.vet-care-route {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4rem;
  position: relative;
}
.vet-care-route::before {
  border-top: 2px dashed rgba(83, 121, 149, 0.42);
  content: "";
  left: 16%;
  position: absolute;
  right: 16%;
  top: 46px; /* alinea la línea con el centro del círculo .vet-step */
}

.vet-service-card {
  background: var(--vet-white);
  border-radius: 30px;
  padding: 2rem;
  position: relative;
}

/* Círculo numerado (01, 02, 03) de cada tarjeta de servicio. */
.vet-step {
  align-items: center;
  background: var(--vet-blue);
  border: 5px solid var(--vet-sky); /* "corta" la línea discontinua del fondo */
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.62rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  position: relative;
  width: 48px;
  z-index: 1;
}

.vet-service-icon {
  color: var(--vet-sun);
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  margin: 2.4rem 0 1.1rem;
}

.vet-service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.vet-service-card p {
  color: var(--vet-muted);
  font-size: 0.8rem;
  min-height: 75px; /* mantiene alineados los enlaces "Solicitar cita" */
}

.vet-service-card a {
  color: var(--vet-blue);
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-top: 1.5rem;
  text-transform: uppercase;
}
.vet-service-card a span {
  font-size: 1rem;
  margin-left: 0.4rem;
}


/* ── 8. Equipo ─────────────────────────────────────────────────── */

.vet-team {
  background: var(--vet-white);
  padding: 8rem 0;
}

/* Rejilla de dos columnas: texto a la izquierda, collage de fotos a la derecha. */
.vet-team-layout {
  align-items: center;
  display: grid;
  gap: 7rem;
  grid-template-columns: 1fr 1fr;
}

.vet-team-copy > p:not(.vet-kicker) {
  color: var(--vet-muted);
  font-size: 0.9rem;
  margin: 1.6rem 0;
  max-width: 420px;
}

/* Etiquetas "Medicina interna", "Cirugía", etc. */
.vet-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.8rem 0 2.2rem;
}
.vet-specialties span {
  background: var(--vet-cloud);
  border-radius: 999px;
  color: var(--vet-blue);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.5rem 0.75rem;
}

/* Contenedor del collage de fotos del equipo (posicionamiento absoluto interno). */
.vet-team-collage {
  height: 500px;
  position: relative;
}
.vet-team-image {
  background: center / cover no-repeat;
  position: absolute;
}
/* Foto grande superior-derecha, con esquinas orgánicas asimétricas. */
.vet-team-image-main {
  background-image: url('https://images.unsplash.com/photo-1628009368231-7bb7cfcb0def?auto=format&fit=crop&w=1100&q=85');
  border-radius: 52% 48% 48% 52% / 40% 43% 57% 60%;
  height: 430px;
  right: 0;
  top: 0;
  width: 78%;
}
/* Foto pequeña circular inferior-izquierda, superpuesta a la anterior. */
.vet-team-image-detail {
  background-image: url('https://images.unsplash.com/photo-1518791841217-8f162f1e1131?auto=format&fit=crop&w=650&q=85');
  border: 9px solid var(--vet-white);
  border-radius: 50%;
  bottom: 0;
  height: 190px;
  left: 0;
  width: 190px;
}
/* Nota circular decorativa ("Un equipo para toda su vida ↗") sobre el collage. */
.vet-team-collage > p {
  background: var(--vet-peach);
  border-radius: 50%;
  bottom: 15px;
  color: var(--vet-ink);
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  line-height: 1.05;
  padding: 1.7rem;
  position: absolute;
  right: 5px;
  transform: rotate(9deg);
}
.vet-team-collage > p span {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
}


/* ── 9. Urgencias ──────────────────────────────────────────────── */

.vet-emergency {
  background: var(--vet-ink);
  color: #fff;
  overflow: hidden;
  padding: 5.5rem 0;
  position: relative;
}

/* Rejilla de 3 columnas: símbolo "+", titular, y bloque de llamada. */
.vet-emergency-inner {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: auto 1.2fr 1fr;
  position: relative;
}

/* En esta sección oscura, el kicker y el énfasis usan el tono melocotón
   para mantener el contraste con el fondo azul oscuro. */
.vet-emergency .vet-kicker,
.vet-emergency .vet-kicker span,
.vet-emergency h2 em {
  color: var(--vet-peach);
}

/* Símbolo "+" decorativo de gran tamaño. */
.vet-emergency-symbol {
  color: var(--vet-peach);
  font-family: 'DM Serif Display', serif;
  font-size: 8rem;
  line-height: 1;
}

.vet-emergency-call > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  max-width: 310px;
}
.vet-emergency-call > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-block;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  margin: 1.3rem 0 0.4rem;
}
.vet-emergency-call > a span {
  color: var(--vet-peach);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
}
.vet-emergency-call small {
  color: rgba(255, 255, 255, 0.5);
  display: block;
  font-size: 0.63rem;
}


/* ── 10. Contacto y pie de página (footer) ────────────────────── */

.vet-contact {
  background: var(--vet-cloud);
  padding: 7rem 0;
}

/* Tarjeta blanca redondeada que contiene todo el bloque de contacto. */
.vet-contact-box {
  background: var(--vet-white);
  border-radius: 38px;
  display: grid;
  gap: 6rem;
  grid-template-columns: 1fr 1fr;
  padding: 4.5rem 5rem;
}
.vet-contact-box > div > p:not(.vet-kicker) {
  color: var(--vet-muted);
  font-size: 0.88rem;
  margin-top: 1.5rem;
  max-width: 350px;
}

.vet-contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.vet-email {
  border-bottom: 1px solid var(--vet-blue);
  color: var(--vet-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding-bottom: 0.25rem;
  width: max-content;
}
/* Fila con dirección y horario, uno junto al otro. */
.vet-contact-details > div {
  display: flex;
  gap: 3rem;
}
.vet-contact-details p {
  color: var(--vet-muted);
  font-size: 0.74rem;
}
.vet-contact-details strong {
  color: var(--vet-ink);
}

.vet-footer {
  background: var(--vet-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}
.vet-footer .vet-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.vet-footer .vet-brand {
  color: #fff;
}
.vet-footer p {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
}
.vet-footer > div > span {
  font-size: 0.62rem;
}


/* ── 11. Responsive: tablet y móvil (≤ 800px) ─────────────────── */

@media (max-width: 800px) {

  .vet-container {
    padding: 0 22px;
  }

  /* Menú de navegación como panel desplegable a pantalla completa. */
  .vet-nav {
    background: var(--vet-white);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 1rem 22px;
    position: absolute;
    right: 0;
    top: 78px;
  }
  .vet-nav.is-open {
    display: flex;
  }
  .vet-nav a {
    border-bottom: 1px solid var(--vet-line);
    padding: 1rem 0;
  }

  .vet-menu-toggle {
    display: block;
  }
  /* Anima el icono hamburguesa hacia una "X" al abrir el menú. */
  .vet-menu-toggle.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .vet-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .vet-menu-toggle.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* El botón "Pedir cita" de la cabecera se oculta; el menú móvil ya
     permite llegar a la sección de contacto. */
  .vet-button-header {
    display: none;
  }

  /* Todas las rejillas de dos columnas pasan a una sola columna. */
  .vet-hero-layout,
  .vet-team-layout,
  .vet-contact-box {
    gap: 3rem;
    grid-template-columns: 1fr;
  }

  .vet-hero {
    padding: 3.5rem 0;
  }
  .vet-hero-layout {
    min-height: auto;
  }
  .vet-hero-portrait {
    height: 400px;
    max-width: 520px;
  }

  .vet-welcome {
    padding: 5rem 0;
  }
  .vet-welcome-copy {
    align-items: start;
    flex-direction: column;
    gap: 1.5rem;
  }
  .vet-care-points {
    gap: 1rem;
    justify-content: space-between;
    margin-top: 3rem;
  }

  .vet-services {
    padding: 5rem 0;
  }
  .vet-services-title {
    grid-template-columns: 1fr;
  }
  .vet-services-title > p {
    padding: 0;
  }
  .vet-care-route {
    grid-template-columns: 1fr;
  }
  /* La línea de conexión pasa de horizontal a vertical entre tarjetas. */
  .vet-care-route::before {
    border-left: 2px dashed rgba(83, 121, 149, 0.42);
    border-top: 0;
    bottom: 15%;
    left: 23px;
    right: auto;
    top: 15%;
  }
  .vet-service-card {
    padding: 1.6rem 1.8rem;
  }
  .vet-service-icon {
    margin: 1.3rem 0 0.8rem;
  }
  .vet-service-card p {
    min-height: 0;
  }

  .vet-team {
    padding: 5rem 0;
  }
  .vet-team-collage {
    height: 440px;
    max-width: 550px;
  }

  .vet-emergency-inner {
    gap: 1.7rem;
    grid-template-columns: auto 1fr;
  }
  .vet-emergency-call {
    grid-column: 2;
  }

  .vet-contact {
    padding: 5rem 0;
  }
  .vet-contact-box {
    padding: 2.5rem;
  }

  .vet-footer .vet-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}


/* ── 12. Responsive: móvil pequeño (≤ 500px) ──────────────────── */

@media (max-width: 500px) {

  .vet-hero h1 {
    font-size: 3.5rem;
  }
  .vet-hero-portrait {
    height: 320px;
  }
  .vet-portrait-caption {
    bottom: -34px;
    right: 0;
  }

  .vet-care-points {
    align-items: flex-start;
    flex-direction: column;
  }
  .vet-care-points i {
    display: none; /* el separador "+" no aporta en columna */
  }

  .vet-team-collage {
    height: 360px;
  }
  .vet-team-image-main {
    height: 320px;
    width: 82%;
  }
  .vet-team-image-detail {
    height: 135px;
    width: 135px;
  }
  .vet-team-collage > p {
    font-size: 1.1rem;
    padding: 1.3rem;
  }

  .vet-emergency-symbol {
    font-size: 5rem;
  }
  .vet-emergency-inner {
    grid-template-columns: 1fr;
  }
  .vet-emergency-call {
    grid-column: auto;
  }

  .vet-contact-box {
    border-radius: 25px;
    padding: 2rem;
  }
  .vet-contact-details > div {
    flex-direction: column;
    gap: 1rem;
  }

  .vet-footer p {
    font-size: 1.1rem;
  }
}
