/* =========================================
   VARIABLES DE COLOR (TU NUEVA PALETA)
   ========================================= */
   :root {
    --primario-rosa: #ED87AF;    /* Ahora es el color principal */
    --secundario-azul: #769DB1;
    --acento-dorado: #967C3B;    /* El dorado pasa a ser acento */
    --suave-arena: #CCBDAD;
    --fondo-hueso: #F9F7F5;
    --blanco: #ffffff;
    --texto-oscuro: #3D3D3D;
    /* Móvil: una sola definición para todo el sitio. Con viewport en el HTML, pantallas ≤768px = celular. */
    --breakpoint-movil: 768px;
}

/* Configuración General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--texto-oscuro);
    background-color: var(--fondo-hueso);
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(150, 124, 59, 0.1); /* Sombra con toque dorado */
    border-bottom: 2px solid var(--suave-arena);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .logo {
    color: var(--primario-dorado);
    font-weight: bold;
}

.main-header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: 500;
    transition: color 0.3s;
}

.main-header nav a:hover {
    color: var(--secundario-azul);
}

/* Hamburger: ocultar en desktop */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

/* Responsive header: menú hamburguesa en móvil (≤768px) */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 36px;
        height: 36px;
        padding: 6px;
        cursor: pointer;
        z-index: 1001;
    }
    .nav-toggle-label span {
        display: block;
        height: 3px;
        background: var(--texto-oscuro);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .main-header .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .main-header .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .main-header .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 85vw);
        height: 100vh;
        background: var(--blanco);
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        padding: 80px 24px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    .main-header .nav-toggle:checked ~ .main-nav {
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }
    .main-nav ul li {
        border-bottom: 1px solid var(--suave-arena);
    }
    .main-nav ul li a {
        display: block;
        padding: 14px 0;
        margin-left: 0 !important;
    }
    .main-nav .btn-perfil {
        margin-top: 12px;
        text-align: center;
    }
    .main-header .nav-toggle:checked ~ .nav-toggle-label {
        position: fixed;
        right: 1rem;
        top: 1.25rem;
    }
}

/* Estilos del Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    /* Esto pega el menú al texto para que el mouse no se 'pierda' */
    top: 100%; 
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
    
    /* CAMBIO CLAVE: Quitamos margin y usamos border transparente como puente */
    margin-top: 0; 
    border-top: 15px solid transparent; 
    background-clip: padding-box;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    color: var(--texto-oscuro);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.dropdown-content li a:hover {
    background-color: #fdf2f7;
    color: var(--primario-rosa);
}

/* Mostrar al hacer Hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Flechita animada (Opcional) */
.dropdown:hover small {
    transform: rotate(180deg);
    display: inline-block;
}

/* Sección Hero */
.hero {
    /* El background se define en el HTML, así que aquí solo damos estructura */
    padding: 140px 5%; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ========== INDEX MODERNO: Hero full-screen, gradientes, animación ========== */
.hero.hero-modern {
    position: relative;
    min-height: 100vh;
    padding: 0 5%;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-align: left;
}

.index-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(237, 135, 175, 0.92) 0%, rgba(118, 157, 177, 0.88) 100%);
    opacity: 0.95;
    z-index: 1;
}

.index-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}

.index-hero-blurs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.index-hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: index-float 8s ease-in-out infinite;
}

.index-hero-blur-1 {
    top: 10%;
    left: 10%;
    width: 260px;
    height: 260px;
    background: rgba(237, 135, 175, 0.25);
}

.index-hero-blur-2 {
    bottom: 15%;
    right: 10%;
    width: 320px;
    height: 320px;
    background: rgba(118, 157, 177, 0.25);
    animation-delay: -2s;
}

.index-hero-blur-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: rgba(150, 124, 59, 0.2);
    animation-delay: -4s;
}

@keyframes index-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.index-hero-blur-3 {
    transform: translate(-50%, -50%) translateY(0);
}

.index-hero-blur-3 {
    animation: index-float-center 8s ease-in-out infinite;
}

@keyframes index-float-center {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.index-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .index-hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.index-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.index-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem 0;
    line-height: 1.6;
    max-width: 520px;
}

.index-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary {
    display: inline-block;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primario-rosa);
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.btn-hero-secondary {
    display: inline-block;
    padding: 1rem 1.75rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.95);
    color: var(--primario-rosa);
}

.index-hero-image-wrap {
    display: none;
}

@media (min-width: 992px) {
    .index-hero-image-wrap {
        display: block;
    }
}

.index-hero-image {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
    display: block;
}

.floating {
    animation: index-float 6s ease-in-out infinite;
}

/* Secciones index: títulos y descripción */
.index-section {
    padding: 4rem 5%;
    text-align: center;
}

.index-section-title {
    color: var(--texto-oscuro);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.index-section-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 36rem;
    margin: 0 auto 2.5rem auto;
    line-height: 1.5;
}

.index-section-alt {
    background: #f5f5f5;
}

.index-sobre-title {
    font-size: 2rem;
    color: var(--texto-oscuro);
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

/* Sobre nosotros en index: logo de fondo y barrita rosa (como nosotros.html) */
.index-sobre-nosotros-wrap .index-about-wrapper,
.index-sobre-nosotros-wrap .about-wrapper {
    background-image: url('/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
    z-index: 1;
    padding: 4rem 5%;
}

.index-sobre-nosotros-wrap .index-about-wrapper::before,
.index-sobre-nosotros-wrap .about-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    z-index: -1;
}

.index-sobre-nosotros-wrap .texto-nosotros .highlight-p {
    border-left: 4px solid var(--primario-rosa);
    padding-left: 1.25rem;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.index-sobre-p {
    text-align: justify;
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: var(--texto-oscuro);
}

/* Servicios grid moderno */
.servicios-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-top: 2rem;
}

.servicio-card-modern {
    background: var(--blanco);
    border-radius: 16px;
    padding: 2rem;
    max-width: 340px;
    width: 100%;
    border: 1px solid var(--suave-arena);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.servicio-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(237, 135, 175, 0.15);
}

.servicio-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.servicio-card-icon-rosa { color: var(--primario-rosa); }
.servicio-card-icon-azul { color: var(--secundario-azul); }
.servicio-card-icon-dorado { color: var(--acento-dorado); }

.servicio-card-modern h3 {
    font-size: 1.35rem;
    margin: 0 0 0.75rem 0;
    color: var(--texto-oscuro);
}

.servicio-card-modern p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    text-align: left;
}

.servicio-card-link {
    font-weight: 600;
    color: var(--primario-rosa);
    font-size: 0.95rem;
}

a.servicio-card-modern:hover .servicio-card-link {
    color: var(--secundario-azul);
}

.servicio-card-soon {
    opacity: 0.88;
    cursor: default;
    pointer-events: none;
}

.servicio-card-soon:hover {
    transform: none;
}

.servicio-card-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--acento-dorado);
    color: #fff;
    padding: 0.35rem 2.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.servicio-card-soon-text {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* Testimonios: avatares por color */
.avatar-rosa { background: var(--primario-rosa) !important; }
.avatar-azul { background: var(--secundario-azul) !important; }
.avatar-dorado { background: var(--acento-dorado) !important; }

/* FAQ moderno */
.faq-container-modern {
    max-width: 42rem;
    margin: 0 auto;
}

.faq-item-modern {
    border-radius: 14px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.faq-item-modern[open] {
    box-shadow: 0 8px 24px rgba(118, 157, 177, 0.12);
}

/* CTA final */
.index-cta-section {
    position: relative;
    padding: 4rem 5%;
    overflow: hidden;
}

.index-cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primario-rosa) 0%, var(--secundario-azul) 100%);
    z-index: 0;
}

.index-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

.index-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
}

.index-cta-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.index-cta-content .btn-hero-primary {
    background: rgba(255,255,255,0.95);
    color: var(--primario-rosa);
}

.index-cta-content .glass-effect {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.5);
}

/* ========== Modal Bienvenida (Comenzar Ahora) ========== */
.modal-bienvenida-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-bienvenida-box {
    background: #fff;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 2rem 2rem 2.25rem;
    position: relative;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(237, 135, 175, 0.2);
}

.modal-bienvenida-cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.modal-bienvenida-cerrar:hover {
    background: var(--primario-rosa);
    color: #fff;
}

.modal-bienvenida-paso {
    text-align: center;
    position: relative;
}

.modal-bienvenida-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--texto-oscuro);
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.modal-bienvenida-titulo-rosa {
    color: var(--primario-rosa);
}

.modal-bienvenida-sub {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 1.5rem 0;
}

