/* ================= HERO ================= */

.hero-section {
    min-height: 90vh;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;     /* 🔥 clave */
    height: 100%;    /* 🔥 clave */
    object-fit: cover;
    z-index: 0;
    transform: scale(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 60, 80, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 20px auto;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
    opacity: 0.95;
}

.hero-section .btn {
    background-color: #C6DA29;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(198,218,41,0.4);
}

.hero-section .btn:hover {
    background-color: #EA7D78;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(234,125,120,0.4);
}

.btn-outline-dark {
    border: 2px solid rgba(255,255,255,0.8) !important;
    color: white !important;
    background: rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(4px);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-outline-dark:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: translateY(-4px);
}


/* ================= SOBRE NOSOTROS ================= */

.about-section {
    background: white;
    padding: 80px 0 70px 0;
    text-align: center;
}

.about-section h2 {
    color: #23A0B4;
    font-weight: 700;
    font-size: 2.2rem;
}

/* ── Content col ── */
.about-content-col {
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

/* Tabs */
.about-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.about-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 8px 16px;
    border: 1.5px solid rgba(35,160,180,0.3);
    background: transparent;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.about-tab:hover {
    border-color: #23A0B4;
    color: #23A0B4;
    background: rgba(35,160,180,0.05);
}

.about-tab.active {
    background: #23A0B4;
    border-color: #23A0B4;
    color: white;
}

.about-tab i { font-size: 0.88rem; }

/* Wrapper carrusel con flechas */
.about-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-carousel-wrap .carousel {
    flex: 1;
    min-width: 0;
}

.about-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(35,160,180,0.12);
    color: #23A0B4;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.about-arrow:hover {
    background: rgba(35,160,180,0.28);
    transform: scale(1.08);
}

/* Cabecera de cada slide */
.about-card-header {
    gap: 1rem;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid rgba(35,160,180,0.12);
}

.about-card-icon {
    width: 54px;
    height: 54px;
    background: rgba(35,160,180,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #23A0B4;
    font-size: 1.45rem;
}

.about-card-title {
    color: #23A0B4;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

/* Content box */
.about-content-box {
    background: #F8FCFD;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 8px 28px rgba(35,160,180,0.08);
    border: 1px solid rgba(35,160,180,0.1);
    box-sizing: border-box;
    text-align: left;
    min-height: 320px;
}

.about-content-box p {
    color: #555;
    line-height: 1.85;
    font-size: 1rem;
    margin: 0;
    text-align: justify;
}

/* ── Valores grid ── */
.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.valor-card {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 12px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(35,160,180,0.12);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.valor-card:hover {
    border-color: rgba(35,160,180,0.35);
    box-shadow: 0 4px 12px rgba(35,160,180,0.1);
}

.valor-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(35,160,180,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #23A0B4;
    font-size: 0.95rem;
}

.valor-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.valor-body strong {
    font-size: 0.82rem;
    color: #23A0B4;
    font-weight: 700;
    line-height: 1.3;
}

.valor-body span {
    font-size: 0.76rem;
    color: #666;
    line-height: 1.5;
}

/* ── Valores Standalone ── */
.valores-standalone {
    max-width: 1000px;
    margin: 0 auto;
}

.valores-standalone-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #23A0B4;
    margin-bottom: 1.5rem;
}

.valores-standalone-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.valor-standalone-card {
    background: #F8FCFD;
    padding: 24px 16px;
    border: 1px solid rgba(35,160,180,0.12);
    gap: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.valor-standalone-card:hover {
    border-color: rgba(35,160,180,0.35);
    box-shadow: 0 6px 20px rgba(35,160,180,0.12);
    transform: translateY(-4px);
}

.valor-standalone-icon {
    width: 52px;
    height: 52px;
    background: rgba(35,160,180,0.1);
    color: #23A0B4;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.valor-standalone-card strong {
    font-size: 0.88rem;
    color: #23A0B4;
    font-weight: 700;
    line-height: 1.3;
}

.valor-standalone-card span {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

/* ================= SERVICIOS ================= */

.services-section {
    background: linear-gradient(to bottom, #ffffff, #F2FBFC);
    padding: 70px 0 50px 0;
}

.services-section h2 {
    color: #23A0B4;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.servicios-carrusel .carousel-inner {
    height: fit-content; /* ajusta según tu tarjeta más alta */
}



.servicios-carrusel .carousel-item {
    height: 250px; /* altura fija para evitar saltos */
    transition: transform 1s ease-in-out !important;
}

.servicios-carrusel .carousel-item .row {
    height: 250px;
}

.team-carousel-card {
    background-color: white;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.team-carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(35,160,180,0.15);
}

.team-carousel-card .card-title {
    color: #23A0B4;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.team-carousel-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    flex-grow: 1;
    text-align: justify;
}

/* ── Servicios: carrusel de imágenes ── */
.servicios-img-carrusel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 860px;
    height: 500px;
    margin: 0 auto;
}

.servicios-img-carrusel .carousel-inner,
.servicios-img-carrusel .carousel-item {
    height: 500px;
    border-radius: 20px;
}

.servicios-img-frame {
    width: 100%;
    height: 500px;
    position: relative;
    background: linear-gradient(135deg, #cceef2 0%, #9DCFD1 55%, #23A0B4 100%);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}


.servicios-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.servicios-img-caption {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.servicios-img-dots {
    bottom: 58px;
    margin-bottom: 0;
}

.servicios-img-dots [data-bs-target] {
    background-color: rgba(255,255,255,0.7);
    width: 8px;
    height: 8px;
    border: none;
    opacity: 1;
}

.servicios-img-dots .active {
    background-color: white;
    transform: scale(1.2);
}

.servicios-img-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #23A0B4;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.servicios-img-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.servicios-img-prev { left: 16px; }
.servicios-img-next { right: 16px; }

.servicios-carrusel .carousel-indicators [data-bs-target] {
    background-color: #23A0B4;
}

.servicios-carrusel {
    position: relative;
    padding: 0 55px;
}

#carruselServiciosPC.carousel .custom-arrow,
#carruselServiciosMovil.carousel .custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px !important;
    height: 42px !important;
    background-color: rgba(35, 160, 180, 0.15) !important;
    border: none;
    color: #23A0B4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    z-index: 10;
    /* Elimina el ícono por defecto de Bootstrap */
    background-image: none !important;
}

#carruselServiciosPC.carousel .custom-arrow:hover,
#carruselServiciosMovil.carousel .custom-arrow:hover {
    background-color: rgba(35, 160, 180, 0.35) !important;
}

#carruselServiciosPC.carousel .custom-arrow i,
#carruselServiciosMovil.carousel .custom-arrow i {
    color: #23A0B4 !important;
    font-size: 0.9rem;
}

#carruselServiciosPC.carousel .carousel-control-prev.custom-arrow,
#carruselServiciosMovil.carousel .carousel-control-prev.custom-arrow {
    left: 0;
    right: auto;
}

#carruselServiciosPC.carousel .carousel-control-next.custom-arrow,
#carruselServiciosMovil.carousel .carousel-control-next.custom-arrow {
    right: 0;
    left: auto;
}

#carruselServiciosPC,
#carruselServiciosMovil {
    padding-bottom: 50px;
}

#carruselServiciosPC .carousel-indicators,
#carruselServiciosMovil .carousel-indicators {
    bottom: -35px;
}

/* ================= EQUIPO ================= */
.team-section {
    background: #F2FBFC;
    padding: 80px 0 60px 0;
}

.team-section h2 {
    text-align: center;
    color: #23A0B4;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.team-carousel-card:hover {
    transform: translateY(-8px);
}

.team-carousel-card img {
    object-fit: cover;
}

.team-carousel-card h4 {
    color: #23A0B4;
    font-weight: 700;
    margin-bottom: 6px;
}

.team-role {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: block;
}

.team-carousel-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-doctoralia {
    margin-top: 16px;
    background: linear-gradient(135deg, #23A0B4, #9DCFD1);
    padding: 11px 26px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-doctoralia:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 20px rgba(35,160,180,0.35);
}

#carruselEquipoPC .carousel-inner,
#carruselEquipoMovil .carousel-inner {
    height: fit-content;
}

#carruselEquipoPC .carousel-item,
#carruselEquipoMovil .carousel-item {
    height: 100%;
    transition: transform 1s ease-in-out !important;
}

