

/* =====================================================
   1. VARIABLES
===================================================== */

:root {
  --primary: #003a87;
  --primary-light: #2a7cc7;
  --primary-soft: #eef6ff;

  --text: #1d2939;
  --text-light: #667085;

  --white: #ffffff;
  --background: #ffffff;
  --background-soft: #f6f9fc;

  --border: #e2e8f0;
  --success: #25d366;

  --shadow: 0 15px 40px rgba(0, 58, 135, 0.08);
  --shadow-hover: 0 18px 45px rgba(0, 58, 135, 0.14);

  --radius: 18px;
  --transition: 0.3s ease;

  --header-height: 78px;
  --section-padding: clamp(55px, 7vw, 90px);
  --container-width: 1200px;
}


/* =====================================================
   2. RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 15px);
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);

  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: Arial, Helvetica, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
  word-spacing: normal;
  hyphens: auto;
  text-align: left;
}

main,
section,
header,
footer,
article,
div {
  min-width: 0;
}

section[id],
div[id="turnos-centro-medico"] {
  scroll-margin-top: calc(var(--header-height) + 15px);
}


/* =====================================================
   3. GENERAL
===================================================== */

.section {
  width: 100%;
  padding: var(--section-padding) 7%;
}

.section.tinted {
  background: var(--background-soft);
}

.section-heading {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2 {
  color: var(--primary);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-heading p {
  max-width: 650px;
  margin: 0 auto;

  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  text-wrap: pretty;
}

.line {
  display: block;
  width: 60px;
  height: 4px;

  margin: 20px auto 0;

  background: var(--primary-light);
  border-radius: 10px;
}


/* =====================================================
   4. BUTTONS
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 46px;
  padding: 12px 20px;

  border: 1px solid transparent;
  border-radius: 10px;

  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;

  cursor: pointer;

  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 58, 135, 0.15);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--primary-light);
  box-shadow: 0 10px 25px rgba(0, 58, 135, 0.2);
}

.btn-outline {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--primary);
}

.btn-large {
  min-height: 52px;
  padding: 14px 26px;
}


/* =====================================================
   5. HEADER
===================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  min-height: var(--header-height);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 8px 7%;

  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* LOGO */

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;

}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.brand-logo {
  width: 65px;
  height: auto;

  object-fit: contain;
  object-position: center;

  
}


/* NAVEGACIÓN */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 25px);
}

.nav a {
  position: relative;

  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;

  transition: color var(--transition);
}

.nav a:hover {
  color: var(--primary-light);
}

.nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  background: var(--primary-light);
  border-radius: 5px;

  transition: width var(--transition);
}

.nav a:hover::after {
  width: 100%;
}


/* ACCIONES DEL HEADER */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 10px 15px;
  font-size: 0.85rem;
}


/* MENÚ MÓVIL */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;

  color: var(--primary);
  background: transparent;
  border: none;

  font-size: 1.8rem;
}


/* =====================================================
   6. HERO
===================================================== */

.hero {
  width: 100%;
  min-height: calc(100svh - var(--header-height));

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;

  gap: clamp(30px, 5vw, 65px);

  padding: 65px 7%;

  background: linear-gradient(
    135deg,
    #f8fbff 0%,
    #ffffff 65%
  );
}


/* TEXTO HERO */

.hero-copy {
  width: 100%;
  max-width: 650px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;

  color: var(--primary-light);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.5;
}

.hero h1 {
  margin-bottom: 24px;

  color: var(--primary);

  font-size: clamp(2rem, 4.5vw, 4.4rem);
  font-weight: 750;
  line-height: 1.12;

  text-wrap: balance;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero-copy > p {
  max-width: 590px;
  margin-bottom: 28px;

  color: var(--text-light);

  font-size: 1.05rem;
  line-height: 1.85;
  text-wrap: pretty;
}


/* BOTONES HERO */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;

  margin-bottom: 28px;
}


/* INDICADORES HERO */

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--text-light);
  font-size: 0.83rem;
  line-height: 1.5;
}

.hero-trust i {
  color: var(--primary-light);
}


/* IMAGEN HERO */

.hero-visual {
  position: relative;

  width: 100%;
  min-width: 0;
  min-height: 500px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame {
  position: relative;

  width: min(440px, 100%);
  overflow: hidden;

  border-radius: 26px;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 530px;

  object-fit: cover;
  object-position: center;
}


/* TARJETA EXPERIENCIA */

.experience-card {
  position: absolute;
  right: max(-20px, -2%);
  bottom: 45px;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 12px;

  max-width: calc(100% - 20px);
  padding: 15px 20px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow: 0 15px 35px rgba(0, 58, 135, 0.15);
}

.experience-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 50%;

  font-size: 1.2rem;
}

.experience-content {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.experience-content span {
  color: var(--text-light);
  font-size: 0.8rem;
}

.experience-content strong {
  color: #1d2939;
  font-size: 1.15rem;
}


/* =====================================================
   7. SOBRE MÍ
===================================================== */

.about-grid {
  width: 100%;
  max-width: 1150px;

  margin: 0 auto 55px;

  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;

  gap: clamp(30px, 5vw, 65px);
}


/* FOTO */

.about-photo {
  width: 100%;
  min-width: 0;
}

.about-photo-frame {
  width: 100%;
  overflow: hidden;

  border-radius: 25px;
  box-shadow: var(--shadow);
}

.about-photo-frame img {
  width: 100%;
  height: 480px;

  object-fit: cover;
  object-position: center;
}


/* DESCRIPCIÓN FOTO */

.about-photo-caption {
  position: relative;

  display: flex;
  align-items: center;
  gap: 14px;

  width: 88%;
  margin: -35px auto 0;
  padding: 15px;

  background: var(--white);
  border-radius: 14px;

  box-shadow: var(--shadow);
}

.about-photo-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 50%;
}