.modal-bienvenida-botones {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-bienvenida-btn {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-bienvenida-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.modal-bienvenida-btn-nuevo {
    background: linear-gradient(135deg, var(--primario-rosa), #e0709a);
    color: #fff;
}

.modal-bienvenida-btn-conozco {
    background: #f0f0f0;
    color: var(--texto-oscuro);
    border: 2px solid var(--suave-arena);
}

.modal-bienvenida-btn-conozco:hover {
    background: #e8e8e8;
    border-color: var(--secundario-azul);
    color: var(--secundario-azul);
}

.modal-bienvenida-volver {
    position: absolute;
    top: -0.5rem;
    left: 0;
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.modal-bienvenida-volver:hover {
    color: var(--primario-rosa);
}

.modal-bienvenida-opciones {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-bienvenida-opcion {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--texto-oscuro);
    background: #f8f8f8;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.modal-bienvenida-opcion:hover {
    background: rgba(237, 135, 175, 0.12);
    border-color: var(--primario-rosa);
    color: var(--primario-rosa);
}

.modal-bienvenida-mensaje {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.modal-bienvenida-btn-cta {
    background: var(--primario-rosa);
    color: #fff;
}

.modal-bienvenida-btn-cta:hover {
    background: #e0709a;
}

.modal-bienvenida-btn-sec {
    background: #f0f0f0;
    color: var(--texto-oscuro);
}

.modal-bienvenida-btn-sec:hover {
    background: #e0e0e0;
}

.modal-bienvenida-opcion-btn {
    cursor: pointer;
    border: none;
    font: inherit;
    text-align: center;
}

/* Encuesta de corriente: una pregunta por pantalla, mismas burbujas que el modal */
.encuesta-indicador {
    font-size: 0.85rem;
    color: #888;
    margin: -0.5rem 0 0.75rem 0;
}

.encuesta-pregunta-titulo {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.modal-enlace-email {
    color: var(--primario-rosa);
    font-weight: 600;
    text-decoration: underline;
}
.modal-enlace-email:hover {
    color: #e0709a;
}

/* ========== Sección 2: Servicios modernos (index) ========== */
.index-servicios-wrap {
    background: linear-gradient(180deg, #fff 0%, rgba(249, 247, 245, 0.6) 50%, #fff 100%);
    position: relative;
}

.index-servicios-wrap .servicio-card-v2 {
    border-radius: 20px;
    padding: 2.25rem;
    border: 1px solid rgba(237, 135, 175, 0.2);
    overflow: visible;
}

.index-servicios-wrap .servicio-card-v2:hover {
    border-color: var(--primario-rosa);
    box-shadow: 0 20px 48px rgba(237, 135, 175, 0.18);
}

.servicio-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
}

.servicio-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    filter: blur(12px);
    opacity: 0.4;
    z-index: 0;
}

.servicio-icon-rosa::before { background: var(--primario-rosa); }
.servicio-icon-azul::before { background: var(--secundario-azul); }
.servicio-icon-dorado::before { background: var(--acento-dorado); }

.servicio-icon-wrap .servicio-card-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

/* ========== Sección 4: Testimonios modernos (index) ========== */
.index-testimonios-wrap {
    background: linear-gradient(180deg, #fafafa 0%, rgba(237, 135, 175, 0.04) 50%, #fafafa 100%);
}

.index-testimonios-cards {
    padding: 2rem 5%;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.index-testimonio-v2 {
    flex: 0 0 320px;
    max-width: 360px;
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(237, 135, 175, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.index-testimonio-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(237, 135, 175, 0.15);
}

.testimonio-stars {
    color: var(--acento-dorado);
    font-size: 1.15rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonio-quote {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--texto-oscuro);
    font-style: italic;
    margin: 0 0 1.5rem 0;
    position: relative;
}

.testimonio-quote::before {
    content: '"';
    font-size: 2.5rem;
    color: var(--primario-rosa);
    opacity: 0.4;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonio-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonio-avatar-rosa {
    background: var(--primario-rosa);
    box-shadow: 0 0 0 4px rgba(237, 135, 175, 0.25);
}

.testimonio-avatar-azul {
    background: var(--secundario-azul);
    box-shadow: 0 0 0 4px rgba(118, 157, 177, 0.25);
}

.testimonio-avatar-dorado {
    background: var(--acento-dorado);
    box-shadow: 0 0 0 4px rgba(150, 124, 59, 0.25);
}

.testimonio-info {
    font-size: 0.9rem;
    color: #666;
}

.testimonio-name {
    display: inline-block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, var(--primario-rosa), var(--secundario-azul));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Sección 5: FAQ modernos (index) ========== */
.index-faq-wrap {
    background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
}

.index-faq-panels {
    max-width: 44rem;
}

.faq-item-v2 {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(237, 135, 175, 0.2);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item-v2:hover {
    border-color: rgba(237, 135, 175, 0.35);
}

.faq-item-v2[open] {
    border-left-color: var(--primario-rosa);
    box-shadow: 0 8px 28px rgba(237, 135, 175, 0.12);
    background: #fff;
}

.faq-item-v2 summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--texto-oscuro);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-item-v2 summary::-webkit-details-marker,
.faq-item-v2 summary::marker {
    display: none;
}

.faq-item-v2 summary::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--primario-rosa);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item-v2[open] summary::after {
    transform: rotate(-180deg);
    color: var(--secundario-azul);
}

.faq-content-v2 {
    padding: 0 1.5rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(237, 135, 175, 0.12);
}

.faq-content-v2 p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #555;
    padding-top: 0.75rem;
}

/* SECCIÓN DE SERVICIOS */
.servicios-container {
    padding: 60px 5%;
    text-align: center;
}

.servicios-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.servicio-card {
    background: var(--blanco);
    border-radius: 15px;
    padding: 30px;
    width: 280px;
    border: 1px solid var(--suave-arena);
    box-shadow: 0 4px 15px rgba(150, 124, 59, 0.05);
    transition: all 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-10px);
    border-color: var(--secundario-azul);
}

.servicio-card .icono {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primario-dorado); /* Iconos en dorado */
}

.btn-principal {
    background: var(--primario-dorado);
    color: var(--blanco);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-principal:hover {
    background: var(--secundario-azul);
}

/* --- SECCIÓN SOBRE NOSOTROS (REEMPLAZO TOTAL) --- */
.sobre-nosotros {
    padding: 80px 10%;
    background-color: var(--blanco);
}

.contenedor-flex {
    display: flex;
    align-items: center; /* Esto evita que se vea chueco, alinea todo al centro vertical */
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.subtitulo {
    color: var(--primario-rosa); /* Rosa como primario */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.texto-nosotros {
    flex: 1;
    min-width: 320px;
    max-width: 550px;
}

.texto-nosotros h2 {
    font-size: 2.5rem;
    color: var(--texto-oscuro);
    margin-top: 10px;
    line-height: 1.2;
}

.texto-nosotros p {
    line-height: 1.8;
    color: var(--texto-oscuro);
    margin-bottom: 20px;
}

.lista-valores {
    list-style: none;
    padding: 0;
}

.lista-valores li {
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--secundario-azul); /* Azul para los checks de confianza */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Decoración de la derecha (El cuadro rosa) */
.imagen-nosotros-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cuadro-decorativo-v2 {
    background: var(--primario-rosa); /* Rosa fuerte */
    color: var(--blanco);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(237, 135, 175, 0.25);
    border-bottom: 8px solid var(--acento-dorado); /* El dorado queda como detalle elegante abajo */
    width: 260px;
    transition: transform 0.3s ease;
}

.cuadro-decorativo-v2:hover {
    transform: scale(1.02);
}

.cuadro-decorativo-v2 span {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.cuadro-decorativo-v2 p {
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-principal {
    padding: 12px 30px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-principal:hover {
    background: var(--secundario-azul) !important;
    transform: translateY(-2px);
}

/* --- CONTENEDOR GENERAL DEL SLIDER (CORREGIDO) --- */
.slider-section {
    padding: 80px 0;
    background: var(--fondo-hueso);
    overflow: hidden; /* Evita que el scroll horizontal rompa el ancho de la página */
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 5%; /* Espaciado lateral para que los slides no peguen al borde */
    scrollbar-width: none; /* Oculta scroll en Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Oculta scroll en Chrome */
}

/* --- CADA SLIDE --- */
.slide {
    flex: 0 0 85%; /* Tamaño ideal para móviles y escritorio */
    max-width: 550px;
    height: 400px;
    position: relative;
    border-radius: 30px; /* Bordes más curvos y modernos */
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid var(--suave-arena);
    box-shadow: 0 15px 35px rgba(150, 124, 59, 0.1);
    transition: transform 0.4s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
}

/* --- CUADRO DE TEXTO (INFO-BOX) --- */
.info-box {
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.92);
    padding: 25px;
    border-radius: 20px;
    text-align: left;
    backdrop-filter: blur(10px);
    /* El rosa ahora manda aquí */
    border-left: 6px solid var(--primario-rosa); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.info-box h4 {
    margin: 0 0 8px 0;
    color: var(--primario-rosa); /* Título en Rosa */
    font-size: 1.3rem;
    font-weight: 800;
}

.info-box p {
    margin: 0;
    color: var(--texto-oscuro);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- SECCIÓN TESTIMONIOS (REEMPLAZO TOTAL) --- */
.testimonios-section {
    padding: 100px 5%;
    background-color: var(--fondo-hueso); /* Un tono suave para que resalten las tarjetas blancas */
    text-align: center;
}

/* Este contenedor es la clave para que se vean varios en fila */
.testimonios-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 40px 10%;
    scrollbar-width: none;
}

.testimonios-container::-webkit-scrollbar {
    display: none;
}

/* Tarjeta de Testimonio */
.testimonio-card {
    flex: 0 0 320px; /* Ancho de cada tarjeta */
    background: var(--blanco);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(237, 135, 175, 0.1); /* Sombra ligera rosa */
    border: 1px solid var(--suave-arena);
    scroll-snap-align: center;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primario-rosa);
}

.estrellas {
    color: var(--acento-dorado); /* Estrellas doradas elegantes */
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cita {
    font-style: italic;
    color: var(--texto-oscuro);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Info del Autor */
.avatar {
    width: 55px;
    height: 55px;
    background: var(--primario-rosa); /* Avatar Rosa */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.autor strong {
    display: block;
    color: var(--primario-rosa); /* Nombre en Rosa */
    font-size: 1.1rem;
}

.autor span {
    font-size: 0.85rem;
    color: var(--secundario-azul); /* Detalle en Azul */
}

/* Sección FAQ */
.faq-section {
    padding: 80px 10%;
    background-color: var(--blanco);
    text-align: center;
}

.faq-item {
    background: var(--fondo-hueso);
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--suave-arena);
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: var(--secundario-azul);
    box-shadow: 0 5px 15px rgba(118, 157, 177, 0.1);
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primario-dorado);
    transition: transform 0.3s ease;
}

/* =========================================
   SECCIÓN FAQ (RECUPERADA)
   ========================================= */
   .faq-section {
    padding: 80px 10%;
    background-color: var(--blanco);
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.faq-item {
    background: var(--fondo-hueso);
    margin-bottom: 15px;
    border-radius: 15px;
    border: 1px solid var(--suave-arena);
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: var(--primario-rosa);
    box-shadow: 0 5px 15px rgba(237, 135, 175, 0.1);
}

summary {
    padding: 20px;
    font-weight: 600;
    color: var(--texto-oscuro);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primario-rosa); /* El + ahora es rosa */
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--acento-dorado); /* Cambia a dorado al abrir */
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: var(--texto-oscuro);
    line-height: 1.6;
    border-top: 1px solid var(--suave-arena);
    padding-top: 15px;
}

/* =========================================
   ESTILOS DEL FOOTER (TU VERSIÓN FAVORITA)
   ========================================= */
.main-footer {
    background-color: #332E2A; /* Color tierra muy oscuro original */
    color: var(--suave-arena);
    padding: 60px 10% 20px 10%;
    margin-top: 50px;
    border-top: 5px solid var(--primario-rosa); /* El toque rosa de la marca */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h3, .footer-col h4 {
    color: var(--acento-dorado); /* Títulos dorados que tanto te gustaron */
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.6;
    color: var(--suave-arena);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--suave-arena);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primario-rosa); /* Resalta en rosa al pasar el mouse */
}

/* Redes Sociales */
.redes-sociales a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(150, 124, 59, 0.15); /* Dorado traslúcido */
    color: var(--acento-dorado);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.redes-sociales a:hover {
    background: var(--acento-dorado);
    color: white;
}

/* Barra inferior de Copyright */
.footer-bottom {
    border-top: 1px solid rgba(204, 189, 173, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--suave-arena);
    opacity: 0.7;
}

/* =========================================
   PÁGINAS DE AUTENTICACIÓN (LOGIN/REGISTRO)
   ========================================= */
.auth-body {
    /* Degradado usando Azul Calma y Arena */
    background: linear-gradient(135deg, var(--secundario-azul) 0%, var(--suave-arena) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.auth-container-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: var(--blanco);
    padding: 40px;
    border-radius: 25px; /* Bordes más redondeados y modernos */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    border-bottom: 5px solid var(--primario-dorado); /* Detalle de marca inferior */
}

.auth-header h2 {
    color: var(--primario-dorado);
    margin-bottom: 10px;
    font-weight: 800;
}

.auth-header p {
    color: var(--texto-oscuro);
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primario-dorado);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--fondo-hueso);
    background-color: var(--fondo-hueso);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    background-color: white;
    border-color: var(--secundario-azul);
    box-shadow: 0 0 0 4px rgba(118, 157, 177, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background-color: var(--primario-dorado);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(150, 124, 59, 0.2);
}

.btn-auth:hover {
    background-color: var(--secundario-azul);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(118, 157, 177, 0.3);
}

.auth-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--texto-oscuro);
}

.auth-footer a {
    color: var(--secundario-azul);
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    color: var(--acento-rosa);
}

.back-link {
    display: block;
    margin-top: 15px;
    color: var(--suave-arena) !important;
    font-size: 0.8rem;
}/* Continuación de Auth Footer */
.auth-footer a {
    color: var(--secundario-azul);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--acento-rosa);
}

.back-link {
    display: block;
    margin-top: 15px;
    color: var(--suave-arena) !important;
    font-weight: 400 !important;
    text-decoration: none;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--primario-dorado) !important;
}

/* =========================================
   ESTILOS ESPECÍFICOS PARA NOSOTROS
   ========================================= */
.hero-short {
    background: linear-gradient(135deg, var(--primario-dorado) 0%, var(--suave-arena) 100%);
    color: var(--blanco);
    padding: 60px 5%;
    text-align: center;
}

/* --- SECCIÓN NOSOTROS DETALLE --- */
.about-wrapper {
    padding: 80px 0;
    background-color: var(--blanco);
}

.about-container {
    display: flex;
    gap: 50px;
    max-width: 1100px; /* Centra el contenido sin importar el tamaño del monitor */
    margin: 0 auto;
    padding: 0 20px;
    text-align: justify;
    color: var(--texto-oscuro);
    line-height: 1.8;
}

.about-column {
    flex: 1;
}

.about-column p {
    margin-bottom: 20px;
}

/* Párrafo destacado con el toque rosa de la marca */
.highlight-p {
    border-left: 4px solid var(--primario-rosa);
    padding-left: 20px;
    font-style: italic;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 20px;
    }
}
.nosotros-detalle {
    padding: 60px 10%;
    background-color: var(--blanco);
}

.bloque-texto {
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    line-height: 1.8;
    color: var(--texto-oscuro);
}

.about-wrapper {
    padding: 80px 0;
    background-color: var(--blanco);
    /* Configuramos el logo de fondo */
    background-image: url('/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* O puedes usar un tamaño fijo como 400px */
    position: relative;
    z-index: 1;
}

/* Creamos un velo transparente para que el logo se vea muy sutil (marca de agua) */
.about-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92); /* Ajusta el 0.92 si quieres que se vea más o menos el logo */
    z-index: -1;
}

.mision-vision-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card-nosotros {
    background: var(--fondo-hueso);
    border: 1px solid var(--suave-arena);
    padding: 30px;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
}

.card-nosotros:hover {
    box-shadow: 0 10px 25px rgba(150, 124, 59, 0.1);
    border-color: var(--primario-dorado);
    transform: translateY(-5px);
}

.icono-nosotros {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* --- SECCIÓN SLIDER DE EQUIPO (Versión 4 a la vez) --- */
.equipo-slider-section {
    padding: 60px 20px;
    background-color: var(--fondo-hueso);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ventana centrada: ancho según número de slides para que queden centrados (2 slides = 450px, 4 = 900px) */
.equipo-slider-viewport {
    overflow: hidden;
    width: min(100%, calc(var(--equipo-num-slides, 4) * 225px));
    max-width: 900px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.equipo-slider-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.equipo-slide {
    flex: 0 0 25%; /* Sigue siendo el 25%, pero de los 900px */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.equipo-slide img {
    width: 85px; 
    height: 85px; 
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primario-rosa);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.equipo-slide img:hover {
    transform: scale(1.1);
}

.nombre-equipo {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto-oscuro);
}

/* Puntos de navegación */
.slider-nav-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--suave-arena);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primario-rosa);
    transform: scale(1.3);
}

/* Responsive: En tablets 3 y en celulares 2 */
@media (max-width: 1024px) {
    .equipo-slide { flex: 0 0 33.33%; }
}

@media (max-width: 768px) {
    .equipo-slide { flex: 0 0 50%; }
}

/* =========================================
   LAYOUT DEL PERFIL / PANEL DOCTOR
   ========================================= */
.perfil-body {
    margin: 0;
    overflow: hidden;
    background: var(--fondo-hueso); /* Fondo crema suave */
}

.perfil-layout {
    display: flex;
    height: 100vh;
}

/* Layout del Perfil */
.perfil-layout {
    display: flex;
    height: 100vh;
}

/* Barra Lateral - Contraíble con hover; scroll para ver todo (p. ej. Cerrar sesión) */
.perfil-sidebar {
    width: 70px;
    background: #332E2A;
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    border-right: 1px solid var(--suave-arena);
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.25s ease;
    min-height: 0;
}

.perfil-sidebar:hover {
    width: 260px;
    padding: 20px 16px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.user-avatar {
    width: 46px;
    height: 46px;
    background: var(--primario-dorado);
    color: var(--blanco);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: width 0.25s ease, height 0.25s ease, font-size 0.25s ease;
}

.perfil-sidebar:hover .user-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
}

/* Ocultar texto cuando está contraído */
.sidebar-nombre,
.sidebar-texto,
.nav-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.perfil-sidebar:hover .sidebar-nombre,
.perfil-sidebar:hover .sidebar-texto,
.perfil-sidebar:hover .nav-label {
    opacity: 1;
    width: auto;
}

.status-badge {
    background: var(--acento-rosa);
    color: var(--blanco);
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Navegación Sidebar */
.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    width: 100%;
    background: none;
    border: none;
    color: var(--suave-arena);
    padding: 12px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.nav-item.active, .nav-item:hover {
    background: rgba(150, 124, 59, 0.15);
    color: var(--primario-dorado);
    font-weight: 600;
}

.nav-item.active {
    background: var(--primario-dorado);
    color: var(--blanco);
}

.nav-badge {
    display: none;
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--primario-rosa, #e91e63);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-badge-mobile {
    margin-left: 6px;
    vertical-align: middle;
}

.sidebar-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
    color: var(--acento-rosa);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 12px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-logout:hover {
    color: var(--blanco);
    text-shadow: 0 0 5px var(--acento-rosa);
}

/* --- Perfil / Panel doctor: en móvil, menú hamburguesa (como index), sidebar oculto --- */
.perfil-mobile-header {
    display: none;
}
.perfil-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
    .perfil-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        min-height: 52px;
        box-sizing: border-box;
        background: var(--blanco);
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
    }
    .perfil-mobile-title {
        font-weight: 700;
        color: var(--primario-rosa);
        font-size: 1.1rem;
    }
    .perfil-nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 36px;
        height: 36px;
        padding: 6px;
        cursor: pointer;
        z-index: 1002;
    }
    .perfil-nav-toggle-label span {
        display: block;
        height: 3px;
        background: var(--texto-oscuro);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .perfil-mobile-header .perfil-nav-toggle:checked ~ .perfil-nav-toggle-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .perfil-mobile-header .perfil-nav-toggle:checked ~ .perfil-nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .perfil-mobile-header .perfil-nav-toggle:checked ~ .perfil-nav-toggle-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .perfil-mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 85vw);
        height: 100vh;
        background: var(--blanco);
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        padding: 80px 24px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    .perfil-mobile-header .perfil-nav-toggle:checked ~ .perfil-mobile-nav {
        transform: translateX(0);
    }
    .perfil-mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .perfil-mobile-nav-list li {
        border-bottom: 1px solid var(--suave-arena);
    }
    .perfil-mobile-nav-btn,
    .perfil-mobile-nav-link {
        display: block;
        width: 100%;
        padding: 14px 0;
        text-align: left;
        background: none;
        border: none;
        font-size: 1rem;
        color: var(--texto-oscuro);
        text-decoration: none;
        cursor: pointer;
        font-family: inherit;
    }
    .perfil-mobile-nav-btn:hover,
    .perfil-mobile-nav-link:hover {
        color: var(--primario-rosa);
    }
    .perfil-mobile-nav-btn.active {
        font-weight: 700;
        color: var(--primario-rosa);
    }
    .perfil-mobile-logout {
        color: var(--acento-rosa);
        font-weight: 600;
    }
    .perfil-mobile-header .perfil-nav-toggle:checked ~ .perfil-nav-toggle-label {
        position: fixed;
        right: 1rem;
        top: 1rem;
    }
    /* Ocultar sidebar en móvil; el contenido va debajo del header fijo */
    .perfil-sidebar {
        display: none !important;
    }
    .perfil-main {
        min-height: 100vh;
        box-sizing: border-box;
    }
}

/* Área de Video / Principal */
.perfil-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background-color: var(--fondo-hueso);
    overflow-y: auto;
}