#carruselEquipoPC .carousel-item .row,
#carruselEquipoMovil .carousel-item .row {
    height: 100%;
}

#carruselEquipoPC .carousel-indicators [data-bs-target],
#carruselEquipoMovil .carousel-indicators [data-bs-target] {
    background-color: #23A0B4;
}

#carruselEquipoPC .carousel-indicators,
#carruselEquipoMovil .carousel-indicators {
    bottom: -35px;
}

#carruselEquipoPC,
#carruselEquipoMovil {
    padding-bottom: 50px;
}

/* ================= EQUIPO CARRUSEL ================= */

.team-section .carousel-indicators [data-bs-target] {
    background-color: #23A0B4;
}

.team-section .carousel-control-prev-icon,
.team-section .carousel-control-next-icon {
    filter: brightness(0); /* Negro para modo claro */
}

.team-section .carousel-control-prev,
.team-section .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35, 160, 180, 0.15);
    border: 2px solid rgba(35,160,180,0.3);
    transition: 0.3s ease;
}

.team-section .carousel-control-prev:hover,
.team-section .carousel-control-next:hover {
    background: rgba(35, 160, 180, 0.35);
}

.team-section .carousel-control-prev {
    left: 0px;
}

.team-section .carousel-control-next {
    right: 0px;
}

