/* ===========================
   RESET & BASE
=========================== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

body {
    background: #f5f7fb;
    font-family: 'Inter', sans-serif;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    background-color: #192a44;
    color: #fff;
    padding: 1rem;
    margin-bottom: -12px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 1000;
}

.hamburguesa {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburguesa span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación X al abrir */
.hamburguesa.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburguesa.active span:nth-child(2) {
    opacity: 0;
}
.hamburguesa.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.slogan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
    margin-left: 10px;
}

.slogan-container p {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    text-wrap: nowrap;
    text-align: center;
    font-size: 9px;
    color: #c9c9c9;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s;
}

.slogan-container img:hover + p {
    opacity: 100;
}

#logo-neumologo {
    width: 80px;
    height: auto;
    align-items: center;
    transition: transform 0.6s ease-in-out;
}

#logo-neumologo:hover {
    transform: scale(1.10) translateY(-10px);
}

.navbar ul.main-navbar {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style-type: none;
    padding: 10px;
    gap: 1rem;
}

.nav-links li a:hover {
    color: #7494ff;
}

.nav-links li a.active {
    color: #7494ff;
}

.nav-links li a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #7494ff;
    margin-top: 5px;
}

section, #home, #services, #about, #contact, #resenas {
    scroll-margin-top: 85px;
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
        flex-wrap: wrap;
    }
    
    .hamburguesa {
        display: flex;
    }

    .nav-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: calc(100% + 12px);
        right: 12px;
        left: auto;
        width: min(68vw, 240px);
        background: rgba(25, 42, 68, 0.96);
        backdrop-filter: blur(10px);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
        padding: 0 18px;
        gap: 12px;
        z-index: 999;
        text-align: center;
    }

    .nav-links.active {
        max-height: 200px;
        padding: 16px 18px;
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 6px 0;
        text-align: center;
    }
}

/* ===========================
   HERO / SCREEN PRESENTATION
=========================== */
.screen-presentation {
    position: relative;
    height: 35vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.5;
    color: white;
    padding: 20px;
    text-shadow: #333 1px 1px 2px, #333 0px 0px 1px;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    opacity: 0.4;
    z-index: -1;
    animation: fadeVideo 1.5s ease-out forwards;
}

.screen-presentation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.screen-presentation h1,
.screen-presentation p {
    position: relative;
    z-index: 1;
}

/* ===========================
   LAYOUT PRINCIPAL (two columns)
=========================== */
.layout-principal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

.agendar-cita {
    background: #f5f7fb;
    padding: 36px 2rem 40px;
    text-align: center;
    min-width: 200px;
}

.ag-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7494ff;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.agendar-cita h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #192a44;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.ag-subtitulo {
    font-size: 0.95rem;
    color: #6b7a90;
    margin-bottom: 1.8rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.cita-botones {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: nowrap;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    width: clamp(140px, 18vw, 250px);
    height: clamp(280px, 40vw, 360px);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: #192a44;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(25,42,68,0.22);
    border-color: #7494ff;
}

.card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
    transition: transform 0.4s ease;
}

.card:hover video { transform: scale(1.06); }

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,20,40,0.92) 0%, rgba(10,20,40,0.3) 60%, transparent 100%);
    z-index: 1;
}

.card-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 2rem 1.2rem 1.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card-body img {
    position: absolute;
    filter: brightness(0) invert(1);
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    margin-top: 160px;
    object-fit: contain;

    opacity: 0.3;
    transition: opacity 0.3s ease;

}

.card-body:hover img {
    opacity: 0;
}

@media (max-width: 1100px) {
    .card-body img {
        display: none;
    }
}

.card-tipo {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7494ff;
    font-weight: 600;
    margin-bottom: 4px;
    text-wrap: nowrap;
}