/* Móvil: padding-top debe ir DESPUÉS de .perfil-main para no ser anulado por padding: 30px */
@media (max-width: 768px) {
    .perfil-main {
        padding: 90px 30px 30px 30px;
    }
}

.video-header {
    margin-bottom: 25px;
}

.video-header h2 {
    margin: 0;
    color: var(--primario-dorado);
    font-size: 1.8rem;
}

.video-header p {
    color: var(--secundario-azul);
    margin: 5px 0 0 0;
}

/* Filtros doctor dashboard */
.filtros-citas {
    display: grid;
    /* minmax(0, ...) evita overflow raro de inputs en grid */
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--suave-arena);
    padding: 14px;
    border-radius: 14px;
    margin: 10px 0 18px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filtro-item {
    min-width: 0;
}

.filtro-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.filtro-acciones {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1200px) {
    .filtros-citas {
        grid-template-columns: 1fr 1fr;
    }
    .filtros-citas .filtro-paciente {
        grid-column: 1 / -1;
    }
    .filtro-acciones {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .filtro-acciones button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .filtros-citas {
        grid-template-columns: 1fr 1fr;
    }
    .filtros-citas .filtro-paciente {
        grid-column: 1 / -1;
    }
    .filtro-acciones {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .filtro-acciones button {
        width: 100%;
    }
}

/* Ajuste para que el contenedor de video sea flexible */
#jitsi-container {
    width: 100%;
    height: 100%; /* Ahora depende del contenedor padre vista-video */
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 2px solid var(--suave-arena);
}

.chat-main-container {
    display: flex;
    background: white;
    height: 70vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.chat-sidebar {
    width: 250px;
    border-right: 1px solid #eee;
    background: #fdfdfd;
    padding: 20px;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid-citas-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.cita-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cita-card.border-dorado {
    border-left: 5px solid var(--primario-dorado);
}

.cita-card.grisaceo {
    opacity: 0.7;
    border-left: 5px solid #ccc;
    background: #f9f9f9;
}

.badge-finalizada {
    font-size: 0.8rem;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-no-realizada {
    font-size: 0.8rem;
    color: #0d47a1;
    font-weight: bold;
    text-transform: uppercase;
    background: #e3f2fd;
    padding: 4px 10px;
    border-radius: 8px;
}

.badge-cancelada {
    font-size: 0.8rem;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 8px;
}

.vacio {
    color: #aaa;
    font-style: italic;
}

/* Burbujas de mensaje */
.msg { padding: 10px 15px; border-radius: 15px; max-width: 70%; font-size: 0.9rem; }
.msg.enviado { background: var(--primario-rosa); color: white; align-self: flex-end; }
.msg.recibido { background: #e0e0e0; color: var(--texto-oscuro); align-self: flex-start; }
.msg-adjunto-pdf { color: inherit; text-decoration: underline; }
.msg.enviado .msg-adjunto-pdf { color: rgba(255,255,255,0.95); }

.contacto-item {
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}
.contacto-item:hover { background: var(--suave-arena); }
.contacto-item.active { background: var(--primario-rosa); color: white; }

.chat-contacto-badge {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--primario-rosa, #e91e63);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chat-contacto-badge-hidden { display: none !important; }

/* En perfil paciente: resaltar nombre del psicólogo (como en panel-doctor con pacientes, sin mostrar id) */
.contacto-item-psicologo {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: white;
    margin-bottom: 5px;
    border-radius: 8px;
    transition: background 0.2s;
    border-left: 4px solid var(--primario-rosa);
}
.contacto-item-psicologo:hover {
    background: rgba(237, 135, 175, 0.08);
}
.contacto-item-psicologo .contacto-item-nombre {
    display: block;
    color: #1e40af;
    font-size: 1rem;
}

.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Botones de acciones en Mis Citas */
.btn-opinar-cita {
    flex: 1;
    background: white;
    border: 1.5px solid var(--primario-rosa);
    color: var(--primario-rosa);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 10px 12px;
    transition: 0.2s;
}

.btn-opinar-cita:hover {
    background: rgba(237, 135, 175, 0.08);
}

.btn-cita-secundario {
    background: #ffffff;
    border: 1px solid #ddd;
    color: var(--texto-oscuro);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 12px;
    transition: 0.2s;
}

.btn-cita-secundario:hover {
    background: #f7f7f7;
}

.btn-agendar-otra {
    background: #22c55e !important;
    border-color: #16a34a !important;
    color: #fff !important;
}
.btn-agendar-otra:hover {
    background: #16a34a !important;
    color: #fff !important;
}

.btn-cita-danger {
    background: #fff;
    border: 1px solid #f2b8b5;
    color: #b3261e;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 12px;
    transition: 0.2s;
}

.btn-cita-danger:hover {
    background: #fff5f5;
}

#modal-opinion textarea:focus {
    outline: none;
    border-color: var(--primario-rosa);
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

/* El link que se comporta como un botón del sidebar */
.nav-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    color: var(--suave-arena);
    padding: 12px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.nav-item-link:hover {
    background: rgba(150, 124, 59, 0.15);
    color: var(--primario-dorado);
    font-weight: 600;
}

/* Contenedor principal de las secciones */
#contenedor-citas-futuras, #contenedor-citas-pasadas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Estilo base de la tarjeta */
.cita-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 1px solid #eef2f6;
}

.cita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Diferenciación de estados */
.border-dorado {
    border-left: 5px solid #d4af37; /* Elegante toque dorado */
}

.grisaceo {
    filter: grayscale(0.5);
    opacity: 0.8;
    background: #f8f9fa;
}

/* Información de la cita */
.cita-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    text-transform: capitalize;
}

.cita-info span {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.cita-info p {
    font-size: 0.85rem;
    color: #34495e;
    margin: 5px 0;
}

/* Botones y Acciones */
.cita-acciones {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-entrar {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    flex-grow: 1;
    transition: background 0.3s;
}

.btn-entrar:hover {
    background: #219150;
}

.btn-chat-icon {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-chat-icon:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.badge-finalizada {
    background: #adb5bd;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.vacio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #95a5a6;
    font-style: italic;
}

/* Sección de video: permite scroll para que el usuario pueda mover la vista a su gusto */
#seccion-video {
    padding: 20px;
    padding-bottom: 120px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#info-video-titulo {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Contenedor del Iframe de Jitsi: altura para que haya más margen y scroll al gusto */
#seccion-video #jitsi-container {
    flex-grow: 1;
    min-height: 90vh;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Botón para salir del video (opcional) */
.btn-cerrar-video {
    margin-top: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
}


.agenda-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 20px;
}

.agenda-container {
    max-width: 100%;
}

/* Formulario horario simple */
.form-horario-simple .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.form-horario-simple .form-group {
    flex: 1;
    min-width: 100px;
    margin-bottom: 0;
}

.form-horario-simple .form-group-motivo {
    flex: 2;
}

.form-horario-simple .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
}

.form-horario-simple select,
.form-horario-simple input[type="time"],
.form-horario-simple input[type="date"],
.form-horario-simple input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    box-sizing: border-box;
    max-width: 100%;
}

.btn-agregar-bloque {
    height: 42px;
    padding: 0 20px;
    background: var(--primario-rosa);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-agregar-bloque:hover {
    background: #d6769a;
}

/* Lista de horarios por día */
.horario-dia {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.horario-dia:last-child {
    border-bottom: none;
}

.horario-dia__nombre {
    width: 90px;
    font-weight: 700;
    color: #333;
    padding-top: 6px;
}

.horario-dia__bloques {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.bloque-horario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.9rem;
    color: #333;
}

.bloque-horario .btn-quitar {
    background: none;
    border: none;
    color: #999;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}

.bloque-horario .btn-quitar:hover {
    color: #e74c3c;
}

.texto-vacio {
    color: #999;
    font-style: italic;
    margin: 0;
    padding: 10px 0;
}

/* Botón bloquear (rojo) */
.btn-bloquear {
    background: #e74c3c !important;
}

.btn-bloquear:hover {
    background: #c0392b !important;
}

/* Input de texto en form-horario-simple */
.form-horario-simple input[type="text"],
.form-horario-simple input[type="date"] {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}

/* Lista de bloqueos/vacaciones */
.bloqueo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    margin-bottom: 8px;
}

.bloqueo-item:last-child {
    margin-bottom: 0;
}

.bloqueo-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bloqueo-fechas {
    font-weight: 600;
    color: #c53030;
}

.bloqueo-motivo {
    color: #666;
    font-size: 0.9rem;
}

/* Cards de agenda responsivos (como el filtro de pacientes) */
.agenda-card-responsive {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Formulario de perfil del doctor */
.form-perfil-doctor {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-perfil {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-perfil label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.form-group-perfil input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.form-group-perfil input:focus {
    outline: none;
    border-color: var(--primario-rosa);
}

.input-readonly-doc {
    background: #f0f0f0 !important;
    cursor: not-allowed;
}

.btn-editar-v2 {
    background: var(--primario-dorado);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-editar-v2:hover {
    background: #b8a04a;
}

/* Ajuste de espaciado en nav icons del sidebar */
.nav-item-link .nav-icon,
.btn-logout .nav-icon {
    margin-right: 4px;
}

@media (max-width: 500px) {
    .form-horario-simple .form-row {
        flex-direction: column;
    }
    .form-horario-simple .form-group {
        width: 100%;
    }
    .btn-agregar-bloque {
        width: 100%;
    }
    .horario-dia {
        flex-direction: column;
        gap: 8px;
    }
    .horario-dia__nombre {
        width: auto;
        padding-top: 0;
    }
}

.agenda-grid {
    display: grid;
    /* 1 columna: evita overflow y se ve más limpio */
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}

.agenda-grid > * {
    min-width: 0; /* evita overflow raro en grid */
}

/* Dentro de las cards de agenda, los forms van en una columna para evitar que se "salgan" */
.agenda-card .grid-form {
    grid-template-columns: 1fr;
    gap: 14px;
}

.agenda-card .form-actions {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* --- 2. TARJETAS (DASH-CARD) --- */
.dash-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
}

/* --- 3. FORMULARIOS Y ELEMENTOS DE ENTRADA --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
}

.input-moderno, 
input[type="time"], 
input[type="date"], 
select {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-moderno:focus {
    border-color: #d4af37;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-row-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 10px 0;
}

/* --- 4. BOTONES --- */
.btn-guardar {
    height: 50px;
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-guardar:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-guardar:active {
    transform: scale(0.98);
}

/* Botón de Peligro/Bloqueo */
.btn-danger, 
#form-bloqueo-fecha .btn-guardar {
    background-color: #e74c3c !important;
}

#form-bloqueo-fecha .btn-guardar:hover {
    background-color: #c0392b !important;
}

/* --- 5. LISTADO DE HORARIOS (DERECHA) --- */
.horarios-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-horario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #28a745;
}

.btn-eliminar-tag {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: #111827;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-eliminar-tag:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* fuerza estilo moderno en la agenda aunque existan reglas antiguas */
.agenda-card .btn-eliminar-tag {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #111827;
    padding: 0;
}

@media (max-width: 1100px) {
    .agenda-grid {
        grid-template-columns: 1fr;
    }
    .agenda-form-grid {
        grid-template-columns: 1fr;
    }
    .hl-row {
        grid-template-columns: 90px 1fr;
    }
}

@media (max-width: 520px) {
    .hl-row {
        grid-template-columns: 72px 1fr;
    }
    .hl-day {
        font-size: 0.9rem;
    }
    .vac-day {
        border-radius: 10px;
    }
}

.item-horario .dia { font-weight: bold; color: #333; }
.item-horario .horas { color: #666; font-size: 0.9rem; }

/* --- 6. SECCIÓN DE RANGOS Y BLOQUEOS (ABAJO) --- */
.agenda-bloque-rango {
    margin-top: 40px;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
    align-items: end;
}

.form-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
}

/* --- 7. TAGS DE FECHAS BLOQUEADAS --- */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.tag-periodo {
    background: #fdf2f2;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 220px;
    font-size: 0.85rem;
}

/* Este botón SOLO aplica dentro de tags antiguas (evita romper botones nuevos) */
.tag-periodo .btn-eliminar-tag {
    background: none;
    border: none;
    color: #fc8181;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: bold;
    padding-left: 10px;
}

/* --- 8. RESPONSIVO --- */
@media (max-width: 900px) {
    .agenda-grid, .grid-form {
        grid-template-columns: 1fr;
    }
    .agenda-container {
        padding: 0;
    }
}

/* =========================================
   SECCIÓN CONFIGURACIÓN (ACTUALIZADO)
   ========================================= */

   .config-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna para que se vea como formulario elegante */
    max-width: 600px;
    margin-top: 20px;
}

.config-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.config-card h3 {
    margin-top: 0;
    color: var(--primario-rosa);
    font-size: 1.2rem;
}

.form-group-config {
    margin-bottom: 20px;
}

.form-group-config label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilo Base para los inputs (Estático por defecto) */
.input-readonly {
    width: 100%;
    padding: 10px 0; /* Sin bordes, solo el texto */
    border: 1px solid transparent !important;
    background: transparent !important;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--texto-oscuro);
    outline: none;
    transition: all 0.3s ease;
}

/* Estilo cuando activas Edición */
.input-editable {
    border: 1px solid var(--suave-arena) !important;
    background: #fff !important;
    padding: 10px !important;
    border-radius: 8px;
}

/* Botones */
.btn-editar-v2 {
    background: var(--suave-arena);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--texto-oscuro);
    transition: 0.3s;
}

.btn-editar-v2:hover {
    background: #dcd0c0;
}

.btn-config-save {
    background: var(--primario-rosa);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-config-save.outline {
    background: transparent;
    border: 2px solid var(--primario-rosa);
    color: var(--primario-rosa);
}

.btn-config-save:hover {
    filter: brightness(0.9);
}

/* El ojito de la contraseña */
#eye-btn {
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.6;
    transition: 0.3s;
}

#eye-btn:hover {
    opacity: 1;
}

.resumen-inicio-simple {
    max-width: 600px;
    margin-top: 20px;
}

.proxima-cita-destacada {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--acento-rosa);
}

.proxima-cita-destacada h3 {
    margin-top: 0;
    color: var(--texto-oscuro);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn-ver-todas {
    background: transparent;
    border: 1px solid var(--suave-arena);
    color: var(--texto-oscuro);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-ver-todas:hover {
    background: var(--suave-arena);
}

.cta-agendar-wrap {
    margin-bottom: 1rem;
}
.btn-agendar-cta {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primario-rosa), #e0709a);
    color: #fff;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-agendar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 135, 175, 0.4);
    color: #fff;
}

/* =========================================
   NUEVOS ESTILOS: PANEL DE CITAS (AGREGAR ESTO)
   ========================================= */

.grid-citas-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.cita-card-panel {
    background: var(--blanco);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--primario-rosa);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.cita-card-panel:hover {
    transform: translateY(-5px);
}

/* Variante para tarjetas de "Mis Citas" en paciente (vertical) */
.cita-card-v2 {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.cita-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cita-card-title {
    margin: 0;
    color: var(--texto-oscuro);
    font-size: 1.05rem;
    line-height: 1.2;
}

.cita-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #666;
    font-size: 0.9rem;
}

.cita-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.cita-card-actions > button {
    flex: 1;
    min-width: 140px;
}

.cita-estado-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
    background: #eee;
    color: #333;
}

.cita-estado-pill.pendiente { background: #fff3cd; color: #856404; }
.cita-estado-pill.confirmada { background: #d4edda; color: #155724; }
.cita-estado-pill.realizada { background: #e8f5e9; color: #1b5e20; }
.cita-estado-pill.no-realizada { background: #e3f2fd; color: #0d47a1; }
.cita-estado-pill.cancelada { background: #ffebee; color: #b71c1c; }

.status-pill {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-top: 8px;
}

.status-pill.pendiente { 
    background: #fff3cd; 
    color: #856404; 
}

.status-pill.confirmada { 
    background: #d4edda; 
    color: #155724; 
}

.btn-entrar-sesion {
    background-color: var(--primario-rosa);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-entrar-sesion:hover {
    background-color: #d17a8a; /* Un rosa un poco más oscuro */
}

.btn-volver {
    background: var(--suave-arena);
    color: var(--texto-oscuro);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-volver:hover {
    background: #c4b5a4;
}
/* =========================================
   DASHBOARD DEL DOCTOR (GRID Y CARDS)
   ========================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.dash-card {
    background: var(--blanco);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--suave-arena);
    box-shadow: 0 8px 20px rgba(150, 124, 59, 0.05);
    transition: 0.3s;
}

.dash-card:hover {
    border-color: var(--primario-dorado);
    transform: translateY(-3px);
}

.google-card {
    border-left: 6px solid #4285F4; /* Mantengo azul Google por identidad */
}

.card-icon {
    font-size: 2.5rem;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

.btn-google {
    background: #4285F4;
    color: var(--blanco);
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-entrar-sala {
    display: inline-block;
    background: var(--primario-dorado);
    color: var(--blanco);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-entrar-sala:hover {
    background: var(--secundario-azul);
}

/* =========================================
   CATÁLOGO PRO (ESTILOS DE TARJETAS)
   ========================================= */
.psico-header {
    display: flex;
    align-items: center;
    padding: 25px;
    background: rgba(204, 189, 173, 0.1); /* Fondo Arena traslúcido */
    gap: 15px;
    border-bottom: 1px solid var(--suave-arena);
}

.psico-img-mini {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--blanco);
    box-shadow: 0 4px 12px rgba(150, 124, 59, 0.2);
}

.especialidad-label {
    font-size: 0.8rem;
    color: var(--primario-dorado);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seccion-problemas h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--texto-oscuro);
    font-weight: 600;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-problema {
    background: var(--fondo-hueso);
    color: var(--secundario-azul);
    border: 1px solid var(--suave-arena);
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-reservar-v2 {
    display: block;
    text-align: center;
    background: var(--primario-dorado);
    color: var(--blanco);
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin: 15px;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(150, 124, 59, 0.2);
}

.btn-reservar-v2:hover {
    background: var(--secundario-azul);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(118, 157, 177, 0.3);
}

/* --- CONTENEDOR GRID CATÁLOGO --- */
.catalogo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.psico-card {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--suave-arena);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.psico-card:hover {
    transform: translateY(-10px);
    border-color: var(--primario-dorado);
}

/* --- MODAL DE CITAS --- */
.modal-cita {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--texto-oscuro);
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--suave-arena);
    border-radius: 8px;
    box-sizing: border-box; /* Importante para que no se salga del contenedor */
}

.btn-confirmar-cita {
    width: 100%;
    background: var(--primario-rosa);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

/* =========================================
   CABECERA DEL CATÁLOGO (BANNER)
   ========================================= */
   .catalogo-intro {
    background: linear-gradient(135deg, var(--primario-dorado) 0%, var(--suave-arena) 100%);
    color: var(--blanco);
    padding: 80px 5%;
    text-align: center;
    margin-bottom: 30px;
}

.intro-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.intro-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.intro-stats span {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 25px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* ========== CATÁLOGO MODERNO (estilo index) ========== */
.catalogo-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 5rem) 5%;
    background: linear-gradient(135deg, rgba(237, 135, 175, 0.92) 0%, rgba(118, 157, 177, 0.88) 100%);
    overflow: hidden;
}

.catalogo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.catalogo-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.catalogo-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.catalogo-hero-title .text-gradient {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalogo-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.catalogo-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.catalogo-hero-stats span {
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.catalogo-section-wrap {
    background: linear-gradient(180deg, #fff 0%, rgba(249, 247, 245, 0.6) 50%, #fff 100%);
    padding: 2rem 5% 4rem;
}

.catalogo-section-title {
    color: var(--texto-oscuro);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.catalogo-section-desc {
    font-size: 1rem;
    color: #666;
    text-align: center;
    max-width: 32rem;
    margin: 0 auto 2rem auto;
}

.catalogo-filtros-modern {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(237, 135, 175, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.catalogo-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.psico-card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(237, 135, 175, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.psico-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(237, 135, 175, 0.18);
    border-color: var(--primario-rosa);
}

.psico-card-modern .psico-card-header {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(180deg, rgba(249, 247, 245, 0.8) 0%, #fff 100%);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.psico-card-modern .psico-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 20px rgba(237, 135, 175, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primario-rosa);
    background-color: #fdf2f7;
}

.psico-card-modern .psico-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--texto-oscuro);
    margin: 0 0 0.25rem 0;
}

.psico-card-modern .psico-card-especialidad {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primario-rosa), var(--secundario-azul));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.psico-card-modern .psico-card-meta {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.35rem;
}

.psico-card-modern .psico-card-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.psico-card-modern .psico-card-tags-label {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.psico-card-modern .tag-problema {
    background: #fdf2f7;
    color: var(--texto-oscuro);
    border: 1px solid var(--primario-rosa);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    display: inline-block;
}

.psico-card-modern .tag-servicio {
    background: #e8f4f8;
    color: var(--texto-oscuro);
    border: 1px solid var(--secundario-azul);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
}

.psico-card-modern .psico-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.psico-card-modern .psico-card-rating {
    color: var(--acento-dorado);
    font-weight: 700;
    font-size: 1rem;
}

.psico-card-modern .psico-card-precio {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primario-rosa);
}

.psico-card-modern .psico-card-precio small {
    color: #aaa;
    font-weight: 500;
    font-size: 0.8rem;
}

.psico-card-modern .psico-card-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
}

.psico-card-modern .psico-card-btn {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.psico-card-modern .psico-card-btn-outline {
    background: #f0f4f8;
    color: #475569;
}

.psico-card-modern .psico-card-btn-outline:hover {
    background: #e2e8f0;
}

.psico-card-modern .psico-card-btn-primary {
    background: var(--primario-rosa);
    color: #fff;
    flex: 1.5;
}

.psico-card-modern .psico-card-btn-primary:hover {
    background: #d85a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 135, 175, 0.35);
}

/* Opiniones en modal perfil del catálogo */
#det-opiniones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.det-opinion-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.det-opinion-item:last-child {
    border-bottom: none;
}
.det-opinion-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}
.det-opinion-estrellas {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}
.det-opinion-fecha {
    font-size: 0.8rem;
    color: #888;
}
.det-opinion-comentario {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   MODAL DE AGENDADO (CALENDARIO)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 61, 61, 0.7); /* Usando el texto oscuro traslúcido */
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--blanco);
    margin: 5% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-top: 8px solid var(--acento-rosa); /* Rosa para un toque humano */
}

/* Modal agendar cita (catálogo): permitir scroll cuando el contenido es largo */
#modal-agenda .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    margin: 2% auto;
}

.modal-header-pico h2 {
    color: var(--primario-dorado);
    margin: 10px 0 5px 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.modal-header-pico p {
    color: var(--secundario-azul);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.calendar-icon {
    font-size: 3.5rem;
    color: var(--primario-dorado);
    margin-bottom: 10px;
}

.input-calendario {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--fondo-hueso);
    background-color: var(--fondo-hueso);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--texto-oscuro);
    outline: none;
    transition: all 0.3s;
}

.input-calendario:focus {
    border-color: var(--secundario-azul);
    background-color: white;
}

.btn-confirmar {
    width: 100%;
    background: var(--primario-dorado);
    color: var(--blanco);
    padding: 16px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(150, 124, 59, 0.2);
}

.btn-confirmar:hover {
    background: var(--secundario-azul);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118, 157, 177, 0.3);
}

/* =========================================
   FORMULARIOS INTERNOS DEL PANEL
   ========================================= */
.horario-form {
    background: var(--fondo-hueso);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--suave-arena);
}

.form-row label {
    font-weight: 600;
    color: var(--primario-dorado);
    margin-right: 10px;
}

.nota-seguridad {
    font-size: 0.8rem;
    color: var(--suave-arena);
    margin-top: 15px;
}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000;
}

.perfil-card-detalle {
    background: white; width: 90%; max-width: 500px; max-height: 85vh;
    border-radius: 20px; position: relative; overflow: hidden; animation: fadeIn 0.3s;
}

.perfil-scroll-content {
    padding: 30px; overflow-y: auto; max-height: 85vh;
}

.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-v2 { background: #eef2ff; color: #4f46e5; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; }

.opiniones-scroll {
    background: #f8fafc; padding: 15px; border-radius: 12px; margin-top: 10px;
}

/* --- COMPONENTES DE LA ACADEMIA --- */

.hero-academia {
    background: linear-gradient(rgba(244, 241, 238, 0.8), rgba(244, 241, 238, 0.8)), 
                url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 10%;
    text-align: center;
}

.academia-container {
    padding: 50px 10%;
}

.titulo-seccion {
    border-left: 5px solid var(--primario-rosa);
    padding-left: 15px;
    color: var(--texto-oscuro);
}

.curso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.curso-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid var(--suave-arena);
    display: flex;
    flex-direction: column;
}

.curso-card:hover {
    transform: translateY(-10px);
}

.curso-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.img-ansiedad { background-image: url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=800&q=80'); }

.curso-body {
    padding: 25px;
    flex-grow: 1;
}

.curso-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primario-rosa);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.btn-curso {
    display: block;
    text-align: center;
    background: var(--primario-rosa);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-curso:hover {
    filter: brightness(0.9);
}

.curso-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.curso-botones .btn-curso {
    flex: 1;
    min-width: 120px;
    margin-top: 0;
}

.btn-curso-vermas {
    background: transparent !important;
    color: var(--primario-rosa) !important;
    border: 2px solid var(--primario-rosa);
    cursor: pointer;
    font-size: 1rem;
}

.btn-curso-vermas:hover {
    background: rgba(201, 160, 220, 0.1) !important;
}

/* Modal Ver más - Academia */
.modal-diplomado-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* Ocultar el modal al cargar la página; el atributo [hidden] debe ganar sobre display:flex */
.modal-diplomado-overlay[hidden] {
    display: none !important;
}

.modal-diplomado-box {
    background: white;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-diplomado-img-wrap {
    margin: -28px -28px 20px -28px;
    width: calc(100% + 56px);
    max-width: calc(100% + 56px);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.modal-diplomado-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.modal-diplomado-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

.modal-diplomado-cerrar:hover {
    color: var(--primario-rosa);
}

.modal-diplomado-titulo {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: var(--texto-oscuro);
}

.modal-diplomado-box .curso-tag {
    margin-bottom: 8px;
}

.modal-diplomado-box .curso-fecha {
    margin: 0 0 16px 0;
}

.modal-diplomado-body {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-diplomado-body p {
    margin: 0 0 1em 0;
}

.modal-diplomado-body p:last-child {
    margin-bottom: 0;
}

.curso-fecha {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--texto-oscuro);
    background: var(--suave-arena);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}

.bienvenida-academia {
    padding: 80px 10%;
    background-color: #fff;
    display: flex;
    justify-content: center;
}

.bienvenida-content {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.bienvenida-texto h2 {
    color: var(--texto-oscuro);
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.bienvenida-texto p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.subtitulo {
    color: var(--primario-rosa);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.box-decorativa {
    width: 100%;
    height: 300px;
    background: #f8f6f4;
    border-radius: 30px 0 30px 0;
    border-left: 8px solid var(--primario-rosa);
    position: relative;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .bienvenida-content {
        grid-template-columns: 1fr;
    }
    .bienvenida-decoracion {
        display: none; /* Ocultamos el cuadro en móvil para priorizar texto */
    }
}

.seccion-directora {
    padding: 100px 10%;
    background-color: var(--suave-arena); /* Fondo crema para dar calidez */
    display: flex;
    justify-content: center;
}

.directora-container {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.directora-imagen img {
    width: 100%;
    max-width: 400px;
    height: auto;
    /* Efecto sutil detrás de la foto sin fondo */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.directora-mensaje {
    position: relative;
}

.comillas {
    font-size: 5rem;
    color: var(--primario-rosa);
    font-family: 'Georgia', serif;
    line-height: 0;
    margin-bottom: 20px;
    opacity: 0.4;
}

.directora-mensaje p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--texto-oscuro);
    line-height: 1.8;
    margin-bottom: 30px;
}

.directora-firma h4 {
    margin: 0;
    color: var(--texto-oscuro);
    font-size: 1.4rem;
}

.directora-firma span {
    color: var(--primario-rosa);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Ajuste para móviles */
@media (max-width: 850px) {
    .directora-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .directora-imagen {
        order: 2; /* Texto primero, foto después en móvil */
    }
}

/* Sección de Alejandra con un tono ligeramente distinto o blanco para contrastar */
.seccion-coordinadora {
    padding: 100px 10%;
    background-color: #ffffff; 
    display: flex;
    justify-content: center;
}

/* Clase para invertir el orden en escritorio */
.directora-container.espejo {
    grid-template-columns: 1.5fr 1fr;
}

/* Ajuste de la ruta si las imágenes están en /images */
.directora-imagen img {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* Asegurar que en móvil vuelvan al orden normal de lectura */
@media (max-width: 850px) {
    .directora-container.espejo {
        display: flex;
        flex-direction: column;
    }
    .directora-mensaje {
        order: 1;
    }
    .directora-imagen {
        order: 2;
        margin-top: 30px;
    }
}

.por-que-elegirnos {
    padding: 80px 10%;
    background-color: #fdfdfd;
    text-align: center;
}

.seccion-titulo {
    margin-bottom: 50px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.beneficio-item {
    background: white;
    padding: 40px 25px;
    border-radius: 20px;
    border-bottom: 4px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.beneficio-item:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primario-rosa);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.beneficio-icono {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.beneficio-item h3 {
    font-size: 1.2rem;
    color: var(--texto-oscuro);
    margin-bottom: 15px;
}

.beneficio-item p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
}

/* --- ESTILOS DEL FOOTER (Faltaban estas reglas) --- */
.main-footer {
    padding: 60px 10% 20px;
    margin-top: 50px;
    color: white;
}

.footer-container {
    display: grid;
    /* Esto es lo que crea las 3 columnas */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 10px;
    list-style: none; /* Quita los puntos de la lista */
}

.redes-sociales {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.redes-sociales a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========================================
   DOCUMENTOS DEL PSICÓLOGO
   ======================================== */

.documentos-container {
    padding: 20px;
}

.documentos-header {
    margin-bottom: 24px;
}

.documentos-header h2 {
    margin: 0 0 8px 0;
    color: var(--primario-rosa);
}

.documentos-header p {
    margin: 0 0 16px 0;
    color: #666;
}

.documentos-header-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-subir-archivo, .btn-ordenar-docs {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--suave-arena);
    background: white;
    color: var(--texto-oscuro);
}
.btn-subir-archivo:hover, .btn-ordenar-docs:hover {
    border-color: var(--primario-rosa);
    background: rgba(237, 135, 175, 0.08);
}
.btn-link-archivo {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--secundario-azul);
    border: 1px solid var(--secundario-azul);
}
.btn-link-archivo:hover {
    background: rgba(118, 157, 177, 0.1);
}

.documentos-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    min-height: 500px;
}

.documentos-lista {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.doc-item-tipo {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.doc-item-tipo-texto {
    background: #e0f2fe;
    color: #0369a1;
}
.doc-item-tipo-word {
    background: #fef3c7;
    color: #b45309;
}
.doc-item-tipo-pdf {
    background: #fee2e2;
    color: #b91c1c;
}
.documentos-ordenando .doc-item {
    cursor: grab;
}
.documentos-ordenando .doc-item:active {
    cursor: grabbing;
}
.doc-item-drag-over {
    border-color: var(--primario-rosa);
    background: #fdf2f7;
}

.doc-item:hover {
    background: #fff;
    border-color: var(--primario-rosa);
}

.doc-item-activo {
    background: white;
    border-color: var(--primario-rosa);
    box-shadow: 0 2px 8px rgba(232, 142, 174, 0.2);
}

.doc-item-titulo {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-item-fecha {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}

.documento-editor {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.editor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: #999;
    font-size: 1.1rem;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.input-titulo-doc {
    flex: 1;
    min-width: 200px;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid #eee;
    padding: 8px 4px;
    background: transparent;
    color: #333;
}

.input-titulo-doc:focus {
    outline: none;
    border-bottom-color: var(--primario-rosa);
}

.editor-acciones {
    display: flex;
    gap: 10px;
}

.btn-guardar-doc {
    background: var(--primario-rosa);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-guardar-doc:hover {
    background: #d6769a;
}

.btn-eliminar-doc {
    background: #f8f9fa;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-eliminar-doc:hover {
    background: #e74c3c;
    color: white;
}

.textarea-documento {
    flex: 1;
    min-height: 400px;
    width: 100%;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.textarea-documento:focus {
    outline: none;
    border-color: var(--primario-rosa);
}

.doc-estado-guardado {
    margin: 10px 0 0 0;
    font-size: 0.85rem;
    min-height: 20px;
}

/* ========================================
   RESPONSIVO MÓVIL - PANEL DOCTOR
   ======================================== */

@media (max-width: 768px) {
    /* --- CONTENEDORES GENERALES --- */
    .agenda-container {
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .agenda-card-responsive,
    .dash-card {
        padding: 14px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        box-sizing: border-box !important;
    }

    /* Asegurar que la sección agenda tenga scroll */
    #seccion-agenda {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: none !important;
    }

    .agenda-card-responsive h3 {
        font-size: 1rem !important;
    }

    .agenda-card-responsive p {
        font-size: 0.85rem !important;
    }

    /* --- CHAT / MENSAJES --- */
    .chat-main-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 80vh;
    }

    .chat-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee;
        max-height: 200px;
        overflow-y: auto;
    }

    .chat-window {
        min-height: 400px;
    }

    #chat-messages {
        height: 300px !important;
    }

    .chat-input-area {
        flex-direction: column !important;
    }

    .chat-input-area input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .chat-input-area button {
        width: 100% !important;
    }

    /* --- VIDEO Y NOTAS --- */
    #jitsi-container {
        height: 50vh !important;
    }

    #seccion-video .dash-card {
        padding: 12px !important;
    }

    #notas-textarea,
    #modal-notas-textarea {
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- DOCUMENTOS --- */
    .documentos-container {
        padding: 12px !important;
    }

    .documentos-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .documentos-lista {
        max-height: 200px !important;
        padding: 12px !important;
    }

    .doc-item {
        padding: 10px 12px !important;
    }

    .doc-item-titulo {
        max-width: 140px !important;
        font-size: 0.9rem !important;
    }

    .documento-editor {
        padding: 14px !important;
    }

    .editor-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .input-titulo-doc {
        font-size: 1.1rem !important;
        min-width: 0 !important;
    }

    .editor-acciones {
        justify-content: space-between !important;
    }

    .btn-guardar-doc,
    .btn-eliminar-doc {
        flex: 1 !important;
        text-align: center !important;
    }

    .textarea-documento {
        min-height: 300px !important;
        font-size: 16px !important;
    }

    .editor-placeholder {
        min-height: 200px !important;
        font-size: 1rem !important;
    }

    /* --- AGENDA: FORMULARIOS --- */
    .form-horario-simple {
        width: 100% !important;
        overflow: hidden !important;
    }

    .form-horario-simple .form-row {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .form-horario-simple .form-group {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .form-horario-simple select,
    .form-horario-simple input[type="time"],
    .form-horario-simple input[type="date"],
    .form-horario-simple input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    .form-horario-simple .btn-agregar-bloque,
    .form-horario-simple .btn-bloquear {
        width: 100% !important;
        margin-top: 6px !important;
    }

    /* --- AGENDA: LISTAS --- */
    #lista-horarios,
    #lista-vacaciones {
        overflow: hidden !important;
    }

    .horario-dia {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }

    .horario-dia__nombre {
        width: 100% !important;
        padding-bottom: 4px;
        border-bottom: 1px solid #eee;
    }

    .horario-dia__bloques {
        width: 100% !important;
    }

    .bloque-horario {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
    }

    .bloqueo-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .bloqueo-info {
        width: 100% !important;
    }

    .bloqueo-item .btn-quitar {
        align-self: flex-end;
    }

    /* --- PERFIL DOCTOR --- */
    .form-perfil-doctor {
        gap: 12px !important;
        width: 100% !important;
    }

    .form-group-perfil {
        width: 100% !important;
    }

    .form-group-perfil input {
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #acciones-edicion-doc {
        flex-direction: column !important;
        width: 100% !important;
    }

    #acciones-edicion-doc button {
        width: 100% !important;
    }

    /* Header del perfil */
    .agenda-card-responsive > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .btn-editar-v2 {
        width: 100% !important;
    }
}

/* Pantallas extra pequeñas (menos de 400px) */
@media (max-width: 400px) {
    .agenda-card-responsive,
    .dash-card {
        padding: 10px !important;
    }

    .agenda-card-responsive h3 {
        font-size: 0.95rem !important;
    }

    .form-horario-simple .form-group label {
        font-size: 0.8rem !important;
    }

    .form-horario-simple select,
    .form-horario-simple input[type="time"],
    .form-horario-simple input[type="date"],
    .form-horario-simple input[type="text"] {
        height: 40px !important;
        font-size: 14px !important;
    }

    .btn-agregar-bloque,
    .btn-bloquear {
        height: 40px !important;
        font-size: 0.85rem !important;
        padding: 0 12px !important;
    }

    .form-group-perfil label {
        font-size: 0.8rem !important;
    }

    .form-group-perfil input {
        height: 40px !important;
    }

    .bloque-horario {
        font-size: 0.85rem !important;
    }

    .btn-quitar {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
}
