/* ESTILOS PARA PÁGINAS INTERNAS */

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SCHEDULE GRID */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.schedule-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.1));
    border: 2px solid rgba(255, 107, 53, 0.3);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.schedule-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.25);
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.15));
}

.schedule-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.schedule-card .time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.schedule-card .description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.schedule-grid .schedule-card:last-child {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* CLASSES GRID */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.class-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.1));
    border: 2px solid rgba(255, 107, 53, 0.3);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.class-card:hover::before {
    left: 100%;
}

.class-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 18px 45px rgba(255, 107, 53, 0.3);
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(247, 147, 30, 0.18));
}

.class-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.class-card:hover .class-icon {
    transform: scale(1.2) rotateY(360deg);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
}

.class-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.class-card p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.class-card .level {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* BOTONES */
.book-btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.book-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255, 107, 53, 0.3);
    color: rgba(255, 107, 53, 0.3);
}

/* CONTACT SECTION */
.contact-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.15));
    border: 2px solid rgba(255, 107, 53, 0.3);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-top: 3rem;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .page-content {
        padding: 5rem 1rem 2rem;
    }

    .schedule-grid,
    .classes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .class-card:hover {
        transform: translateY(-8px) scale(1);
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }

    /* MODAL RESPONSIVE */
    .modal-content {
        width: 90%;
        max-height: 80vh;
    }

    .modal-detalles {
        max-height: 70vh;
    }

    .modal-body {
        padding-bottom: 5rem; /* Espacio adicional para evitar superposición */
        max-height: calc(80vh - 140px);
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    .modal-footer {
        padding: 1.2rem;
        position: sticky;
        bottom: 0;
        background: linear-gradient(to top, rgba(20, 22, 27, 0.98), rgba(20, 22, 27, 0.95));
        backdrop-filter: blur(10px);
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
    }

    /* Ajustar altura para modales con mucho contenido */
    #detalles-personal .modal-body {
        padding-bottom: 6rem;
        max-height: calc(80vh - 130px);
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .schedule-card,
    .class-card {
        padding: 1.5rem 1rem;
    }

    .class-icon {
        font-size: 2.5rem;
    }

    .book-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .detalle-seccion h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding-bottom: 7rem; /* Espacio adicional para evitar superposición con botones */
        max-height: calc(85vh - 160px); /* Altura ajustada considerando header y footer */
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        position: sticky;
        bottom: 0;
        background: linear-gradient(to top, rgba(20, 22, 27, 0.98), rgba(20, 22, 27, 0.95));
        backdrop-filter: blur(10px);
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
    }

    /* Ajustes específicos para modal de entrenamiento personalizado en móvil */
    #detalles-personal .modal-body {
        padding-bottom: 8rem;
        max-height: calc(85vh - 150px);
    }

    /* Reducir espaciado entre secciones en móvil */
    .detalle-seccion {
        margin-bottom: 1.8rem;
    }

    .detalle-seccion h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .detalle-seccion li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .btn-agendar,
    .btn-cerrar {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: none;
        width: 100%;
    }

    .btn-agendar {
        margin-bottom: 0.5rem;
    }
}

/* MODAL DE DETALLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-content {
    background: linear-gradient(135deg, #1a1f35, #2d3456);
    margin: auto;
    margin-top: 3%;
    padding: 0;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    width: 85%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
    animation: slideInModal 0.35s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.modal-icon {
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.modal-header h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.descripcion-principal {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
}

.detalle-seccion {
    margin-bottom: 2.5rem;
}

.detalle-seccion h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detalle-seccion ul {
    list-style: none;
    padding: 0;
}

.detalle-seccion li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.detalle-seccion li:hover {
    color: var(--secondary-color);
}

.detalle-seccion li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.detalle-seccion p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
    border-radius: 0 0 20px 20px;
    justify-content: center;
}

.btn-agendar,
.btn-cerrar {
    padding: 0.9rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-agendar {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    flex: 1;
    max-width: 250px;
}

.btn-agendar:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

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

.btn-cerrar {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    max-width: 150px;
}

.btn-cerrar:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Scroll personalizado en el modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 20px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.4);
    border-radius: 20px;
    transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.6);
}