#carruselEquipoPC .carousel-item{
    min-height: 200px;
}

#carruselEquipoPC .carousel-inner{
    min-height: 600px;
}


.team-carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(35,160,180,0.15);
}

.team-carousel-card .btn-doctoralia {
    margin-top: auto;
}

.team-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-photo-placeholder {
    position: relative;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #23A0B4, #9DCFD1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 4px solid rgba(35,160,180,0.2);
}

.team-initial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

.team-photo-placeholder img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.3s;
}

.team-carousel-card h4 {
    color: #222;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.team-role {
    color: #23A0B4;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.team-carousel-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-doctoralia:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 20px rgba(35,160,180,0.35);
}

/* ================= CONTACTO ================= */

.contact-section {
    background: linear-gradient(135deg, #E8F6F8, #ffffff);
    padding: 80px 0 70px 0;
}

.contact-columns {
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .contact-columns {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .contact-form-wrap {
        flex: 1;
    }

    .contact-map-wrap {
        flex: 1;
    }
}

.contact-section h3 {
    color: #23A0B4;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-section .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.contact-section .form-control {
    border: 1.5px solid #dde;
    padding: 12px 16px;
    transition: 0.3s ease;
}

.contact-section .form-control:focus {
    border-color: #23A0B4;
    box-shadow: 0 0 0 3px rgba(35,160,180,0.15);
}

.contact-section button {
    background: linear-gradient(135deg, #23A0B4, #1b7e8d);
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: 0.3s ease;
    color: white;
}

.contact-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35,160,180,0.35);
}

/* ================= RESEÑAS ================= */

.reviews-section {
    background: white;
    padding: 80px 0 60px 0;
}

.reviews-section h2 {
    color: #23A0B4;
    font-weight: 700;
    font-size: 2.2rem;
}

.reviews-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-top: 8px;
}

#carruselResenas .carousel-inner {
    height: 320px;
}

#carruselResenas .carousel-item {
    height: 100%;
    transition: transform 1s ease-in-out !important;
}

.review-card {
    background: #F8FCFD;
    padding: 50px 60px;
    max-width: 750px;
    box-shadow: 0 10px 30px rgba(35,160,180,0.08);
    border: 1px solid rgba(35,160,180,0.1);
    margin: 0 auto;
    box-sizing: border-box;
    overflow-y: auto;
}

.review-stars {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.review-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #23A0B4, #9DCFD1);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.review-author strong {
    color: #333;
    font-size: 1rem;
}

.review-author span {
    color: #999;
    font-size: 0.85rem;
}

#carruselResenas .carousel-indicators [data-bs-target] {
    background-color: #23A0B4;
}

.btn-ver-resenas {
    background: linear-gradient(135deg, #23A0B4, #9DCFD1);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
}

.btn-ver-resenas:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 20px rgba(35,160,180,0.35);
}

/* ================= FLECHAS COMPARTIDAS ================= */
.equipo-prev, .equipo-next,
.resenas-prev, .resenas-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px !important;
    height: 42px !important;
    background-color: rgba(35, 160, 180, 0.15) !important;
    border: none;
    color: #23A0B4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    background-image: none !important;
    z-index: 10;
    cursor: pointer;
}

/* Flechas equipo — separadas */
#carruselEquipoPC {
    padding: 0 60px;
}


.equipo-prev:hover, .equipo-next:hover,
.resenas-prev:hover, .resenas-next:hover {
    background-color: rgba(35, 160, 180, 0.35) !important;
}

