/* Estilos Generales */
body {
    padding-top: 70px; /* Aumentado para navbar fixed */
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-image: url('/Images/LogoFondo.png');
    background-size: 70%;
    background-position: 80% center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}


.card {
    background-color: none;
}

.main-container {
    padding-top: 20px;
}

.content-col {
    flex: 1;
    padding: 20px;
    /*max-width: 1200px;*/ /* Ajusta este valor según necesites */
    margin: 0 auto; /* Centra el contenido */
    width: 100%;
}

.container {
    max-width: 100%;
}

@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    /* Opcional: si usas sidebar */
    .content-col {
        /*margin-left: 210px;*/ /* Ancho de tu sidebar */
        width: calc(100% - 210px);
    }
}



    /* -------------------------------------------------- */
    /* BARRA DE NAVEGACIÓN - EFECTOS MUY VISIBLES */
    /* -------------------------------------------------- */
    .navbar {
    background-color: #FF6C52 !important;
    border: none !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    min-height: 70px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.navbar-inverse {
    background-color: #FF6C52 !important;
}

    /* Texto del navbar - blanco normal por defecto */
    .navbar-inverse .navbar-brand,
    .navbar-inverse .navbar-nav > li > a {
        color: white !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        font-weight: normal; /* Cambiado de 600 a normal */
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        padding: 15px 20px;
    }

        /* Efecto hover - borde sombra y texto en bold */
        .navbar-inverse .navbar-nav > li > a:hover,
        .navbar-inverse .navbar-nav > li > a:focus {
            color: white !important;
            background-color: transparent !important;
            font-weight: bold !important;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            border-radius: 4px;
        }

            /* Pseudoelemento para el borde inferior en hover */
            .navbar-inverse .navbar-nav > li > a:hover::after,
            .navbar-inverse .navbar-nav > li > a:focus::after {
                content: '';
                position: absolute;
                bottom: 10px;
                left: 20px;
                right: 20px;
                height: 2px;
                background-color: white;
                box-shadow: 0 0 10px white;
            }

    /* Efecto active - mantiene el estilo de hover más indicador de activo */
    .navbar-inverse .navbar-nav > .active > a,
    .navbar-inverse .navbar-nav > .active > a:hover,
    .navbar-inverse .navbar-nav > .active > a:focus {
        color: white !important;
        background-color: rgba(0, 0, 0, 0.1) !important;
        font-weight: bold !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
        transform: translateY(-2px);
    }

        /* Pseudoelemento para el borde inferior en active */
        .navbar-inverse .navbar-nav > .active > a::after,
        .navbar-inverse .navbar-nav > .active > a:hover::after,
        .navbar-inverse .navbar-nav > .active > a:focus::after {
            content: '';
            position: absolute;
            bottom: 10px;
            left: 20px;
            right: 20px;
            height: 3px;
            background-color: white;
            box-shadow: 0 0 15px white;
            animation: pulse 1.5s infinite;
        }


.navbar-collapse {
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none;
    }

        .navbar-collapse.show {
            display: block;
        }
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* -------------------------------------------------- */
/* CONTENIDO PRINCIPAL */
/* -------------------------------------------------- */
main {
    flex: 1;
    display: flex;
}

.content {
    margin-left: 210px;
    padding: 25px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
        padding: 15px;
    }
}

/* -------------------------------------------------- */
/* CALENDARIO TRANSPARENTE */
/* -------------------------------------------------- */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin: 25px auto;
    width: 90%;
    max-width: 480px;
    backdrop-filter: blur(3px);
    padding: 25px;
    border-radius: 12px;
}

.calendar-week {
    display: contents;
}

.day-names {
    display: contents;
}

.day-names .calendar-day {
    background-color: rgba(255, 108, 82, 0.9) !important;
    color: white !important;
    font-weight: bold;
    padding: 15px 0;
    aspect-ratio: 1;
    font-size: 1.1em;
}

