
/* =====================================================
   DR. OSCAR VÁZQUEZ DÍAZ
   DISEÑO MÉDICO PREMIUM
   ===================================================== */

:root {
  --navy: #081b32;
  --navy-2: #102c47;
  --blue: #237eb2;
  --blue-soft: #edf6fb;
  --gold: #c9a66b;
  --text: #24384d;
  --muted: #788ba0;
  --white: #ffffff;
  --light: #f6f9fc;
  --border: #e5edf3;
  --shadow: 0 20px 60px rgba(8, 27, 50, .08);
  --radius: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  line-height: 1.2;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 105px 0;
}

.kicker {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

.muted {
  color: var(--muted);
}

/* =====================================================
   BOTONES
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition:
    transform .3s ease,
    background .3s ease,
    border-color .3s ease,
    color .3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(8, 27, 50, .12);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--blue);
}

.btn-ghost {
  color: var(--navy);
  background: var(--white);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.btn-light {
  color: var(--navy);
  background: var(--white);
}

.btn-light:hover {
  color: var(--white);
  background: var(--blue);
}

/* =====================================================
   HEADER
   ===================================================== */

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* LOGO SUPERIOR MÁS PEQUEÑO */

.brand {
  width: 150px;
  height: 76px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* NAVEGACIÓN */

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  padding: 12px 15px;
  border-radius: 9px;
  color: #74869a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: .25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--navy);
  background: var(--blue-soft);
}

.nav a.nav-cta {
  margin-left: 12px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 5px 16px rgba(8, 27, 50, .12);
}

.nav a.nav-cta:hover {
  color: var(--white);
  background: var(--blue);
}

/* MENÚ HAMBURGUESA */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  display: block;
  background: var(--navy);
  border-radius: 10px;
  transition: .3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 110px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(35, 126, 178, .12),
      transparent 36%
    ),
    linear-gradient(180deg, #ffffff 0%, #f5fafd 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  right: -320px;
  top: -260px;
  border: 1px solid rgba(35, 126, 178, .10);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  left: -220px;
  bottom: -220px;
  border: 1px solid rgba(35, 126, 178, .07);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 75px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin-bottom: 28px;
  color: var(--navy);
  font-size: clamp(40px, 4.3vw, 64px);
  font-weight: 800;
  letter-spacing: -2.5px;
}

.hero h1 span {
  color: var(--blue);
}

.hero-lead {
  max-width: 550px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #73879a;
  font-size: 12px;
  font-weight: 600;
}

.trust-row span::before {
  margin-right: 7px;
  color: var(--gold);
  content: "✓";
}

/* =====================================================
   FOTO DEL DOCTOR
   ===================================================== */

.hero-photo {
  position: relative;
  width: 100%;
  max-width: 465px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 28px;
  background: #e7edf1;
  box-shadow: 0 25px 70px rgba(8, 27, 50, .14);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s ease;
}

.hero-photo:hover img {
  transform: scale(1.025);
}

.photo-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 80px 28px 27px;
  color: var(--white);
  background: linear-gradient(
    to top,
    rgba(8, 27, 50, .95),
    rgba(8, 27, 50, 0)
  );
}

.photo-caption strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  line-height: 1.3;
}

.photo-caption span {
  color: #c4d8e6;
  font-size: 12px;
}

/* =====================================================
   INTRODUCCIÓN
   ===================================================== */

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 95px;
}

.intro h2 {
  max-width: 500px;
  font-size: clamp(31px, 3.5vw, 46px);
  letter-spacing: -1.5px;
}

.intro .muted {
  margin-bottom: 25px;
  font-size: 15px;
  line-height: 1.95;
}

.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  transition: color .25s ease;
}

.text-link:hover {
  color: var(--navy);
}

/* =====================================================
   ARTÍCULOS
   ===================================================== */