.about-photo-caption div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.about-photo-caption strong {
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.about-photo-caption span:last-child {
  color: var(--text-light);
  font-size: 0.82rem;
  line-height: 1.5;
}


/* TEXTO SOBRE MÍ */

.about-text {
  width: 100%;
}

.about-text p {
  margin-bottom: 18px;

  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.9;
  text-align: left;
  text-wrap: pretty;
}

.about-text p:last-child {
  margin-bottom: 0;
}


/* =====================================================
   8. VALORES
===================================================== */

.values-grid {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;

  gap: 20px;
}

.value-card {
  height: 100%;
  padding: 26px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.value-card .icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 12px;

  font-size: 1.3rem;
}

.value-card h3 {
  margin-bottom: 9px;

  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.4;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* =====================================================
   9. FORMACIÓN Y TRAYECTORIA
===================================================== */

.timeline {
  position: relative;

  width: 100%;
  max-width: 950px;

  margin: 0 auto 65px;
}


/* LÍNEA VERTICAL */

.timeline::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 25px;

  width: 2px;

  background: #cbdcf0;
}


/* ELEMENTO TIMELINE */

.timeline-item {
  position: relative;

  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  align-items: start;

  gap: 20px;
  margin-bottom: 25px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}


/* ÍCONO */

.timeline-icon {
  position: relative;
  z-index: 2;

  width: 52px;
  height: 52px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary-light);
  background: var(--white);

  border: 2px solid #cbdcf0;
  border-radius: 50%;

  transition: all var(--transition);
}

.timeline-item:hover .timeline-icon {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);

  transform: scale(1.06);
}


/* CONTENIDO */

.timeline-content {
  min-width: 0;
  padding: 24px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  margin-bottom: 8px;

  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.4;
  text-wrap: balance;
}

.timeline-content > p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}


/* =====================================================
   10. GALERÍA DE TRAYECTORIA
===================================================== */

.trajectory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;

  max-height: 0;
  margin-top: 0;

  overflow: hidden;
  opacity: 0;

  transform: translateY(-8px);

  transition:
    max-height 0.5s ease,
    opacity 0.4s ease,
    margin-top 0.4s ease,
    transform 0.4s ease;
}

.trajectory-card:hover .trajectory-gallery,
.trajectory-card:focus-within .trajectory-gallery {
  max-height: 200px;
  margin-top: 20px;

  opacity: 1;
  transform: translateY(0);
}

.trajectory-gallery img {
  width: 100%;
  height: 115px;

  object-fit: cover;
  border-radius: 10px;

  transition: transform var(--transition);
}

.trajectory-gallery img:hover {
  transform: scale(1.04);
}


/* =====================================================
   11. CERTIFICACIONES
===================================================== */

.certifications {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;
}

.certifications-header {
  margin-bottom: 35px;
  text-align: center;
}

.certifications-label {
  display: inline-block;
  margin-bottom: 10px;

  color: var(--primary-light);

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.certifications-header h2 {
  margin-bottom: 10px;

  color: var(--primary);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-wrap: balance;
}

.certifications-header p {
  color: var(--text-light);
  text-align: center;
  line-height: 1.7;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;

  gap: 20px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;

  height: 100%;
  padding: 22px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cert-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 10px;
}

.cert-content {
  min-width: 0;
}

.cert-content h3 {
  margin-bottom: 7px;

  color: var(--primary);
  font-size: 0.98rem;
  line-height: 1.45;
}

.cert-content p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.7;
}


/* =====================================================
   12. SERVICIOS
===================================================== */

.cards-grid.services {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;

  gap: 25px;
}

.service-card {
  height: 100%;
  min-width: 0;
  padding: 30px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}


/* SERVICIO DESTACADO */

.service-highlight {
  border: 2px solid #d9eaff;

  background: linear-gradient(
    145deg,
    #ffffff,
    #f5faff
  );
}


/* ÍCONO SERVICIO */

.service-card .icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 14px;

  font-size: 1.4rem;
}


/* TEXTO SERVICIO */

.service-card h3 {
  margin-bottom: 12px;

  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1.4;
  text-wrap: balance;
}

.service-card p {
  margin-bottom: 18px;

  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.8;
}

.service-card h4 {
  margin-bottom: 10px;

  color: var(--primary);
  font-size: 1rem;
}

.service-card ul {
  padding-left: 21px;

  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.8;
}

.service-card li {
  margin-bottom: 5px;
  padding-left: 2px;
}

.service-subtitle {
  margin-bottom: 12px !important;

  color: var(--primary) !important;
  font-weight: 600;
}


/* =====================================================
   13. TESTIMONIOS
===================================================== */

.testimonials-grid {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto 45px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;

  gap: 20px;
}

.testimonial-card {
  height: 100%;
  padding: 26px;

  display: flex;
  flex-direction: column;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.testimonial-stars {
  margin-bottom: 14px;

  color: #f5b301;
  font-size: 0.95rem;
}

.testimonial-text {
  flex: 1;
  margin-bottom: 22px;

  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.8;
}


/* AUTOR */

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 50%;
}

.testimonial-author div:last-child {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--primary);
  font-size: 0.9rem;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.8rem;
}


/* =====================================================
   14. MÉTRICAS
===================================================== */

.patient-metrics {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;

  gap: 20px;
}