.calendar-day {
    padding: 15px 0;
    text-align: center;
    border: 1px solid rgba(221, 221, 221, 0.6);
    background-color: rgba(249, 249, 249, 0.3) !important;
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 1.05em;
    font-weight: 500;
}

.calendar-day.has-appointment {
    background-color: rgba(255, 108, 82, 0.85) !important;
    color: white !important;
    font-weight: 600;
}

.calendar-day.has-appointment:hover {
    background-color: rgba(255, 108, 82, 0.95) !important;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.calendar-day a {
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* -------------------------------------------------- */
/* SECCIÓN DE CITAS */
/* -------------------------------------------------- */
.citas-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(3px);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.citas-container h4 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* Estilo para el contenedor expandido de citas */
.citas-container-expanded {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(3px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

    /* Ajuste para la tabla dentro del contenedor expandido */
    .citas-container-expanded .table {
        width: 100%;
        min-width: 1000px; /* Forza un ancho mínimo para evitar compresión */
    }

/* Ajuste responsivo para pantallas más pequeñas */
@media (max-width: 1200px) {
    .citas-container-expanded {
        margin-left: 10px;
        margin-right: 10px;
    }

        .citas-container-expanded .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
}

/* -------------------------------------------------- */
/* TABLAS */
/* -------------------------------------------------- */
.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.table th {
    text-align: center;
    background-color: #FF6C52 !important;
    color: white !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #f3f1f1;
}

/* -------------------------------------------------- */
/* FORMULARIOS */
/* -------------------------------------------------- */
input, select, textarea {
    max-width: 280px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input.form-controlw-100 {
    max-width: 100%;
}

.form-row > .col-md-4 {
    margin-bottom: 15px;
}

/* -------------------------------------------------- */
/* BOTONES */
/* -------------------------------------------------- */
.btn-block {
    width: 100%;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* -------------------------------------------------- */
/* RESPONSIVE ADJUSTMENTS */
/* -------------------------------------------------- */
@media (max-width: 1200px) {
    #calendar {
        width: 95%;
    }
}

@media (max-width: 992px) {
    #calendar {
        padding: 20px;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    #calendar {
        width: 100%;
        gap: 8px;
        padding: 18px;
    }
    
    .calendar-day {
        font-size: 0.95em;
    }
    
    .navbar-inverse .navbar-nav > li > a {
        padding: 12px 15px;
        margin: 0 2px;
    }
}

@media (max-width: 576px) {
    #calendar {
        gap: 6px;
        padding: 15px;
    }
    
    .calendar-day,
    .day-names .calendar-day {
        padding: 10px 0;
        font-size: 0.9em;
    }
    
    body {
        padding-top: 60px;
    }
    
    .navbar-inverse .navbar-nav > li > a {
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* -------------------------------------------------- */
/* SECCION ABOUT */
/* -------------------------------------------------- */
/* About Page - Card Design */
.about-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.about-hero {
    position: relative;
    height: 400px;
    background-image: url('/images/mental-health-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 15px;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-content .lead {
        font-size: 1.5rem;
        font-weight: 300;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

/* Philosophy Section */
.philosophy-section {
    padding: 60px 0;
    background-color: #FF6C52;
    color: white;
    margin-bottom: 60px;
}

.philosophy-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

    .philosophy-card h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .philosophy-card i {
        margin-right: 15px;
    }

/* Services Showcase */
.services-showcase {
    padding: 80px 0;
    background-color: none;/*#f9f9f9*/
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

.card-header {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 108, 82, 0.85);
}

.card-header i {
    position: relative;
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-header h3 {
    position: relative;
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 25px;
}

    .card-body p {
        color: #666;
        margin-bottom: 20px;
    }

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

    .service-features li {
        margin-bottom: 10px;
        padding-left: 25px;
        position: relative;
        color: #555;
    }

    .service-features i {
        position: absolute;
        left: 0;
        top: 3px;
        color: #FF6C52;
    }

.card-footer {
    padding: 0 25px 25px 25px;
    text-align: center;
}

.btn-service {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF6C52;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #FF6C52;
}

    .btn-service:hover {
        background-color: transparent;
        color: #FF6C52;
    }

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: none;/*white;*/
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

    .team-card:hover {
        transform: translateY(-10px);
    }

.team-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
}

    .team-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.team-card:hover .team-photo img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 108, 82, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .photo-overlay {
    opacity: 1;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

    .social-links a:hover {
        transform: translateY(-5px);
    }

.team-info {
    padding: 25px;
    text-align: center;
}

    .team-info h3 {
        color: #333;
        margin-bottom: 5px;
        font-size: 1.4rem;
    }

.specialty {
    color: #FF6C52;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.bio {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .lead {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .philosophy-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}


@media (min-width: 769px) {
    .content-col {
        padding-left: 40px;
        padding-right: 40px;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra horizontalmente */
        justify-content: center;
    }
}

/* Para móviles */
@media (max-width: 768px) {
    .content-col {
        padding: 15px;
        width: 100%;
        margin-left: 0;
    }

        .content-col.sidebar-open {
            margin-left: 0; /* Eliminamos el margen izquierdo en móvil */
        }
}

/* -------------------------------------------------- */
/* Estilos reutilizables para menús */
/* -------------------------------------------------- */
/* Estilos reutilizables para menús - Versión corregida */
.menu-container {
    padding: 2rem 0;
}

.menu-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2rem;
}

.menu-options {
    gap: 1.5rem;
}

.menu-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

    .menu-card .card {
        transition: all 0.3s ease;
        border: none;
        border-radius: 10px;
        background-color: #f8f9fa;
        border: 1px solid rgba(0,0,0,0.1);
        height: 100%;
    }

    /* Efecto hover corregido */
    .menu-card:hover .card {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        background-color: rgba(255, 108, 82, 0.7); /* Color directamente en el card */
    }

    /* Contenido que permanece visible */
    .menu-card .card-body {
        position: relative;
        z-index: 2; /* Aseguramos que el contenido esté por encima */
    }

    .menu-card .card-title {
        color: #2c3e50;
        font-weight: 500;
        margin-top: 1rem;
        transition: color 0.3s ease;
    }

    .menu-card:hover .card-title {
        color: white; /* Texto blanco en hover */
    }

.menu-icon {
    max-height: 120px;
    width: auto;
    margin-bottom: 1rem;
    transition: filter 0.3s ease;
}

/* Opcional: efecto de brillo en la imagen al hacer hover */
.menu-card:hover .menu-icon {
    filter: brightness(1.1);
}

/* Variantes de color para diferentes menús */
.menu-card.primary .card {
    border-top: 4px solid #3498db;
}

.menu-card.success .card {
    border-top: 4px solid #2ecc71;
}

.menu-card.warning .card {
    border-top: 4px solid #f39c12;
}

.menu-card.danger .card {
    border-top: 4px solid #e74c3c;
}


/* -------------------------------------------------- */
/* UTILIDADES */
/* -------------------------------------------------- */
.mt-4 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}



/* -------------------------------------------------- */
/* RESPONSIVE DE CAJAS DE TEXTOS */
/* -------------------------------------------------- */

/* Estilos base para labels */
.col-form-label {
    font-weight: bold;
    white-space: nowrap;
    padding-right: 10px;
    font-size: 14px;
}
/* Ajustes para pantallas medianas y pequeñas */
@media (max-width: 992px) {
    .col-form-label {
        min-width: 100px;
        font-size: 13px;
    }
}
/* Ajustes específicos para móviles */
@media (max-width: 768px) {
    .form-group.row {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .col-form-label {
        text-align: left !important;
        margin-bottom: 5px;
        white-space: normal; /* Permite múltiples líneas si es necesario */
        min-width: 100%;
    }

    .col-md-8, .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0;
    }
}
/* Para pantallas muy pequeñas */
@media (max-width: 576px) {
    .col-form-label {
        font-size: 12px;
    }
}