.articles {
  background: var(--light);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.section-head h2 {
  max-width: 650px;
  font-size: clamp(31px, 3.5vw, 46px);
  letter-spacing: -1.5px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 5px 5px;
}

.card:hover {
  border-color: #d5e4ed;
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.card-number {
  margin-bottom: 25px;
  color: var(--gold);
  font-family: "Manrope", sans-serif;
  font-size: 29px;
  font-weight: 800;
}

.card .tag {
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 20px;
  letter-spacing: -.3px;
}

.card p:not(.tag):not(.card-number) {
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.card a {
  margin-top: auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  transition: color .25s ease;
}

.card a:hover {
  color: var(--navy);
}

/* =====================================================
   MEDIA
   ===================================================== */

.media-strip {
  position: relative;
  overflow: hidden;
  color: #c2d5e4;
  background:
    radial-gradient(
      circle at 90% 100%,
      rgba(35, 126, 178, .23),
      transparent 40%
    ),
    var(--navy);
}

.media-strip::before {
  content: "";
  position: absolute;
  right: -170px;
  top: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.media-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 75px;
}

.media-grid .kicker {
  color: #a9d1e7;
}

.media-grid h2 {
  max-width: 560px;
  margin-bottom: 25px;
  color: var(--white);
  font-size: clamp(31px, 3.5vw, 46px);
  letter-spacing: -1.4px;
}

.media-grid p:not(.kicker) {
  max-width: 520px;
  margin-bottom: 30px;
  color: #b7ccdc;
  font-size: 15px;
  line-height: 1.9;
}

.media-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 30px;
  text-align: center;
  background:
    linear-gradient(
      145deg,
      rgba(35, 126, 178, .25),
      rgba(255, 255, 255, .025)
    );
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 25px;
}

.media-card .play {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-size: 25px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
}

.media-card span {
  color: #c1d5e3;
  font-size: 13px;
}

/* =====================================================
   BANNER DE CONTACTO
   ===================================================== */

.contact-banner {
  background: var(--white);
}

.contact-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 48px;
  background: linear-gradient(120deg, #f4f9fc, #edf5f9);
  border: 1px solid var(--border);
  border-radius: 25px;
}

.contact-banner h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 37px);
  letter-spacing: -.8px;
}

.contact-banner .muted {
  font-size: 14px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  padding-top: 75px;
  color: #b7cbdc;
  background: #06182b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo {
  width: 175px;
  max-width: 100%;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer h4 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: 15px;
}

.footer p,
.footer a {
  font-size: 13px;
}

.footer a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 11px;
  overflow-wrap: anywhere;
  transition: color .25s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: #8097ad;
  font-size: 11px;
}

/* =====================================================
   ANIMACIONES
   ===================================================== */

.reveal {
  animation: revealUp .8s ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   TABLETS
   ===================================================== */

@media (max-width: 1000px) {

  .container {
    width: min(100% - 36px, 900px);
  }

  .hero-grid {
    gap: 40px;
  }

  .intro-grid,
  .media-grid {
    gap: 40px;
  }

  .nav a {
    padding: 10px 9px;
    font-size: 11px;
  }

  .nav a.nav-cta {
    margin-left: 5px;
  }

  .brand {
    width: 135px;
    height: 70px;
  }

  .card {
    padding: 27px;
  }

}

/* =====================================================
   CELULARES
   ===================================================== */

@media (max-width: 700px) {

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 68px 0;
  }

  /* HEADER */

  .nav-wrap {
    min-height: 72px;
  }

  .brand {
    width: 125px;
    height: 62px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    padding: 14px 16px 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 35px rgba(8, 27, 50, .10);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    text-align: left;
  }

  .nav a.nav-cta {
    margin: 7px 0 0;
    text-align: center;
  }

  /* HERO */

  .hero {
    padding: 65px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 45px);
    letter-spacing: -1.3px;
  }

  .hero-lead {
    margin-inline: auto;
    font-size: 14px;
    line-height: 1.85;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .trust-row {
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }

  .hero-photo {
    max-width: 420px;
  }

  .photo-caption {
    padding: 75px 22px 22px;
  }

  .photo-caption strong {
    font-size: 18px;
  }

  /* INTRODUCCIÓN */

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro h2 {
    font-size: 32px;
  }

  .intro .muted {
    font-size: 14px;
  }

  /* ARTÍCULOS */

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    padding: 29px;
  }

  /* MEDIA */

  .media-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .media-grid h2 {
    font-size: 32px;
  }

  .media-grid p:not(.kicker) {
    font-size: 14px;
  }

  .media-card {
    min-height: 250px;
  }

  /* CONTACTO */

  .contact-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding: 30px 25px;
  }

  .contact-banner h2 {
    font-size: 28px;
  }

  .contact-banner .btn {
    width: 100%;
  }

  /* FOOTER */

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 42px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 10px;
  }

}