.metric-card {
  height: 100%;
  padding: 23px 16px;

  text-align: center;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.metric-card strong {
  display: block;
  margin-bottom: 7px;

  color: var(--primary-light);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.metric-card h3 {
  margin-bottom: 7px;

  color: var(--primary);
  font-size: 0.98rem;
}

.metric-card p {
  color: var(--text-light);
  font-size: 0.83rem;
  line-height: 1.6;
  text-align: center;
}


/* =====================================================
   15. CONSULTORIO
===================================================== */

.consultorio-features {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto 45px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;

  gap: 20px;
}

.consultorio-features article {
  height: 100%;
  padding: 23px 18px;

  text-align: center;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.consultorio-features article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.mini-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 15px;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 50%;

  font-size: 1.2rem;
}

.consultorio-features h3 {
  margin-bottom: 7px;

  color: var(--primary);
  font-size: 1rem;
  text-wrap: balance;
}

.consultorio-features p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
}


/* GALERÍA */

.gallery {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 280px;

  object-fit: cover;
  object-position: center;

  border-radius: 18px;
  box-shadow: var(--shadow);

  transition: transform var(--transition);
}

.gallery img:hover {
  transform: scale(1.02);
}


/* =====================================================
   CONTACTO - ESTILOS DEFINITIVOS
===================================================== */

/* --- GRID PRINCIPAL --- */
.contact-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 35px;
}

/* --- COLUMNA DE CONTACTO DIRECTO --- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

/* --- TARJETAS DE CONTACTO --- */
.contact-card {
  height: 100%;
  padding: 24px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-card .icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 15px;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 12px;

  font-size: 1.2rem;
}

.contact-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.05rem;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --- TARJETA DE LLAMADA (OCUPA TODO EL ANCHO) --- */
.contact-main-card {
  grid-column: 1 / -1;

  display: flex;
  flex-direction: column;
}

.contact-main-card .btn {
  width: 100%;
  margin-top: 18px;
}

/* --- TARJETA DE WHATSAPP --- */
.whatsapp-card {
  border: 2px solid rgba(37, 211, 102, 0.25);
}

.whatsapp-card .icon {
  color: var(--success);
  background: rgba(37, 211, 102, 0.1);
}

.btn-whatsapp {
  color: var(--white);
  background: var(--success);
}

.btn-whatsapp:hover {
  color: var(--white);
  background: #1ebe5d;
}

/* --- TARJETA DE UBICACIÓN CLICKEABLE --- */
.location-card-link {
  display: flex;
  align-items: center;
  gap: 15px;

  width: 100%;
  margin-top: 20px;
  padding: 20px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  text-decoration: none;
  color: inherit;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.location-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #c9def5;
}

.location-card-link .location-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 14px;

  font-size: 1.2rem;
}

.location-card-link .location-content {
  flex: 1;
  min-width: 0;
}

.location-card-link .location-label {
  display: block;
  margin-bottom: 3px;

  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.location-card-link .location-content h3 {
  margin-bottom: 3px;

  color: var(--primary);
  font-size: 1.05rem;
}

.location-card-link .location-content p {
  margin: 0;

  color: var(--text-light);
  font-size: 0.85rem;
}

.location-card-link .location-map-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  flex-shrink: 0;
  padding: 10px 14px;

  color: var(--white);
  background: var(--primary);
  border-radius: 10px;

  font-size: 0.82rem;
  font-weight: 600;

  transition: background var(--transition);
}

.location-card-link:hover .location-map-button {
  background: var(--primary-light);
}

/* =====================================================
   RESPONSIVE - CONTACTO
===================================================== */

@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-appointment {
    position: static;
  }
}