.card-icon {
    top: 24px;
    left: 50%;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(116, 148, 255, 0.18);
    border: 1.5px solid rgba(116,148,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px auto;
    flex-shrink: 0;
}

.card-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

.card-wa-btn {
    display: inline-block;
    background: #25d366;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.card:hover .card-wa-btn { background: #1ebe5d; }

.ag-note {
    margin-top: 2rem;
    font-size: 0.82rem;
    color: #9aa5b4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ag-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #25d366;
    display: inline-block;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

/* ===========================
   SERVICIOS
=========================== */
.servicios {
    min-height: 45vh;
    padding: 36px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicios-eyebrow {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #192a44;
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.servicios-eyebrow::before,
.servicios-eyebrow::after {
    content: "";
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: #192a44;
    opacity: 0.25;
}

.servicios h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #192a44;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.servicios-subtitulo {
    font-size: 0.95rem;
    color: #6b7a90;
    margin-bottom: 1.8rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.servicios-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.servicios-video-wrapper {
    flex: 0 0 35%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    transform: translateX(-25px);
}

.servicios-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease;
}

.video-a { opacity: 1; z-index: 1; }
.video-b { opacity: 0; z-index: 0; }

.servicios-video.fade {
    opacity: 0;
}

/* ===========================
   SLIDER
=========================== */
.slide-container {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 0px 8px 50px 8px;
    margin-top: 5%;
    overflow: visible;
    box-sizing: border-box;;
}

.slides-clip {
    overflow: hidden;
    background: #fff;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.slides-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slides-wrapper img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0px 1000px 0 #192a44);
    transform: translateY(-1000px);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.slides-wrapper:hover img {
    filter: drop-shadow(0px 1000px 0 #f5b134);
    transform: translateY(-1000px);
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
    margin-top: 0;
}

.slide h3 {
    margin-bottom: 12px;
}

.slides-clip:hover .slide {
    transform: translateY(-5%);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-130%);
    background: #192a44;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.prev:hover, .next:hover { background: #7494ff; }
.prev { left: -15px; }
.next { right: -15px; }

.dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #192a44;
    width: 28px;
    border-radius: 10px;
    transform: scale(1.1);
}

/* ===========================
   DIVISOR NOMBRE
=========================== */
.eslogan1 {
    padding: 40px 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);

    color: white;
    background-color: #192a44;
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    font-weight: 300;
}

.eslogan1 h2 {
    font-size: 1.5rem;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.eslogan1 h2::before,
.eslogan1 h2::after {
    content: "";
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

/* ===========================
   ESTADISTICAS
=========================== */
.estadisticas {
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.estadisticas.visible {
    opacity: 1;
    transform: translateY(0);
}

.estadisticas-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 20px auto;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    flex: 1;
}

.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    position: relative;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icono {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    filter: drop-shadow(0px 1000px 0 #192a44);
    transform: translateY(-1000px);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.stat-card:hover .stat-icono {
    filter: drop-shadow(0px 1000px 0 #f5b134);
    transform: translateY(-1000px);
}

.stat-numero {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #192a44;
    line-height: 1;
}

.stat-signo {
    font-size: 2rem;
    font-weight: 700;
    color: #7494ff;
    vertical-align: super;
    margin-left: 4px;
}

.stat-label {
    margin-top: 10px;
    color: #666;
    font-size: 0.95rem;
}

.stat-ciudades-label {
    font-size: 0.85rem;
    color: #7494ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-ciudades {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: #192a44;
    font-weight: 600;
    line-height: 1.8;
    white-space: nowrap;
}

/* Imagen derecha */
.estadisticas-imagen {
    flex: 0 0 380px;
    height: 400px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.estadisticas-imagen img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: block;
    object-fit: cover;
    object-position: top center;
}

.estadisticas-imagen.visible {
    opacity: 1;
    transform: translateX(0);
}

.eslogan2 {
    text-align: center;
    color: #192a44;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    padding: 20px;
}

/* ===========================
   MARCAS SLIDER
=========================== */
@keyframes scroll-infinito {
    from { transform: translateX(0); }
    to   { transform: translateX(-650px); }
}

.marcas-container {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    background: #f5f7fb;
}

.marcas-container::before,
.marcas-container::after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.marcas-container::before {
    background: linear-gradient(to right, #f5f7fb, transparent);
    left: 0;
}

.marcas-container::after {
    background: linear-gradient(to left, #f5f7fb, transparent);
    right: 0;
}

.marcas-track {
    display: flex;
    width: max-content;
    animation: scroll-infinito 20s linear infinite;
}

.marcas-logos {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marcas-logos img {
    max-width: 120px;
    margin: 0 60px;
}

#marca1 {
    max-width: 60px;
}

/* ===========================
   UBICACION
=========================== */
.ubicacion {
    padding: 60px 40px;
    background-color: #f5f7fb;
    text-align: center;
}

.ubicacion-titulo {
    color: #192a44;
    font-size: 2rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.5rem;
}

.ubicacion-subtitulo {
    color: #6b7a90;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.ubicacion-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ubicacion-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    width: 500px;
    text-align: left;
    transition: transform 0.3s ease;
}

.ubicacion-card:hover {
    transform: translateY(-5px);
}

.ubicacion-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ubicacion-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ubicacion-info h3 {
    color: #192a44;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.ubicacion-hospital {
    color: #7494ff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.ubicacion-info p {
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .ubicacion {
        padding: 40px 20px;
    }

    .ubicacion-card {
        width: 100%;
    }
}


/* ===========================
   REDES SOCIALES
=========================== */
.redes-sociales {
  background: #f5f7fb;
  padding: 3.5rem 1.5rem;
  min-height: 400px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.redes-fondo {
  position: absolute;
  inset: 0;
  background-image: url('./imgs/redes-sociales/redes-sociales-fondo-2.webp');
  background-repeat: repeat-y;
  background-size: 150% auto;
  background-position: center top;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.redes-sociales::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, #f5f7fb  100%);
  z-index: 1;
  pointer-events: none;
}

.redes-sociales::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, transparent 60%, #f5f7fb  100%);
  z-index: 1;
  pointer-events: none;
}


@media (max-width: 768px) {
  .redes-fondo {
    background-size: 200%;
    background-position: center top;
  }
}

.redes-titulo,
.redes-subtitulo,
.redes-perfiles {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.redes-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: #192a44;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.5rem;
}

.redes-subtitulo {
  font-size: 0.95rem;
  color: #6b7a90;
  margin-bottom: 2rem;
  font-weight: 900;
}

.redes-perfiles {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0px 70px 0px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .redes-perfiles {
    padding: 0;
  }
}

.red-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1.4rem 2rem;
  background: #fff;
  border: 1.5px solid #dde3ea;
  border-radius: 20px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  width: 130px;
}

.red-btn:hover {
  border-color: #192a44;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(25,42,68,0.12);
}

.red-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.red-btn-nombre {
  font-size: 0.88rem;
  font-weight: 600;
  color: #192a44;
}

.red-btn-handle {
  font-size: 0.75rem;
  color: #7a8fa6;
}

/* ===========================
   SCROLL TO TOP
=========================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #192a44;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-to-top:hover {
    background: #7494ff;
    transform: translateY(-4px);
}

/* ===========================
   SECCIÓN RESEÑAS
=========================== */

.resenas {
    padding: 70px 40px 60px;
    background: #f5f7fb;
    overflow: hidden;
}
 
/* HEADER */
.resenas-header {
    text-align: center;
    margin-bottom: 50px;
}
 
.resenas-badge {
    display: inline-block;
    background: rgba(116, 148, 255, 0.12);
    color: #7494ff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(116, 148, 255, 0.3);
    margin-bottom: 16px;
}
 
.resenas-titulo {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #192a44;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
 
.resenas-titulo-acento {
    color: #7494ff;
    position: relative;
}
 
.resenas-titulo-acento::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7494ff, #192a44);
    border-radius: 2px;
}
 
/* SCORE GLOBAL */
.resenas-estrellas-global {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
 
.resenas-score {
    display: flex;
    align-items: center;
    gap: 16px;
}
 
.score-numero {
    font-family: 'Raleway', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #192a44;
    line-height: 1;
}
 
.score-detalle {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
 
.estrellas-fila {
    display: flex;
    gap: 4px;
}
 
.estrellas-fila img {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0px 1000px 0 #f5b134);
    transform: translateY(-1000px);
}
 
.score-total {
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
}
 
.resenas-plataformas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    border-left: 1px solid rgba(116, 148, 255, 0.2);
    padding-left: 32px;
}
 
.plataforma-logo {
    height: 22px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(0.3);
    transition: opacity 0.3s ease;
}
 
.plataforma-logo:hover {
    opacity: 1;
}
 
/* CARRUSEL */
.resenas-carrusel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}
 
.resenas-carrusel-clip {
    overflow: hidden;
    flex: 1;
    border-radius: 24px;
}
 
.resenas-track {
    display: flex;
    gap: 24px;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
 
/* TARJETAS */
.resena-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(116, 148, 255, 0.1);
    overflow: hidden;
}
 
.resena-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 7rem;
    font-family: 'Georgia', serif;
    color: rgba(116, 148, 255, 0.08);
    line-height: 1;
    pointer-events: none;
}
 
.resena-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(25, 42, 68, 0.12);
}
 
/* Tarjeta destacada */
.resena-card--destacada {
    border: 2px solid rgba(116, 148, 255, 0.4);
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
}
 
.resena-highlight-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #7494ff, #192a44);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
 
/* Top de la tarjeta */
.resena-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
 
.resena-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
 
.resena-avatar span {
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
 
.resena-autor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
 
.resena-autor-info strong {
    font-size: 0.95rem;
    color: #192a44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 
.resena-fecha {
    font-size: 0.78rem;
    color: #aaa;
}
 
.resena-plataforma {
    height: 16px;
    width: auto;
    opacity: 0.6;
    flex-shrink: 0;
    object-fit: contain;
}
 
/* Estrellas por reseña */
.resena-estrellas {
    display: flex;
    gap: 3px;
}
 
.resena-estrellas img {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0px 1000px 0 #f5b134);
    transform: translateY(-1000px);
}
 
/* Texto */
.resena-texto {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    flex: 1;
}
 
/* Tag del servicio */
.resena-tag {
    display: inline-block;
    background: rgba(116, 148, 255, 0.1);
    color: #7494ff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    align-self: flex-start;
    letter-spacing: 0.3px;
}
 
/* BOTONES CARRUSEL */
.resenas-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #192a44;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10;
}
 
.resenas-btn:hover {
    background: #7494ff;
    transform: scale(1.08);
}
 
.resenas-btn img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}
 
/* DOTS */
.resenas-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
 
.resenas-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
 
.resenas-dot.active {
    background: #192a44;
    width: 28px;
    border-radius: 10px;
}
 
/* CTA */
.resenas-cta {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
 
.resenas-cta p {
    color: #888;
    font-size: 0.95rem;
}
 
.resenas-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #192a44;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(25, 42, 68, 0.2);
    transition: all 0.3s ease;
}
 
.resenas-cta-btn:hover {
    background: #7494ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(116, 148, 255, 0.35);
}
 
.resenas-cta-btn img {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
}
 
/* Animación de entrada por card */
@keyframes resenaFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
.resena-card {
    opacity: 0;
}
 
.resena-card.resena-visible {
    animation: resenaFadeUp 0.6s ease forwards;
}
 
/* ===========================
   RESPONSIVE RESEÑAS
=========================== */
@media (max-width: 768px) {
    .resenas {
        /* Sin padding lateral — el clip ocupa todo el ancho */
        padding: 50px 0 50px;
    }
 
    .resenas-header,
    .resenas-cta,
    .resenas-dots {
        padding-left: 16px;
        padding-right: 16px;
    }
 
    .resenas-titulo {
        font-size: 1.6rem;
    }
 
    .resenas-estrellas-global {
        flex-direction: column;
        gap: 16px;
    }
 
    .resenas-plataformas {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(116, 148, 255, 0.2);
        padding-top: 16px;
        flex-direction: row;
        justify-content: center;
    }
 
    /* Wrapper: columna para poner botones debajo */
    .resenas-carrusel-wrapper {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        max-width: 100%;
    }
 
    /* Clip full-width, sin border-radius */
    .resenas-carrusel-clip {
        order: 0;
        width: 100%;
        border-radius: 0;
        overflow: hidden;
    }
 
    /* Tarjeta casi full-width con margen lateral */
    .resena-card {
        flex: 0 0 calc(100vw - 32px);
        min-width: unset;
        margin: 0 16px;
        box-sizing: border-box;
    }
 
    /* Botones en fila, centrados, debajo del clip */
    .resenas-btn-prev,
    .resenas-btn-next {
        order: 1;
        position: static;
        margin: 16px auto 0;
    }
 
    .resenas-carrusel-wrapper {
        flex-wrap: wrap;
    }
 
    /* Fila de botones */
    .resenas-btn-prev { margin-right: 8px; }
    .resenas-btn-next { margin-left:  8px; }
 
    /* Agrupamos los dos botones en una fila */
    .resenas-btn {
        width: 38px;
        height: 38px;
    }
 
    .resenas-btn img {
        width: 15px;
        height: 15px;
    }
}
 
@media (max-width: 768px) {
    .resenas-btn-prev,
    .resenas-btn-next {
        display: none;
    }
}

/* ===========================
   FOOTER
=========================== */
.pie-pagina {
    background-color: #192a44;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 24px 20px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pie-pagina p:first-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* CREADOR */
.programador-creador {
    color: #1da1f2; 
    text-decoration: none;
}

.programador-creador:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===========================
   WHATSAPP
=========================== */
.whatsapp-link {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-link img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeVideo {
    from { opacity: 0; transform: scale(1.05); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.screen-presentation h1 {
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.screen-presentation p {
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   TABLET (769px - 1100px)
=========================== */
@media (min-width: 769px) and (max-width: 1100px) {
    .layout-principal {
        flex-wrap: wrap;
    }

    .agendar-cita {
        width: 100%;
        padding: 36px 2rem 40px;
    }

    .cita-botones {
        gap: 16px;
    }

    .card {
        width: clamp(160px, 22vw, 250px);
        height: clamp(280px, 35vw, 360px);
    }

    .servicios {
        width: 100%;
        max-width: 100%;
        padding: 36px 40px 20px;
    }

    .servicios-inner {
        gap: 12px;
    }

    .servicios-video-wrapper {
        flex: 0 0 40%;
        height: 260px;
    }
}

/* ===========================
   DESKTOP GRANDE (>1100px)
=========================== */
@media (min-width: 1101px) {
    .agendar-cita {
        width: 45%;
        min-width: 380px;
    }

    .servicios {
        flex: 1;
        min-width: 0;
    }
}

/* ===========================
   RESPONSIVE — single block
=========================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;  /* por defecto es 16px, reducirlo achica todo */
    }
}

@media (max-width: 768px) {

    /* HERO */
    .screen-presentation h1 {
        font-size: 1.4rem;
    }

    .screen-presentation p {
        font-size: 0.85rem;
        margin-top: 12px;
    }

    /* Layout stacks vertically */
    .layout-principal {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
    }

    .agendar-cita {
        width: 100%;
        min-height: auto;
        padding: 32px 1rem 28px;
    }

    .agendar-cita h2 {
        gap: 16px;
    }

    .cita-botones {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .card {
        flex: 1 1 0;
        max-width: 160px;
        min-width: 130px;
        height: 220px;
        background: #192a44;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin: 0 auto 8px auto;
        transform: none;   /* ← elimina el translateY que lo saca */
        padding: 0;
        transform: none !important;
    }

    .card::before {
        display: none;
    }

    .card p {
        position: static;
        transform: none;
        font-size: auto;;
    }

    .card:hover p {
        background-color: transparent;
        text-shadow: none;
        transform: none;
    }

    .card-desc {
        display: none;
    }

    .card-body {
        position: absolute;
        inset: 0;           /* ← ocupa toda la card */
        padding: 1.4rem 0.8rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;   /* ← centra verticalmente */
    }

    .card-tipo {
        font-size: 0.62rem;
    }

    .card-nombre {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .card-wa-btn {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    /* Servicios */
    .servicios {
        width: 100%;
        padding: 28px 16px 20px;
        min-height: unset;
    }

    .servicios-inner {
        flex-direction: column;
    }

    .servicios-video-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        transform: none;
    }
    
    /* Slider */
    .slide-container {
        flex: 0 0 auto;
        width: 100%;
        padding: 10px 10px 50px 10px;
        margin-top: 0;
    }

    .slide {
        padding: 30px 20px;
        transform: none;
    }

    .prev, .next {
        width: 35px;
        height: 35px;
    }

    /* Estadísticas */
    .estadisticas {
        position: relative;
        padding: 10px 10px 0 10px;
    }

    .estadisticas-inner {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .estadisticas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .stat-icono {
        width: 40px;
        height: 40px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-numero {
        font-size: 2rem;
        flex-wrap: nowrap;
    }

    .stat-ciudades {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .stat-ciudades-label {
        font-size: 0.75rem;
    }

    /* Imagen derecha */
    .estadisticas-imagen {
        position: relative;
        overflow: visible;

        width: 80%;
        max-height: 300px;
        flex: 0 0 auto;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .estadisticas-imagen::after {
        content: "";
        position: absolute;
        bottom: -30px;
        left: 0;
        width: 100%;
        height: 120px;
        background: linear-gradient(to bottom, transparent, #f5f7fb);
    }

    .estadisticas-imagen img {
        border-radius: 0;
        box-shadow: none;
        object-fit: cover;
        object-position: top center;
        min-width: 250px;
        min-height: 420px;
    }

    .marcas-container::before,
    .marcas-container::after {
        position: absolute;
        top: 0;
        width: 50px;
        height: 100%;
        content: "";
        z-index: 2;
    }

    .marcas-logos img {
        max-width: 100px;
        margin: 0 40px;
    }

    .redes-sociales {
        padding: 40px 20px;
    }

    .redes-perfiles,
    .redes-posts {
        align-items: center;
    }
}