/* =====================================================
   CELULARES PEQUEÑOS
   ===================================================== */

@media (max-width: 380px) {

  .container {
    width: calc(100% - 24px);
  }

  .brand {
    width: 115px;
    height: 58px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-lead {
    font-size: 13px;
  }

  .photo-caption strong {
    font-size: 16px;
  }

  .photo-caption span {
    font-size: 11px;
  }

}

/* =====================================================
   ACCESIBILIDAD
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}

/* =====================================
   CARRUSEL PREMIUM
===================================== */

.premium-carousel {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(38, 121, 170, .35),
            transparent 42%
        ),
        linear-gradient(145deg, #173b5b, #081d32);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .18);
    isolation: isolate;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 390px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 28px;
    padding: 42px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(35px);
    transition:
        opacity .6s ease,
        transform .6s ease,
        visibility .6s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.carousel-image {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
}

.carousel-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        transparent 45%,
        rgba(201, 166, 107, .18)
    );
    pointer-events: none;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    object-position: center;
}

.carousel-content {
    color: white;
    min-width: 0;
}

.carousel-label {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.carousel-content h3 {
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    margin-bottom: 18px;
}

.carousel-content p {
    color: #c2d4e2;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 24px;
}

.carousel-content .btn {
    margin-top: 5px;
}

.carousel-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(7, 24, 43, .65);
    color: white;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: .3s ease;
    backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.08);
}

.carousel-control:focus-visible,
.carousel-dot:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.carousel-prev {
    left: 18px;
}

.carousel-next {
    right: 18px;
}

.carousel-dots {
    position: absolute;
    z-index: 6;
    bottom: 20px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: .3s ease;
}

.carousel-dot.active {
    width: 28px;
    border-radius: 20px;
    background: var(--gold);
}

/* ENCABEZADO DE PÁGINA */

.page-hero {
    padding: 90px 0;
    background:
        radial-gradient(
            circle at 90% 0%,
            #eaf5fb 0%,
            transparent 40%
        ),
        white;
}

.page-hero h1 {
    max-width: 850px;
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.page-hero h1 span {
    color: var(--blue);
}

.page-hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.media-section {
    background: var(--background);
}

.media-info {
    background: white;
}

/* TABLETAS */

@media (max-width: 900px) {

    .carousel-slide {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 35px;
    }

    .carousel-content h3 {
        font-size: 27px;
    }

}

/* CELULARES */

@media (max-width: 700px) {

    .page-hero {
        padding: 60px 0;
    }

    .page-hero h1 {
        font-size: clamp(34px, 9vw, 45px);
        letter-spacing: -1px;
    }

    .premium-carousel,
    .carousel-track {
        min-height: 570px;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 35px 28px 70px;
    }

    .carousel-image {
        min-height: 190px;
        max-height: 210px;
    }

    .carousel-image img {
        min-height: 190px;
        max-height: 210px;
    }

    .carousel-content h3 {
        font-size: 25px;
    }

    .carousel-content p {
        font-size: 13px;
    }

    .carousel-content .btn {
        width: 100%;
    }

    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .carousel-slide,
    .carousel-control,
    .carousel-dot {
        transition: none;
    }

}