@media (max-width: 600px) {
  .contact-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .contact-card {
    padding: 22px;
  }

  .location-card-link {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .location-card-link .location-map-button {
    width: 100%;
    justify-content: center;
  }
}


/* =====================================================
   18. FOOTER
===================================================== */

.footer {
  width: 100%;
  padding: 55px 7% 20px;

  color: var(--white);
  background: #071d38;
}

.footer-grid {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  align-items: start;

  gap: 35px;
}


/* MARCA */

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-brand .brand-logo {
  width: 85px;
  height: auto;

  object-fit: contain;
  object-position: center;

  background: transparent;
  border-radius: 11px;
}


/* TÍTULOS */

.footer h3 {
  margin-bottom: 17px;

  color: var(--white);
  font-size: 1rem;
}


/* ENLACES */

.footer a {
  display: block;
  width: fit-content;
  max-width: 100%;

  margin-bottom: 9px;

  color: #d6e2ef;
  font-size: 0.88rem;
  line-height: 1.7;

  transition: color var(--transition);
}

.footer a:hover {
  color: var(--white);
}


/* PÁRRAFOS */

.footer p {
  margin-bottom: 12px;

  color: #c4d0dd;
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer p i {
  margin-right: 7px;
}

.professional {
  color: #d6e2ef;
  font-size: 0.9rem;
  font-weight: 600;
}


/* PIE INFERIOR */

.footer-bottom {
  width: 100%;
  max-width: 1200px;

  margin: 40px auto 0;
  padding-top: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: #aebdcb;
  border-top: 1px solid rgba(255, 255, 255, 0.15);

  font-size: 0.8rem;
  line-height: 1.6;
}


/* =====================================================
   19. RESPONSIVE - TABLETS
===================================================== */

@media (max-width: 1100px) {

  :root {
    --section-padding: 70px;
  }

  .header {
    padding: 8px 4%;
    gap: 12px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 0.78rem;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn {
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 55px 5%;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  }

  .hero-visual {
    min-height: 450px;
  }

  .image-frame img {
    height: 470px;
  }

  .experience-card {
    right: -5px;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consultorio-features,
  .patient-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =====================================================
   20. RESPONSIVE - TABLETS PEQUEÑAS
===================================================== */

@media (max-width: 850px) {

  :root {
    --header-height: 72px;
    --section-padding: 60px;
  }

  /* HEADER */

  .header {
    min-height: var(--header-height);
    padding: 7px 5%;
  }

  .brand-logo {
    width: 62px;
    height: 58px;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .header-actions {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    width: 100%;

    display: none;
    flex-direction: column;
    align-items: flex-start;

    gap: 17px;
    padding: 22px 5%;

    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    width: 100%;
    font-size: 0.95rem;
  }

  .nav a::after {
    display: none;
  }


  /* HERO */

  .hero {
    min-height: auto;

    grid-template-columns: minmax(0, 1fr);

    padding: 60px 5%;
    gap: 35px;

    text-align: center;
  }

  .hero-copy {
    max-width: 680px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
  }

  .hero-copy > p {
    max-width: 600px;
    margin: 0 auto 25px;
    text-align: center;
  }

  .hero-buttons,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 500px;
    min-height: 0;

    margin: 0 auto;
  }

  .image-frame {
    width: 100%;
    max-width: 440px;
  }

  .image-frame img {
    height: 470px;
  }

  .experience-card {
    right: 5px;
    bottom: 20px;
  }


  /* SOBRE MÍ */

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 650px;
    gap: 35px;
  }

  .about-photo-frame img {
    height: 430px;
  }


  /* TARJETAS */

  .cards-grid.services {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
  }

  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-appointment {
    position: static;
  }

  .contact-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* GALERÍA */

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery img:last-child {
    grid-column: 1 / -1;
  }


  /* CERTIFICACIONES */

  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =====================================================
   21. RESPONSIVE - CELULARES
===================================================== */

@media (max-width: 600px) {

  :root {
    --section-padding: 50px;
  }

  /* GENERAL */

  .section {
    padding: 50px 20px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .section-heading p {
    font-size: 0.93rem;
    line-height: 1.7;
  }


  /* HEADER */

  .header {
    padding: 7px 18px;
  }

  .brand-logo {
    width: 58px;
    height: 55px;
  }

  .nav {
    padding: 20px;
    gap: 15px;
  }


  /* HERO */

  .hero {
    padding: 45px 20px;
    gap: 28px;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.15;
  }

  .hero-copy > p {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-trust span {
    font-size: 0.82rem;
  }

  .image-frame {
    max-width: 100%;
    border-radius: 20px;
  }

  .image-frame img {
    height: clamp(300px, 100vw, 390px);
  }

  .experience-card {
    right: 5px;
    bottom: 12px;
    padding: 10px 12px;
    gap: 9px;
  }

  .experience-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .experience-content span {
    font-size: 0.72rem;
  }

  .experience-content strong {
    font-size: 1rem;
  }


  /* SOBRE MÍ */

  .about-grid {
    gap: 30px;
    margin-bottom: 38px;
  }

  .about-photo-frame {
    border-radius: 20px;
  }

  .about-photo-frame img {
    height: 350px;
  }

  .about-photo-caption {
    width: 92%;
    gap: 10px;
    padding: 12px;
    margin-top: -25px;
  }

  .about-photo-icon {
    width: 40px;
    height: 40px;
  }

  .about-photo-caption strong {
    font-size: 0.84rem;
  }

  .about-photo-caption span:last-child {
    font-size: 0.75rem;
  }

  .about-text p {
    font-size: 0.94rem;
    line-height: 1.8;
    margin-bottom: 15px;
  }


  /* VALORES */

  .values-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .value-card {
    padding: 22px;
  }

  .value-card p {
    font-size: 0.88rem;
  }


  /* TIMELINE */

  .timeline {
    margin-bottom: 45px;
  }

  .timeline::before {
    left: 19px;
  }

  .timeline-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .timeline-content {
    padding: 18px;
    border-radius: 13px;
  }

  .timeline-content h3 {
    font-size: 0.98rem;
  }

  .timeline-content > p {
    font-size: 0.88rem;
  }


  /* GALERÍA DE TRAYECTORIA */

  .trajectory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    gap: 8px;

    margin-top: 15px;
    opacity: 1;
    transform: none;
  }

  .trajectory-gallery img {
    width: 100%;
    height: 105px;
  }

  .trajectory-gallery img:last-child {
    display: none;
  }


  /* CERTIFICACIONES */

  .certifications-header {
    margin-bottom: 25px;
  }

  .certifications-header h2 {
    font-size: 1.55rem;
  }

  .certifications-header p {
    font-size: 0.9rem;
  }

  .cert-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .cert-card {
    padding: 18px;
    gap: 12px;
  }

  .cert-content h3 {
    font-size: 0.93rem;
  }

  .cert-content p {
    font-size: 0.84rem;
  }


  /* SERVICIOS */

  .cards-grid.services {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .service-card {
    padding: 23px;
    border-radius: 15px;
  }

  .service-card .icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p,
  .service-card ul {
    font-size: 0.9rem;
  }


  /* TESTIMONIOS */

  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 35px;
  }

  .testimonial-card {
    padding: 22px;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }


  /* MÉTRICAS */

  .patient-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .metric-card {
    padding: 20px 12px;
  }

  .metric-card strong {
    font-size: 1.65rem;
  }

  .metric-card h3 {
    font-size: 0.9rem;
  }

  .metric-card p {
    font-size: 0.78rem;
  }


  /* CONSULTORIO */

  .consultorio-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 30px;
  }

  .consultorio-features article {
    padding: 20px 12px;
  }

  .consultorio-features h3 {
    font-size: 0.9rem;
  }

  .consultorio-features p {
    font-size: 0.8rem;
  }

  .mini-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .gallery img,
  .gallery img:last-child {
    grid-column: auto;
    height: 250px;
  }


  /* CONTACTO */

  .contact-grid {
    gap: 25px;
  }

  .contact-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .contact-card {
    padding: 22px;
  }

  .contact-card h3 {
    font-size: 1rem;
  }

  .contact-card p {
    font-size: 0.88rem;
  }

  .appointment-box {
    padding: 32px 22px;
    border-radius: 18px;
  }

  .appointment-box h3 {
    font-size: 1.35rem;
  }

  .appointment-box p {
    font-size: 0.9rem;
  }


  /* FOOTER */

  .footer {
    padding: 42px 20px 20px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .footer-brand .brand-logo {
    width: 75px;
    height: 70px;
  }

  .footer h3 {
    margin-bottom: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;

    margin-top: 28px;
    text-align: center;
  }

}


/* =====================================================
   22. CELULARES MUY PEQUEÑOS
===================================================== */

@media (max-width: 380px) {

  .section {
    padding: 42px 16px;
  }

  .hero {
    padding: 38px 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-copy > p {
    font-size: 0.9rem;
  }

  .image-frame img {
    height: 310px;
  }

  .experience-card {
    padding: 8px 10px;
  }

  .about-photo-frame img {
    height: 300px;
  }

  .about-photo-caption {
    width: 96%;
  }

  .about-photo-caption strong {
    font-size: 0.78rem;
  }

  .timeline-item {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-icon {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .timeline-content {
    padding: 14px;
  }

  .patient-metrics,
  .consultorio-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery img,
  .gallery img:last-child {
    height: 220px;
  }

}


/* =====================================================
   23. ACCESIBILIDAD Y MOVIMIENTO
===================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}


/* =====================================================
   24. IMPRESIÓN
===================================================== */

@media print {

  .header {
    position: static;
  }

  .menu-toggle,
  .header-actions,
  .hero-buttons,
  .contact-appointment {
    display: none !important;
  }

  .section {
    padding: 25px 0;
  }

  .trajectory-gallery {
    max-height: none;
    margin-top: 10px;
    opacity: 1;
    transform: none;
  }

  .value-card,
  .service-card,
  .testimonial-card,
  .contact-card,
  .cert-card {
    break-inside: avoid;
    box-shadow: none;
  }

}

/* =====================================================
   25. AJUSTES VISUALES FINALES
   ===================================================== */

/* HEADER: logo + nombre del profesional */
.header {
  display: grid;
  grid-template-columns: minmax(230px, auto) 1fr auto;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
  padding: 7px clamp(24px, 5vw, 7%);
}

.brand {
  gap: 12px;
  min-width: 0;
}

.brand-logo-link {
  flex-shrink: 0;
  transition: transform 0.35s ease;
}



.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.12;
  color: var(--primary);
  white-space: nowrap;
}

.brand-name span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.brand-name strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* NAV MÁS EQUILIBRADA */
.nav {
  justify-self: center;
  gap: clamp(10px, 1.4vw, 22px);
}

/* HERO MÁS COMPACTO Y CENTRADO */
.hero {
  min-height: auto;
  padding: 42px clamp(24px, 6vw, 7%) 48px;
  gap: clamp(25px, 4vw, 55px);
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-buttons,
.hero-trust {
  justify-content: center;
}

.hero h1 {
  text-wrap: balance;
  letter-spacing: -1.5px;
}

.hero-visual {
  min-height: 0;
}

.image-frame {
  box-shadow:
    0 25px 55px rgba(0, 58, 135, 0.13),
    0 0 0 1px rgba(0, 58, 135, 0.04);
  animation: heroImageIn 0.9s cubic-bezier(.2,.8,.2,1) both;
}

.image-frame img {
  height: 500px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}

.image-frame:hover img {
  transform: scale(1.035);
}

.experience-card {
  animation: floatingCard 4s ease-in-out infinite;
}

/* ANIMACIONES DE ENTRADA */
.hero-copy {
  animation: heroTextIn 0.8s cubic-bezier(.2,.8,.2,1) both;
}

.eyebrow {
  animation: fadeUp 0.65s 0.05s ease both;
}

.hero h1 {
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero-copy > p {
  animation: fadeUp 0.7s 0.25s ease both;
}

.hero-buttons {
  animation: fadeUp 0.7s 0.35s ease both;
}

.hero-trust {
  animation: fadeUp 0.7s 0.45s ease both;
}

.value-card,
.service-card,
.testimonial-card,
.cert-card,
.contact-card,
.metric-card,
.consultorio-features article {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.value-card:hover,
.service-card:hover,
.testimonial-card:hover,
.cert-card:hover,
.contact-card:hover,
.metric-card:hover,
.consultorio-features article:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: #c9def5;
}

.gallery img {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    filter 0.4s ease;
}

.gallery img:hover {
  transform: translateY(-5px) scale(1.015);
  filter: saturate(1.05);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,255,255,.22) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn > * {
  position: relative;
  z-index: 1;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: translateX(25px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes floatingCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* TABLETS */
@media (max-width: 1100px) {
  .header {
    grid-template-columns: minmax(210px, auto) 1fr auto;
    padding-inline: 4%;
  }

  .brand-name span {
    font-size: 0.8rem;
  }

  .brand-name strong {
    font-size: 0.95rem;
  }

  .nav {
    gap: 9px;
  }

  .nav a {
    font-size: 0.76rem;
  }

  .hero {
    padding-inline: 4.5%;
  }
}

/* TABLETS PEQUEÑAS / MOBILE */
@media (max-width: 850px) {
  .header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 5%;
  }

  .brand {
    max-width: calc(100% - 55px);
  }

  .brand-name {
    overflow: hidden;
  }

  .brand-name span,
  .brand-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 48px 5% 42px;
    gap: 30px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    letter-spacing: -0.8px;
  }

  .hero-visual {
    max-width: 470px;
  }
}

/* CELULARES */
@media (max-width: 600px) {
  .header {
    padding: 6px 16px;
    min-height: 68px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 50px;
    height: 48px;
  }

  .brand-name span {
    font-size: 0.69rem;
  }

  .brand-name strong {
    font-size: 0.86rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    font-size: 1.55rem;
  }

  .hero {
    padding: 38px 18px 38px;
    gap: 24px;
  }

  .eyebrow {
    font-size: 0.67rem;
    letter-spacing: .8px;
  }

  .hero h1 {
    margin-bottom: 15px;
    font-size: clamp(1.95rem, 9vw, 2.55rem);
    line-height: 1.12;
  }

  .hero-copy > p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: row;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-buttons .btn {
    width: 50%;
    min-height: 48px;
    padding-inline: 10px;
    font-size: 0.88rem;
  }

  .hero-trust {
    gap: 7px;
  }

  .hero-trust span {
    font-size: 0.76rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 390px;
  }

  .image-frame {
    border-radius: 20px;
  }

  .image-frame img {
    height: clamp(300px, 92vw, 365px);
  }

  .experience-card {
    right: 3px;
    bottom: 10px;
  }

  /* MENÚ MÓVIL */
  .nav {
    padding: 18px 20px 20px;
    gap: 4px;
    box-shadow: 0 18px 35px rgba(0, 58, 135, 0.12);
    animation: mobileMenuIn .25s ease both;
  }

  .nav a {
    padding: 11px 4px;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.92rem;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 45px 18px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading p {
    line-height: 1.6;
  }

  .about-text p,
  .service-card p,
  .testimonial-text {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .value-card,
  .service-card,
  .testimonial-card,
  .cert-card,
  .contact-card,
  .metric-card,
  .consultorio-features article {
    text-align: center;
  }

  .service-card .icon,
  .value-card .icon,
  .contact-card .icon,
  .mini-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .service-card ul {
    text-align: left;
    display: inline-block;
  }

  .timeline-content {
    text-align: left;
  }

  .gallery img {
    height: 225px;
  }

  .footer {
    text-align: center;
  }

  .footer .brand {
    justify-content: center;
  }
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CELULARES MUY PEQUEÑOS */
@media (max-width: 380px) {
  .brand-logo {
    width: 46px;
    height: 44px;
  }

  .brand-name span {
    font-size: 0.64rem;
  }

  .brand-name strong {
    font-size: 0.8rem;
  }

  .hero {
    padding-inline: 15px;
  }

  .hero-buttons .btn {
    font-size: 0.82rem;
  }
}
/* =====================================================
   ANIMACIONES MODERNAS
===================================================== */

/* ---------- VARIABLES ---------- */

:root {
  --animation-speed: 0.8s;
  --animation-ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* =====================================================
   1. ANIMACIÓN DE ENTRADA GENERAL
===================================================== */


.reveal {
  opacity: 0;
  transform: translateY(80px);
  
  transition: opacity 2s ease-out, transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================================================
   2. HERO
===================================================== */

.hero-copy > * {
  opacity: 0;
  transform: translateY(25px);
  animation: heroAppear 0.8s var(--animation-ease) forwards;
}

.hero-copy .eyebrow {
  animation-delay: 0.15s;
}

.hero-copy h1 {
  animation-delay: 0.3s;
}

.hero-copy > p {
  animation-delay: 0.45s;
}

.hero-copy .hero-buttons {
  animation-delay: 0.6s;
}

.hero-copy .hero-trust {
  animation-delay: 0.75s;
}


@keyframes heroAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =====================================================
   3. IMAGEN DEL HERO
===================================================== */

.hero-visual {
  opacity: 0;
  transform: translateX(40px);
  animation: heroImageAppear 1s var(--animation-ease) 0.35s forwards;
}

@keyframes heroImageAppear {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Movimiento suave de la foto */

.image-frame img {
  transition:
    transform 0.7s var(--animation-ease),
    filter 0.7s ease;
}

.image-frame:hover img {
  transform: scale(1.035);
  filter: brightness(1.03);
}


/* =====================================================
   4. TARJETA DE EXPERIENCIA FLOTANTE
===================================================== */

.experience-card {
  animation: floatingCard 4s ease-in-out infinite;
}

@keyframes floatingCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}


/* =====================================================
   5. TÍTULOS DE SECCIONES
===================================================== */

.section-heading .line {
  position: relative;
  overflow: hidden;
}

.section-heading .line::after {
  content: "";

  position: absolute;
  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background: var(--white);

  animation: lineMove 2s ease infinite;
}

@keyframes lineMove {
  0% {
    left: -100%;
  }

  45%,
  100% {
    left: 100%;
  }
}


/* =====================================================
   6. TARJETAS
===================================================== */

.value-card,
.service-card,
.testimonial-card,
.contact-card,
.cert-card,
.metric-card {
  transition:
    transform 0.4s var(--animation-ease),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.value-card:hover,
.service-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.cert-card:hover,
.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 58, 135, 0.12);
}


/* =====================================================
   7. ICONOS
===================================================== */

.value-card .icon,
.service-card .icon,
.contact-card .icon,
.cert-icon,
.mini-icon {
  transition:
    transform 0.4s var(--animation-ease),
    background 0.4s ease,
    color 0.4s ease;
}

.value-card:hover .icon,
.service-card:hover .icon,
.contact-card:hover .icon,
.cert-card:hover .cert-icon,
.consultorio-features article:hover .mini-icon {
  transform: scale(1.08) rotate(-3deg);
}


/* =====================================================
   8. BOTONES
===================================================== */

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 70%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.28),
    transparent
  );

  transform: skewX(-20deg);

  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 140%;
}

.btn:active {
  transform: scale(0.97);
}


/* =====================================================
   9. NAVEGACIÓN
===================================================== */

.nav a {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.nav a:hover {
  transform: translateY(-2px);
}


/* =====================================================
   10. FOTO SOBRE MÍ
===================================================== */

.about-photo-frame {
  overflow: hidden;
}

.about-photo-frame img {
  transition:
    transform 0.8s var(--animation-ease),
    filter 0.5s ease;
}

.about-photo-frame:hover img {
  transform: scale(1.04);
  filter: brightness(1.04);
}


/* =====================================================
   11. GALERÍA DEL CONSULTORIO
===================================================== */

.gallery {
  perspective: 1000px;
}

.gallery img {
  transition:
    transform 0.5s var(--animation-ease),
    box-shadow 0.5s ease,
    filter 0.5s ease;
}

.gallery img:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 20px 40px rgba(0, 58, 135, 0.16);
  filter: brightness(1.04);
}


/* =====================================================
   12. GALERÍA DE TRAYECTORIA
===================================================== */

.trajectory-gallery img {
  transition:
    transform 0.5s var(--animation-ease),
    filter 0.4s ease;
}

.trajectory-gallery img:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}


/* =====================================================
   13. TIMELINE
===================================================== */

.timeline-item {
  transition: transform 0.4s var(--animation-ease);
}

.timeline-item:hover {
  transform: translateX(5px);
}


/* =====================================================
   14. ESTRELLAS DE TESTIMONIOS
===================================================== */

.testimonial-stars i {
  display: inline-block;

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.testimonial-card:hover .testimonial-stars i:nth-child(1) {
  transform: translateY(-3px);
}

.testimonial-card:hover .testimonial-stars i:nth-child(2) {
  transform: translateY(-5px);
}

.testimonial-card:hover .testimonial-stars i:nth-child(3) {
  transform: translateY(-7px);
}

.testimonial-card:hover .testimonial-stars i:nth-child(4) {
  transform: translateY(-5px);
}

.testimonial-card:hover .testimonial-stars i:nth-child(5) {
  transform: translateY(-3px);
}


/* =====================================================
   15. MÉTRICAS
===================================================== */

.metric-card strong {
  display: inline-block;

  transition:
    transform 0.4s var(--animation-ease);
}

.metric-card:hover strong {
  transform: scale(1.08);
}


/* =====================================================
   16. WHATSAPP
===================================================== */

.btn-whatsapp {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);

  box-shadow:
    0 12px 30px rgba(37, 211, 102, 0.25);
}


/* =====================================================
   17. TURNOS
===================================================== */

.appointment-box {
  position: relative;
  overflow: hidden;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.appointment-box::before {
  content: "";

  position: absolute;

  width: 250px;
  height: 250px;

  top: -120px;
  right: -100px;

  background: rgba(255,255,255,0.08);

  border-radius: 50%;

  transition: transform 0.6s ease;
}

.appointment-box:hover {
  transform: translateY(-5px);

  box-shadow:
    0 25px 50px rgba(0, 58, 135, 0.18);
}

.appointment-box:hover::before {
  transform: scale(1.3);
}


/* =====================================================
   18. FOOTER
===================================================== */

.footer a {
  position: relative;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer a:hover {
  transform: translateX(4px);
}


/* =====================================================
   19. EFECTO DE APARICIÓN ESCALONADA
===================================================== */

.values-grid .value-card:nth-child(1) {
  transition-delay: 0.05s;
}

.values-grid .value-card:nth-child(2) {
  transition-delay: 0.12s;
}

.values-grid .value-card:nth-child(3) {
  transition-delay: 0.19s;
}

.values-grid .value-card:nth-child(4) {
  transition-delay: 0.26s;
}


.services .service-card:nth-child(1) {
  transition-delay: 0.05s;
}

.services .service-card:nth-child(2) {
  transition-delay: 0.12s;
}

.services .service-card:nth-child(3) {
  transition-delay: 0.19s;
}


.testimonials-grid .testimonial-card:nth-child(1) {
  transition-delay: 0.05s;
}

.testimonials-grid .testimonial-card:nth-child(2) {
  transition-delay: 0.12s;
}

.testimonials-grid .testimonial-card:nth-child(3) {
  transition-delay: 0.19s;
}


/* =====================================================
   20. SCROLLBAR
===================================================== */

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}


/* =====================================================
   21. ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}
.cert-icon {
  width: 75px;
  height: 75px;
  min-width: 75px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.cert-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  transition: transform 0.3s ease;
}

.cert-card:hover .cert-icon img {
  transform: scale(1.08);
}
/* =====================================================
   MAPA DE UBICACIÓN
===================================================== */

.location-map {
  width: 100%;
  margin-top: 30px;
  padding: 25px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.map-header {
  display: flex;
  align-items: center;
  gap: 15px;

  margin-bottom: 20px;
}

.map-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary-light);
  background: var(--primary-soft);

  border-radius: 14px;

  font-size: 1.2rem;
}

.map-header span {
  display: block;

  margin-bottom: 3px;

  color: var(--primary-light);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.map-header h3 {
  margin-bottom: 3px;

  color: var(--primary);

  font-size: 1.2rem;
}

.map-header p {
  margin: 0;

  color: var(--text-light);

  font-size: 0.9rem;
}

.map-container {
  width: 100%;
  height: 380px;

  overflow: hidden;

  border-radius: 15px;
  border: 1px solid var(--border);

  background: #eef3f8;
}

.map-container iframe {
  width: 100%;
  height: 100%;

  display: block;

  border: 0;
}

.map-button {
  margin-top: 18px;
}


/* =====================================================
   MENÚ RESPONSIVE - TABLET Y CELULAR
===================================================== */

@media (max-width: 850px) {

  .header {
    position: sticky;
    top: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 7px 5%;

    background: rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .menu-toggle {
    display: flex;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--primary);

    background: transparent;

    border: none;

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;
  }

  .header-actions {
    display: none;
  }

  .nav {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 10px 5% 18px;

    background: rgba(255, 255, 255, 0.99);

    border-bottom: 1px solid var(--border);

    box-shadow: 0 15px 35px rgba(0, 58, 135, 0.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    pointer-events: none;

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  /*
    ESTE ES EL CAMBIO IMPORTANTE
  */

  .nav.open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
  }

  .nav a {
    width: 100%;

    padding: 13px 5px;

    color: var(--text);

    border-bottom: 1px solid #eef2f7;

    font-size: 0.95rem;
    font-weight: 600;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a:hover {
    color: var(--primary-light);
  }

  .nav a::after {
    display: none;
  }

}


/* =====================================================
   MAPA - TABLETS
===================================================== */

@media (max-width: 850px) {

  .location-map {
    padding: 20px;
  }

  .map-container {
    height: 330px;
  }

}


/* =====================================================
   MAPA - CELULARES
===================================================== */

@media (max-width: 600px) {

  .location-map {
    margin-top: 25px;
    padding: 16px;

    border-radius: 15px;
  }

  .map-header {
    align-items: flex-start;
    gap: 12px;
  }

  .map-icon {
    width: 44px;
    height: 44px;

    border-radius: 12px;
  }

  .map-header h3 {
    font-size: 1.05rem;
  }

  .map-header p {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .map-container {
    height: 280px;

    border-radius: 12px;
  }

  .map-button {
    width: 100%;
  }

}


/* =====================================================
   CELULARES MUY PEQUEÑOS
===================================================== */

@media (max-width: 380px) {

  .map-container {
    height: 250px;
  }

  .map-header {
    flex-direction: column;
  }

}
/* =====================================================
   TARJETA DE TURNOS
===================================================== */

.appointment-card {
  display: flex;
  flex-direction: column;

  padding: 28px 24px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.appointment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.appointment-card .appointment-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 15px;

  color: var(--primary-light);
  background: var(--primary-soft);
  border-radius: 12px;

  font-size: 1.2rem;
}

.appointment-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.15rem;
}

.appointment-card p {
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

.appointment-card .btn {
  width: 100%;
  margin-top: auto;
}
/* =====================================================
   CONTACTO - TARJETA COMBINADA
===================================================== */

.contact-combined-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.contact-combined-card p {
  margin-bottom: 20px;
}

.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;

  border-radius: 12px;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.contact-action:hover {
  transform: translateY(-3px);
}

.contact-action-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  font-size: 1.1rem;
}

.contact-action span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.contact-action strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-action small {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* --- BOTÓN LLAMADA --- */
.call-action {
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #d9eaff;
}

.call-action .contact-action-icon {
  color: var(--white);
  background: var(--primary);
}

.call-action:hover {
  background: #e3f0ff;
  box-shadow: 0 10px 25px rgba(0, 58, 135, 0.15);
}

/* --- BOTÓN WHATSAPP --- */
.whatsapp-action {
  color: #0f7b3e;
  background: #e6f9ee;
  border: 1px solid #b8f0ce;
}

.whatsapp-action .contact-action-icon {
  color: var(--white);
  background: var(--success);
}

.whatsapp-action:hover {
  background: #d7f5e3;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}

/* =====================================================
   TARJETA DE TURNOS CON MÁS COLOR
===================================================== */

.appointment-card {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  padding: 32px 26px;

  background: linear-gradient(
    145deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );

  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(0, 58, 135, 0.25);

  color: var(--white);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.appointment-card::before {
  content: "";
  position: absolute;

  top: -120px;
  right: -100px;

  width: 260px;
  height: 260px;

  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;

  transition: transform 0.6s ease;
}

.appointment-card::after {
  content: "";
  position: absolute;

  bottom: -140px;
  left: -90px;

  width: 220px;
  height: 220px;

  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;

  transition: transform 0.6s ease;
}

.appointment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px rgba(0, 58, 135, 0.32);
}

.appointment-card:hover::before {
  transform: scale(1.2);
}

.appointment-card:hover::after {
  transform: scale(1.15);
}

.appointment-card .appointment-icon {
  position: relative;
  z-index: 1;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;

  font-size: 1.4rem;

  backdrop-filter: blur(6px);
}

.appointment-card h3 {
  position: relative;
  z-index: 1;

  margin-bottom: 12px;

  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.35;
}

.appointment-card p {
  position: relative;
  z-index: 1;

  margin-bottom: 22px;

  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* --- BOTÓN DEL TURNO --- */
.btn-appointment {
  position: relative;
  z-index: 1;

  width: 100%;

  color: var(--primary);
  background: var(--white);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-appointment:hover {
  color: var(--primary);
  background: #f0f6ff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   RESPONSIVE - CONTACTO
===================================================== */

@media (max-width: 600px) {
  .contact-buttons {
    grid-template-columns: 1fr;
  }

  .appointment-card {
    padding: 26px 20px;
  }

  .appointment-card h3 {
    font-size: 1.2rem;
  }
}
/* =====================================================
   CONTACTO - ORDEN DE TARJETAS
===================================================== */

/* Columna izquierda: 2 columnas internas */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 20px;
}

/* Contacto Directo ocupa las 2 columnas */
.contact-combined-card {
  grid-column: 1 / -1;
}

/* Horarios ocupa las 2 columnas (debajo) */
.contact-info > .contact-card:last-child {
  grid-column: 1 / -1;
}

/* Columna derecha: turno + ubicación */
.contact-appointment {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}