.equipo-prev i, .equipo-next i,
.resenas-prev i, .resenas-next i {
    color: #23A0B4 !important;
    font-size: 0.9rem;
}

.equipo-prev, .resenas-prev { left: 0; }
.equipo-next, .resenas-next { right: 0; }

#carruselEquipoPC, #carruselEquipoMovil, #carruselResenas {
    position: relative;
    padding: 0 55px;
}


/* ================= DARK MODE LANDING ================= */
body.dark-mode {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.75);
    }

    /* SOBRE NOSOTROS */
    .about-section {
        background: #1e1e1e;
    }

    .about-section h2 {
        color: #9DCFD1;
    }

    .about-content-box {
        background: #2a2a2a;
        border-color: rgba(157,207,209,0.1);
        box-shadow: 0 8px 28px rgba(0,0,0,0.3);
    }

    .about-content-box p {
        color: #bbb;
    }

    .about-card-header {
        border-bottom-color: rgba(157,207,209,0.12);
    }

    .about-card-icon {
        background: rgba(157,207,209,0.1);
    }

    .about-card-title {
        color: #9DCFD1;
    }

    .about-arrow {
        background: rgba(157,207,209,0.12);
        color: #9DCFD1;
    }

    .about-arrow:hover {
        background: rgba(157,207,209,0.28);
    }

    .about-tab {
        border-color: rgba(157,207,209,0.3);
        color: #aaa;
    }

    .about-tab:hover {
        border-color: #9DCFD1;
        color: #9DCFD1;
        background: rgba(157,207,209,0.05);
    }

    .about-tab.active {
        background: #23A0B4;
        border-color: #23A0B4;
        color: white;
    }

    .valor-card {
        background: #333;
        border-color: rgba(157,207,209,0.12);
    }

    .valor-card:hover {
        border-color: rgba(157,207,209,0.3);
    }

    .valor-icon-wrap {
        background: rgba(157,207,209,0.1);
    }

    .valor-body strong {
        color: #9DCFD1;
    }

    .valor-body span {
        color: #bbb;
    }

    .valor-standalone-card {
        background: #2a2a2a;
        border-color: rgba(157,207,209,0.12);
    }

    .valor-standalone-card:hover {
        border-color: rgba(157,207,209,0.3);
    }

    .valor-standalone-icon {
        background: rgba(157,207,209,0.1);
        color: #9DCFD1;
    }

    .valor-standalone-card strong {
        color: #9DCFD1;
    }

    .valor-standalone-card span {
        color: #bbb;
    }

    .valores-standalone-title {
        color: #9DCFD1;
    }

    /* SERVICIOS */
    .services-section {
        background: linear-gradient(to bottom, #1a1a1a, #222);
    }

    .services-section h2 {
        color: #9DCFD1;
    }

    .team-carousel-card {
        background: #2a2a2a;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        color: #e0e0e0;
    }

    .team-carousel-card p {
        color: #bbb;
    }

    .servicios-img-frame {
        background: linear-gradient(135deg, #1a3a40 0%, #1e5a65 55%, #23A0B4 100%);
    }

    /* EQUIPO */
    .team-section {
        background: #1a1a1a;
    }

    .team-section h2 {
        color: #9DCFD1;
    }

    .team-section .carousel-control-prev-icon,
    .team-section .carousel-control-next-icon {
        filter: brightness(10); /* Blanco para modo oscuro */
    }

    .team-carousel-card h4 {
        color: #e0e0e0;
    }

    .team-role {
        color: #9DCFD1;
    }

    .team-carousel-card p {
        color: #bbb;
    }

    /* CONTACTO */
    .contact-section {
        background: linear-gradient(135deg, #1a1a1a, #222);
    }

    .contact-section .card {
        background: #2a2a2a;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        color: #e0e0e0;
    }

    .contact-section h3 {
        color: #9DCFD1;
    }

    .contact-section .form-control {
        background: #333;
        border-color: #444;
        color: #e0e0e0;
    }

    .contact-section .form-control::placeholder {
        color: #888;
    }

    /* RESEÑAS */
    .reviews-section {
        background: #1e1e1e;
    }

    .reviews-section h2 {
        color: #9DCFD1;
    }

    .reviews-subtitle {
        color: #aaa;
    }

    .review-card {
        background: #2a2a2a;
        border-color: rgba(157,207,209,0.15);
    }

    .review-text {
        color: #bbb;
    }

    .review-author strong {
        color: #e0e0e0;
    }

    .review-author span {
        color: #999;
    }

    #dirección {
        color: white;
    }

    /* FLECHAS / CONTROLES */
    .equipo-prev,
    .equipo-next,
    .resenas-prev,
    .resenas-next {
        background-color: rgba(157, 207, 209, 0.15) !important;
        border-color: rgba(157,207,209,0.3);
    }

    .equipo-prev:hover,
    .equipo-next:hover,
    .resenas-prev:hover,
    .resenas-next:hover {
        background-color: rgba(157, 207, 209, 0.35) !important;
    }

    /* ================= PAGINACIÓN DARK MODE ================= */

    .page-btn {
        color: #e0e0e0 !important;
        background: rgba(157, 207, 209, 0.12);
        border: 1px solid rgba(157, 207, 209, 0.25);
    }

    .page-btn:hover {
        background: rgba(157, 207, 209, 0.25);
        color: white !important;
    }

    .page-btn.active {
        background: #23A0B4;
        color: white !important;
        border-color: #23A0B4;
    }

    .page-info {
        color: #bbb;
    }

    .draft-pagination .page-btn,
    .draft-pagination a.page-btn {
        color: #e0e0e0 !important;
        text-decoration: none;
    }

    .draft-pagination a.page-btn:hover {
        color: #ffffff !important;
        background: rgba(157, 207, 209, 0.25);
    }

    .draft-pagination .page-btn.active {
        color: #ffffff !important;
        background: #23A0B4;
    }
}

/* ================= RESPONSIVE ================= */

/* 📱 TABLETS */
@media ((orientation: landscape) and (max-width: 992px)) {

    /* HERO */
    .hero-section {
        min-height: 80vh;
        height: auto;
        padding: 100px 20px 80px 20px;
        overflow: visible;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero-section h1 {
        font-size: 2.6rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 1.2rem;
        max-width: 95%;
    }

    .hero-section .btn,
    .btn-outline-dark {
        width: 100%;
        max-width: 320px;
        padding: 16px;
        font-size: 17px;
    /* NOSOTROS */
    }
    .about-content-col {
        max-width: 100%;
    }

    /* VALORES */
    .valores-standalone-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* SERVICIOS */
    .servicios-carrusel {
        padding: 0 30px;
        position: relative;
    }

    .servicios-carrusel .carousel-inner {
        height: auto;
        min-height: 380px;
    }

    .servicios-img-carrusel .carousel-inner,
    .servicios-img-carrusel .carousel-item,
    .servicios-img-frame {
        height: 300px;
    }

    /* EQUIPO */
    #carruselEquipoPC .carousel-inner {
        height: auto;
        min-height: 420px;
    }

    .team-carousel-card {
        padding: 25px;
        justify-content: center;
    }

    /* CONTACTO */
    .contact-section .card {
        padding: 20px;
    }

    /* 🔥 FLECHAS SIEMPRE CENTRADAS */
    .custom-arrow {
        top: 50% !important;
        transform: translateY(-50%);
    }
}

/* 📱 MÓVIL */
@media (orientation: portrait) {

    /* HERO */
    .hero-section {
        min-height: 40vh;
        position: relative;    
        overflow: hidden;
    }

    .hero-section h1 {
        font-size: 4rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 2.2rem;
        margin-top: 20px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 22px;
    }

    .hero-section .btn,
    .btn-outline-dark {
        width: 100%;
        max-width: 390px;
        padding: 18px 20px;
        font-size: 1.9rem;
        font-weight: 700;
        border-radius: 40px;
    }

    .hero-video-bg{
        position: absolute;
        right: 0;
        bottom: 0;
        min-width: 100%;
        min-height: 100%;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
        

    /* NOSOTROS */
    .about-carousel-wrap {
        gap: 0.5rem;
    }

    .carousel-item.active, .about-content-box{
        min-height: 670px;
    }

    .about-arrow {
        width: 34px;
        height: 34px;
        font-size: 2rem;
    }

    .about-tab {
        font-size: 2rem;
        padding: 6px 12px;
    }

    .about-card-header {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .about-card-icon {
        width: 42px;
        height: 42px;
        font-size: 3rem;
    }

    .about-card-title {
        font-size: 3rem;
    }

    .about-content-box {
        padding: 20px 18px;
    }

    .about-content-box p{
        font-size: 1.8rem;
    }

    .container h2{
        font-size: 4rem;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    /* VALORES */
    .valores-standalone-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .valor-standalone-card span, .valor-standalone-card strong{
        font-size: 2rem;
    }

    .valor-standalone-icon i{
        font-size: 3rem;
    }

    .valores-standalone-title{
        font-size: 4rem;
    }

    /* SERVICIOS */

    .servicios-carrusel .carousel-inner {
        height: auto;
        min-height: 800px;
        padding: 25px;
    }

    /* SERVICIOS GRANDE PRO */


    #carruselServiciosMovil p {
        font-size: 2rem;
        line-height: 1.7;
    }

    .team-carousel-card .card-title{
        font-size: 3rem;
    }

    #carruselServiciosMovil .team-carousel-card {
        padding: 30px 20px;
        min-height: 865px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }

    .servicios-img-carrusel .carousel-inner,
    .servicios-img-carrusel .carousel-item,
    .servicios-img-frame {
        height: 220px;
    }

    /* EQUIPO */

    #carruselEquipoMovil .carousel-inner {
        min-height: 45vh;
    }

    #carruselEquipoMovil .carousel-item {
        padding: 0 10px 20px;
    }

    .custom-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .custom-arrow i {
        font-size: 2rem !important;
        color: black !important; /* por si no se ven */
    }

    /* ================= EQUIPO MÁS GRANDE EN MÓVIL ================= */

    #carruselEquipoMovil .team-carousel-card {
        max-width: 100%;
        padding: 36px 28px;
        gap: 12px;
    }

    #carruselEquipoMovil .team-photo-placeholder {
        width: 220px;
        height: 220px;
    }

    /* NOMBRE MÁS GRANDE */
    #carruselEquipoMovil .team-carousel-card h4 {
        font-size: 2.5rem;
        margin-top: 10px;
    }

    /* ROL MÁS GRANDE */
    #carruselEquipoMovil .team-role {
        font-size: 2.5rem;
    }

    /* DESCRIPCIÓN MÁS GRANDE */
    #carruselEquipoMovil .team-carousel-card p {
        font-size: 2rem;
        line-height: 1.8;
    }

    /* BOTÓN MÁS GRANDE */
    #carruselEquipoMovil .btn-doctoralia {
        font-size: 2rem;
        padding: 14px 32px;
        margin-top: 8px;
    }

    /* TARJETAS */
    .team-carousel-card {
        padding: 20px;
        height: 900px;
    }

    /* RESEÑAS */
    .review-card {
        padding: 25px 20px;
        min-height: 260px;
    }

    .review-text {
        font-size: 2rem;
        line-height: 2;
    }

    .review-author strong {
        font-size: 1.7rem;
    }

    .review-author span {
        font-size: 1.7rem;
    }

    .review-stars {
        font-size: 1.8rem;
    }

    .review-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }

    .equipo-prev i, .equipo-next i, .resenas-prev i, .resenas-next i{
        font-size: 3rem;
    }

    

    #carruselResenas .carousel-inner{
        min-height: 700px;
    }

    .btn-ver-resenas{
        font-size:2rem;
    }

    .reviews-subtitle{
        font-size:1.9rem;
    }

    /* 🔥 FLECHAS FIJAS (NO SE MUEVEN) */
    .equipo-prev, .equipo-next,
    .resenas-prev, .resenas-next,
    .custom-arrow {
        width: 3rem !important;
        height: 3rem !important;
        top: 50% !important;
        transform: translateY(-50%);
        z-index: 20;
    }

    .equipo-prev,
    .resenas-prev {
        left: 5px;
    }

    .equipo-next,
    .resenas-next {
        right: 5px;
    }

    /* CONTACTO MÁS GRANDE EN MÓVIL */
    .contact-section h3 {
        font-size: 4rem;
    }

    .contact-section .card {
        padding: 30px 20px;
    }

    .contact-section .form-control {
        font-size: 2rem;
        padding: 16px;
    }

    .contact-section textarea.form-control {
        font-size: 2rem;
    }

    .contact-section button {
        font-size: 2rem;
        padding: 16px;
        border-radius: 30px;
    }

    .contact-icon i {
        font-size: 4rem !important;
    }

    /* MAPA MÁS GRANDE */
    .map-container iframe {
        height: 700px;
    }

    /* DIRECCIÓN MÁS GRANDE */
    #dirección {
        font-size: 3rem;
    }
}