/**
 * Estilos de la Plataforma de Clases Online - Cele Campos Bona Yoga
 * Usado en: mis-clases.html, ingresar.html, clases-grabadas.html
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --bordo: #800020;
    --bordo-claro: #a0334d;
    --bordo-oscuro: #5a1020;
    --crema: #faf9f7;
    --dorado: #d4a574;
    --gris-texto: #555;
    --gris-claro: #888;
    --blanco: #ffffff;
    --error-bg: #ffe6e6;
    --error-color: #c00;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--crema);
    min-height: 100vh;
    color: var(--gris-texto);
    /* Textura sutil elegante */
    background-image:
        radial-gradient(circle at 20% 80%, rgba(128, 0, 32, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 0, 32, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 165, 116, 0.03) 0%, transparent 30%);
    background-attachment: fixed;
}

a {
    color: var(--bordo);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Header / Hero
   ========================================================================== */
.plataforma-header,
.clases-header,
.login-hero,
.clases-hero {
    background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-oscuro) 100%);
    color: var(--blanco);
    position: relative;
}

.login-hero,
.clases-hero {
    overflow: hidden;
}

.plataforma-header {
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-hero,
.clases-hero {
    padding: 2rem 1.5rem 3rem;
    text-align: center;
}

/* Login Hero Compacto - sin scroll */
.login-hero.login-hero-compact {
    padding: 0.8rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.login-hero-compact .login-logo-link {
    display: block;
}

.login-hero-compact .login-logo-link img {
    height: 38px;
    transition: opacity 0.2s;
}

.login-hero-compact .login-logo-link:hover img {
    opacity: 0.85;
}

.login-hero-compact h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo img {
    height: 60px;
}

.header-logo h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Navigation */
.plataforma-nav,
.login-nav,
.clases-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.plataforma-nav .logo img,
.login-nav .logo img,
.clases-nav .logo img {
    height: 100px;
    margin-bottom: 0.5rem;
}

.plataforma-nav .nav-link,
.login-nav .nav-link,
.clases-nav .nav-link {
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.plataforma-nav .nav-link:hover,
.login-nav .nav-link:hover,
.clases-nav .nav-link:hover {
    color: white;
    text-decoration: none;
}

/* Login Link en Nav - a la derecha */
.clases-nav .nav-login-link,
.plataforma-nav .nav-login-link,
.login-nav .nav-login-link {
    left: auto !important;
    right: 0 !important;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.clases-nav .nav-login-link:hover,
.plataforma-nav .nav-login-link:hover,
.login-nav .nav-login-link:hover {
    background: rgba(255,255,255,0.25);
}

/* Hero Content */
.hero-content,
.login-hero-content,
.clases-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1,
.login-hero h1,
.clases-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.clases-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p,
.login-hero p,
.clases-hero p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin: 0;
}

.clases-hero p {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.clases-hero p.destacado {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Header User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.15);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.user-menu-toggle:hover {
    background: rgba(0,0,0,0.2);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.user-info {
    text-align: right;
}

.user-email {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-expiry {
    font-size: 0.8rem;
    opacity: 0.85;
}

.menu-arrow {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.user-menu.open .menu-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--gris-texto);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--crema);
    color: var(--bordo);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--bordo);
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary,
.btn-login,
.btn-clases {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bordo);
    color: white;
    border: 2px solid var(--bordo);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.2);
    text-decoration: none;
}

.btn-primary:hover,
.btn-login:hover,
.btn-clases:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(128, 0, 32, 0.3);
    background: var(--bordo-oscuro);
    text-decoration: none;
    color: white;
}

.btn-primary:disabled,
.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login {
    width: 100%;
}

.btn-clases.secondary {
    background: white;
    color: var(--bordo);
    border: 2px solid var(--bordo);
}

.btn-clases.secondary:hover {
    background: var(--crema);
    color: var(--bordo);
}

.btn-clases svg {
    width: 20px;
    height: 20px;
}

.btn-back {
    background: var(--dorado);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-clear-filters {
    background: transparent;
    color: var(--bordo);
    border: 2px solid var(--bordo);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.btn-clear-filters:hover {
    background: var(--bordo);
    color: white;
}

/* Botones Container */
.botones-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.boton-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.boton-nota {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--bordo);
    margin-bottom: 0.5rem;
}

.welcome-message {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

.welcome-message span {
    color: var(--bordo);
    font-weight: 600;
}

/* Frase del día */
.frase-del-dia {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #4a4a4a;
    max-width: 550px;
    margin: 0.6rem auto 0;
    line-height: 1.4;
}

/* Contenido de la card del dashboard */
.dashboard-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.25rem;
}

.dashboard-card-content h3 {
    margin: 0;
}

/* Badge de tiempo restante con relojito */
.tiempo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #333;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tiempo-badge svg {
    flex-shrink: 0;
    color: #555;
}

.tiempo-badge.pronto {
    background: rgba(233, 168, 32, 0.2);
    color: #b07800;
    border-color: rgba(233, 168, 32, 0.3);
}

.tiempo-badge.pronto svg {
    color: #b07800;
}

.tiempo-badge.urgente {
    background: rgba(220, 53, 69, 0.15);
    color: #c82333;
    border-color: rgba(220, 53, 69, 0.3);
}

.tiempo-badge.urgente svg {
    color: #c82333;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-section,
.login-form-section {
    background: var(--crema);
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Form section compacto para login */
.login-page .login-form-section {
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 140px);
    align-items: center;
}

.login-page .login-form-container {
    padding: 2rem;
}

.form-container,
.login-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.1);
    max-width: 450px;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bordo);
}

/* Error Message */
.error-message {
    background: var(--error-bg);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Form Links */
.form-links,
.login-links {
    text-align: center;
    margin-top: 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
}

.form-links a,
.login-links a {
    color: var(--bordo);
    text-decoration: none;
    font-weight: 600;
}

.form-links a:hover,
.login-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Filters
   ========================================================================== */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(128, 0, 32, 0.08);
    margin-bottom: 2rem;
}

.filters-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bordo);
    margin-bottom: 1rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gris-texto);
    margin-bottom: 0.4rem;
}

.filter-group select {
    padding: 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--bordo);
}

/* ==========================================================================
   Categories Grid - Modernizado 2025
   ========================================================================== */
.categories-section {
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 40px rgba(128, 0, 32, 0.06), 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.03) 0%, transparent 60%);
    border-radius: 0 20px 0 100%;
    transition: all 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(128, 0, 32, 0.12), 0 8px 25px rgba(0, 0, 0, 0.08);
}

.category-card:hover::before {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.06) 0%, transparent 60%);
}

.category-card-all {
    cursor: pointer;
    background: linear-gradient(135deg, var(--crema) 0%, white 100%);
    border: 2px dashed var(--bordo-claro);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-card-all:hover {
    border-style: solid;
    background: white;
}

/* Icono grande de fondo (watermark) */
.category-card .category-icon {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-oscuro) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.25);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.35);
}

.category-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Category image (reemplaza category-icon con foto) */
.category-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.category-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image {
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.25);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

/* Icono watermark grande */
.category-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    opacity: 0.04;
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.4s ease;
}

.category-card:hover::after {
    opacity: 0.08;
    transform: scale(1.1);
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.category-subtitle {
    font-size: 0.9rem;
    color: var(--gris-claro);
    margin: 0;
}

/* === Cards Expandibles de Categorías === */
.categories-grid-expandable {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.category-card-expandable {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card-expandable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(128, 0, 32, 0.12), 0 6px 16px rgba(0, 0, 0, 0.06);
}

.category-card-expandable .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.category-card-expandable .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card-expandable:hover .card-image img {
    transform: scale(1.08);
}

.card-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.category-card-expandable.expanded .card-title-bar {
    border-bottom-color: rgba(128, 0, 32, 0.1);
}

.card-title-bar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-chevron {
    color: var(--bordo);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-card-expandable.expanded .card-chevron {
    transform: rotate(180deg);
}

.card-expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.category-card-expandable.expanded .card-expand-content {
    max-height: 600px;
}

.card-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 1rem 1.25rem;
    background: rgba(128, 0, 32, 0.02);
    border-bottom: 1px solid rgba(128, 0, 32, 0.06);
}

.card-description strong {
    color: var(--bordo);
}

.category-card-expandable .category-options {
    padding: 1rem 1.25rem;
}

@media (max-width: 768px) {
    .categories-grid-expandable {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .category-card-expandable .card-image {
        height: 140px;
    }

    .card-title-bar h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .categories-grid-expandable {
        grid-template-columns: 1fr;
    }
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Opciones como botones interactivos */
.category-option {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    color: var(--gris-texto);
    border: 1px solid transparent;
    padding: 0.875rem 1.1rem;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.category-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--bordo);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.category-option:hover {
    background: white;
    border-color: rgba(128, 0, 32, 0.15);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.1);
}

.category-option:hover::before {
    transform: scaleY(1);
}

.category-option:active {
    transform: translateX(8px) scale(0.98);
}

.category-option .option-name {
    font-weight: 600;
    color: var(--bordo);
    transition: color 0.25s ease;
}

.category-option:hover .option-name {
    color: var(--bordo-oscuro);
}

/* Badges modernos para el contador */
.category-option .option-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bordo);
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.08) 0%, rgba(128, 0, 32, 0.12) 100%);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.category-option:hover .option-count {
    background: var(--bordo);
    color: white;
    transform: scale(1.05);
}

/* Flecha que aparece en hover */
.category-option::after {
    content: '\2192';
    position: absolute;
    right: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.25s ease;
    color: var(--bordo);
    font-size: 1.1rem;
}

.category-option:hover::after {
    opacity: 1;
    transform: translateX(0);
    right: 0.75rem;
}

.category-option:hover .option-count {
    margin-right: 1.5rem;
}

.category-empty {
    font-size: 0.9rem;
    color: var(--gris-claro);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* ==========================================================================
   Videos Section with Header
   ========================================================================== */
.videos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    color: var(--bordo);
    border: 1.5px solid var(--bordo);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-volver svg {
    width: 14px;
    height: 14px;
}

.btn-volver:hover {
    background: var(--bordo);
    color: white;
}

.current-filter {
    background: var(--crema);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.current-filter span {
    color: var(--gris-claro);
    font-weight: 500;
}

/* ==========================================================================
   Videos Grid
   ========================================================================== */
.videos-section {
    margin-top: 2rem;
}

.videos-count {
    font-size: 1rem;
    color: #666;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Video Card */
.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(128, 0, 32, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
}

/* Staggered animation delays for video cards */
.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }
.video-card:nth-child(7) { animation-delay: 0.35s; }
.video-card:nth-child(8) { animation-delay: 0.4s; }
.video-card:nth-child(9) { animation-delay: 0.45s; }

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 60px rgba(128, 0, 32, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Decorative accent on hover */
.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bordo), var(--dorado));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover::after {
    opacity: 1;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-oscuro) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-thumbnail svg {
    width: 60px;
    height: 60px;
    color: white;
    opacity: 0.8;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.08);
}

.duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(50, 50, 50, 0.9) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-oscuro) 100%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(128, 0, 32, 0.4);
}

.video-card:hover .play-overlay {
    background: linear-gradient(135deg, var(--bordo-claro) 0%, var(--bordo) 100%);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(128, 0, 32, 0.5);
}

.play-overlay svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bordo);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: var(--bordo-oscuro);
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.video-tag {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.06) 0%, rgba(128, 0, 32, 0.1) 100%);
    color: var(--bordo);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.video-card:hover .video-tag {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.1) 0%, rgba(128, 0, 32, 0.15) 100%);
}

/* ==========================================================================
   Video Player Modal
   ========================================================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.show {
    display: flex;
}

.video-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.video-modal-header {
    background: var(--bordo);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.video-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-body {
    padding: 0;
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-info {
    padding: 2rem;
}

/* Modal limpio sin comentarios - más enfocado en el video */
.video-modal.video-modal-clean .video-modal-content {
    max-width: 1100px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal.video-modal-clean .btn-close-modal {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-modal.video-modal-clean .btn-close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Botón de pantalla completa */
.video-modal.video-modal-clean .btn-fullscreen-modal {
    position: absolute;
    top: 0.75rem;
    right: 3.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-modal.video-modal-clean .btn-fullscreen-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Estilos para cuando el modal está en pantalla completa */
.video-modal-content:fullscreen {
    display: flex;
    flex-direction: column;
    background: #000;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
}

.video-modal-content:fullscreen .video-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content:fullscreen .video-player-container {
    width: 100%;
    height: 100%;
}

.video-modal-content:fullscreen .video-player-container iframe {
    width: 100%;
    height: 100%;
}

.video-modal-content:fullscreen .btn-close-modal,
.video-modal-content:fullscreen .btn-fullscreen-modal {
    position: fixed;
}

/* Webkit fullscreen (Safari) */
.video-modal-content:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    background: #000;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
}

.video-modal-content:-webkit-full-screen .video-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content:-webkit-full-screen .video-player-container {
    width: 100%;
    height: 100%;
}

.video-modal-content:-webkit-full-screen .video-player-container iframe {
    width: 100%;
    height: 100%;
}

.video-modal.video-modal-clean .video-modal-body {
    background: #000;
}

.video-modal.video-modal-clean .video-modal-info {
    padding: 1.25rem 1.5rem;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.video-modal.video-modal-clean .video-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--bordo);
}

.video-modal.video-modal-clean .video-meta {
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================================================
   Info Sections
   ========================================================================== */
.clases-info {
    background: var(--crema);
    padding: 4rem 1.5rem;
}

.clases-image {
    max-width: 400px;
    width: 100%;
    margin: 0 auto 2rem;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.aviso-integracion {
    background: white;
    padding: 2rem;
    text-align: center;
    max-width: 700px;
    margin: 3rem auto 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.08);
}

.aviso-integracion p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--gris-texto);
    margin: 0;
    line-height: 1.7;
}

.aviso-integracion strong {
    color: var(--bordo);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.plataforma-footer,
.login-footer,
.clases-footer {
    background: var(--crema);
    padding: 2rem;
    text-align: center;
}

.plataforma-footer p,
.login-footer p,
.clases-footer p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--gris-claro);
}

.plataforma-footer a,
.login-footer a,
.clases-footer a {
    color: var(--bordo);
    text-decoration: none;
}

.logos-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

.logos-footer img {
    height: 40px;
    opacity: 0.6;
}

/* ==========================================================================
   Loading & Empty States
   ========================================================================== */
.loading,
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.loading {
    font-size: 1.1rem;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--bordo);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Notebooks pequeñas y tablets grandes */
@media (max-width: 1400px) {
    .clases-hero h1 {
        font-size: 2.6rem;
    }

    .clases-hero p {
        font-size: 1.05rem;
    }

    .clases-hero p.destacado {
        font-size: 1.15rem;
    }

    .clases-nav .logo img {
        height: 85px;
    }

    .compra-card {
        max-width: 380px;
    }

    .precio-valor {
        font-size: 2.8rem;
    }
}

/* Tablets y notebooks muy pequeñas */
@media (max-width: 1200px) {
    .clases-hero {
        padding: 2.5rem 1.5rem 3rem;
    }

    .clases-hero h1 {
        font-size: 2.3rem;
    }

    .clases-hero p {
        font-size: 1rem;
    }

    .clases-nav .logo img {
        height: 75px;
    }

    .compra-header h2 {
        font-size: 1.4rem;
    }

    .precio-valor {
        font-size: 2.5rem;
    }

    .compra-beneficios li {
        font-size: 0.95rem;
    }
}

/* iPads y tablets */
@media (max-width: 1024px) {
    .clases-hero {
        padding: 2rem 1.5rem 2.5rem;
    }

    .clases-hero h1 {
        font-size: 2.1rem;
    }

    .clases-nav .logo img {
        height: 70px;
    }

    .clases-nav .nav-link {
        font-size: 0.8rem;
    }

    .descripcion-container {
        padding: 2rem 1.5rem;
    }

    .compra-card {
        max-width: 350px;
    }

    .precio-valor {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo {
        justify-content: flex-start;
    }

    .header-logo h1 {
        font-size: 1.2rem;
    }

    /* Ocultar toggle desktop, mostrar hamburguesa */
    .user-menu-toggle {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Dropdown en mobile: posición fija desde abajo */
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        min-width: 100%;
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }

    .user-dropdown.show {
        transform: translateY(0);
    }

    .dropdown-item {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        justify-content: center;
    }

    .dropdown-item svg {
        width: 22px;
        height: 22px;
    }

    .page-title h2 {
        font-size: 2.2rem;
    }

    /* Section Header - Volver + Título */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header h3 {
        font-size: 1.4rem;
    }

    .btn-volver {
        width: 100%;
        justify-content: center;
    }

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

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

    .video-modal {
        padding: 1rem;
    }

    .video-modal-content {
        max-height: 95vh;
    }

    .main-content {
        padding: 0 1rem;
    }

    /* Categories en mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .category-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .category-option:hover {
        transform: translateX(4px);
    }
}

@media (max-width: 600px) {
    .login-hero h1,
    .clases-hero h1,
    .hero-content h1 {
        font-size: 2rem;
    }

    .clases-hero h1 {
        font-size: 2.2rem;
    }

    .clases-hero p {
        font-size: 1rem;
    }

    .clases-hero p.destacado {
        font-size: 1.1rem;
    }

    .form-container,
    .login-form-container {
        padding: 2rem 1.5rem;
    }

    /* Solo "Volver al sitio" se hace estático, Login permanece a la derecha */
    .plataforma-nav .nav-link:not(.nav-login-link),
    .login-nav .nav-link:not(.nav-login-link),
    .clases-nav .nav-link:not(.nav-login-link) {
        position: static;
        order: -1;
        margin-bottom: 1rem;
    }

    /* Login sigue en posición absoluta a la derecha */
    .clases-nav .nav-login-link,
    .plataforma-nav .nav-login-link,
    .login-nav .nav-login-link {
        position: absolute;
        top: 0;
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .btn-clases {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .botones-container {
        padding: 0 1rem;
    }

    .clases-image {
        max-width: 300px;
        margin: 0 auto 1.5rem;
    }
}

/* ==========================================================================
   Sección de Compra (clases-grabadas.html)
   ========================================================================== */

/* Descripción */
.clases-descripcion {
    background: white;
    padding: 4rem 1.5rem;
}

.descripcion-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.descripcion-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--bordo);
    margin-bottom: 1rem;
}

.descripcion-container > p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--gris-texto);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Beneficios Grid */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.beneficio-item {
    text-align: center;
    padding: 1.5rem;
}

.beneficio-icon {
    width: 60px;
    height: 60px;
    background: var(--crema);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.beneficio-icon svg {
    width: 28px;
    height: 28px;
    color: var(--bordo);
}

.beneficio-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--bordo);
    margin-bottom: 0.5rem;
}

.beneficio-item p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--gris-texto);
    line-height: 1.5;
    margin: 0;
}

/* Sección Compra */
.clases-compra {
    background: var(--crema);
    padding: 4rem 1.5rem;
}

.compra-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Card de Compra */
.compra-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(128, 0, 32, 0.12);
    overflow: hidden;
}

.compra-header {
    background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-oscuro) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.compra-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.compra-precio {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.precio-valor {
    font-family: 'Nunito', sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.precio-periodo {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Lista de Beneficios en Card */
.compra-beneficios {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.compra-beneficios ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compra-beneficios li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--gris-texto);
    padding: 0.6rem 0;
}

.compra-beneficios li svg {
    width: 20px;
    height: 20px;
    color: var(--bordo);
    flex-shrink: 0;
}

/* Formulario de Compra */
.compra-form {
    padding: 2rem;
}

.compra-form .form-group {
    margin-bottom: 1.5rem;
}

.compra-form .form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gris-claro);
}

/* Botón Comprar */
.btn-comprar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--bordo);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.25);
}

.btn-comprar:hover {
    background: var(--bordo-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(128, 0, 32, 0.35);
}

.btn-comprar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-comprar svg {
    width: 22px;
    height: 22px;
}

/* Spinner animado */
.btn-comprar .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Indicador de pago seguro */
.compra-seguro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--gris-claro);
}

.compra-seguro svg {
    width: 18px;
    height: 18px;
    color: var(--dorado);
}

/* Ya tenés cuenta */
.ya-tenes-cuenta {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
}

.ya-tenes-cuenta p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--gris-texto);
    margin-bottom: 1rem;
}

/* Mensaje de Pago Exitoso */
.pago-exitoso {
    background: white;
    padding: 4rem 1.5rem;
}

.pago-exitoso-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.pago-exitoso-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.pago-exitoso-icon svg {
    width: 45px;
    height: 45px;
    color: white;
}

.pago-exitoso h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--bordo);
    margin-bottom: 1rem;
}

.pago-exitoso p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--gris-texto);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.pago-exitoso-nota {
    font-size: 0.95rem !important;
    color: var(--gris-claro) !important;
    margin-top: 1rem !important;
}

.pago-exitoso .btn-clases {
    margin-top: 2rem;
}

/* Error en sección de compra */
.compra-card .error-message {
    margin: 0 2rem 1rem;
    display: none;
}

/* ==========================================================================
   Responsive - Sección Compra
   ========================================================================== */
@media (max-width: 900px) {
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .clases-descripcion {
        padding: 3rem 1rem;
    }

    .descripcion-container h2 {
        font-size: 1.8rem;
    }

    .descripcion-container > p {
        font-size: 1rem;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .beneficio-item {
        padding: 1rem;
    }

    .clases-compra {
        padding: 2rem 1rem;
    }

    .compra-header {
        padding: 1.5rem;
    }

    .compra-header h2 {
        font-size: 1.5rem;
    }

    .precio-valor {
        font-size: 2.5rem;
    }

    .compra-beneficios,
    .compra-form {
        padding: 1.5rem;
    }

    .btn-comprar {
        font-size: 1.05rem;
        padding: 1rem 1.5rem;
    }

    .pago-exitoso {
        padding: 3rem 1rem;
    }

    .pago-exitoso h2 {
        font-size: 1.6rem;
    }

    .pago-exitoso p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Ficha Personal
   ========================================================================== */

.ficha-content {
    max-width: 800px;
}

.ficha-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.ficha-intro h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--bordo);
    margin-bottom: 0.5rem;
}

.ficha-intro p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--gris-texto);
}

.ficha-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.1);
}

.ficha-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.ficha-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.ficha-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--bordo);
    margin-bottom: 1rem;
}

.section-note {
    font-size: 0.9rem;
    color: var(--gris-claro);
    margin-bottom: 1rem;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.ficha-form .form-group {
    margin-bottom: 1rem;
}

.ficha-form label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.ficha-form input,
.ficha-form select,
.ficha-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.ficha-form input:focus,
.ficha-form select:focus,
.ficha-form textarea:focus {
    outline: none;
    border-color: var(--bordo);
}

.ficha-form input[readonly] {
    background: #f5f5f5;
    color: #666;
}

.ficha-form textarea {
    resize: vertical;
    min-height: 60px;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-option input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-option span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.ficha-compromiso {
    background: var(--crema);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.ficha-submit {
    margin-top: 2rem;
    text-align: center;
}

.ficha-submit .btn-primary {
    min-width: 250px;
}

/* Responsive */
@media (max-width: 768px) {
    .ficha-form {
        padding: 1.5rem;
    }

    .form-row,
    .form-row.three-cols {
        grid-template-columns: 1fr;
    }

    .ficha-intro h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Dashboard Section - Modernizado 2025
   ========================================================================== */

.dashboard-section {
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(128, 0, 32, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }

.dashboard-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(128, 0, 32, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-oscuro) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dashboard-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dashboard-card:hover .dashboard-card-image img {
    transform: scale(1.1);
}

.dashboard-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.dashboard-card:hover .dashboard-card-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.dashboard-card-overlay svg {
    width: 70px;
    height: 70px;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.dashboard-card:hover .dashboard-card-overlay svg {
    transform: scale(1.15);
}

.dashboard-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #333;
    padding: 1.25rem 1.5rem 0.5rem;
    margin: 0;
    transition: color 0.3s ease;
}

.dashboard-card:hover h3 {
    color: var(--bordo);
}

.dashboard-card p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--gris-texto);
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.5;
}

/* Card Locked (sin acceso) */
.dashboard-card-locked {
    opacity: 0.85;
    cursor: pointer;
}

.dashboard-card-locked .dashboard-card-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(30, 30, 30, 0.75) 100%);
}

.dashboard-card-locked:hover .dashboard-card-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(30, 30, 30, 0.65) 100%);
}

/* Card Unlocked (con acceso) */
.dashboard-card-unlocked {
    cursor: pointer;
}

.dashboard-card-unlocked .dashboard-card-overlay {
    background: transparent;
}

.dashboard-card-unlocked:hover .dashboard-card-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Card Secondary (Ficha Personal) */
.dashboard-card-secondary {
    background: linear-gradient(135deg, var(--crema) 0%, white 100%);
    border: 2px dashed var(--bordo-claro);
}

.dashboard-card-secondary:hover {
    border-style: solid;
    background: white;
}

/* Card Completada (Ficha Personal completada) */
.dashboard-card-completed {
    background: white;
    border: 2px solid rgba(128, 0, 32, 0.2);
}

.dashboard-card-completed:hover {
    background: linear-gradient(135deg, white 0%, var(--crema) 100%);
    border-color: var(--bordo);
}

.dashboard-card-icon {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.03) 0%, transparent 100%);
}

.dashboard-card-icon svg {
    width: 60px;
    height: 60px;
    color: var(--bordo);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dashboard-card:hover .dashboard-card-icon svg {
    transform: scale(1.15) rotate(-5deg);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #333;
    margin: 0;
}

.clases-pregrabadas-section {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-card-image {
        height: 160px;
    }

    .dashboard-card-icon {
        height: 110px;
    }

    .dashboard-card h3 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Clases Zoom - Grid de Videos
   ========================================================================== */

.clases-zoom-section {
    margin-top: 0;
}

.zoom-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.zoom-videos-grid .video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-videos-grid .video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.15);
}

.zoom-videos-grid .video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bordo) 0%, #5a1020 100%);
    overflow: hidden;
}

.zoom-videos-grid .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zoom-videos-grid .video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.zoom-videos-grid .placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-videos-grid .placeholder-thumb svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.zoom-videos-grid .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.zoom-videos-grid .video-card:hover .play-overlay {
    opacity: 1;
}

.zoom-videos-grid .play-overlay svg {
    width: 24px;
    height: 24px;
    color: var(--bordo);
    margin-left: 4px;
}

.zoom-videos-grid .video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.zoom-videos-grid .video-info {
    padding: 1rem;
}

.zoom-videos-grid .video-info h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.zoom-videos-grid .loading-spinner,
.zoom-videos-grid .empty-state,
.zoom-videos-grid .error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #888;
    font-family: 'Nunito', sans-serif;
}

@media (max-width: 768px) {
    .zoom-videos-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Sistema de Comentarios
   ========================================================================== */

.comentarios-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.08);
}

.video-modal-content .comentarios-section {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #eee;
}

.comentarios-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--bordo);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

/* Formulario de comentario */
.comentario-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.comentario-form textarea {
    flex: 1;
    padding: 0.875rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    resize: vertical;
    min-height: 60px;
    max-height: 150px;
    transition: all 0.3s;
}

.comentario-form textarea:focus {
    outline: none;
    border-color: var(--bordo);
}

.comentario-form textarea::placeholder {
    color: #aaa;
}

.btn-comentar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bordo);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-comentar:hover {
    background: var(--bordo-oscuro);
    transform: translateY(-1px);
}

.btn-comentar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-comentar svg {
    flex-shrink: 0;
}

/* Lista de comentarios */
.comentarios-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.comentarios-loading,
.comentarios-empty,
.comentarios-error {
    text-align: center;
    padding: 2rem;
    color: var(--gris-claro);
    font-style: italic;
}

.comentarios-error {
    color: var(--error-color);
}

/* Comentario individual */
.comentario {
    background: var(--crema);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.comentario-mio {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.05) 0%, rgba(128, 0, 32, 0.1) 100%);
    border-left: 3px solid var(--bordo);
}

.comentario-nuevo {
    animation: comentarioFadeIn 0.4s ease;
}

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

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comentario-autor {
    font-weight: 700;
    color: var(--bordo);
    font-size: 0.95rem;
}

.comentario-fecha {
    font-size: 0.8rem;
    color: var(--gris-claro);
}

.comentario-texto {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--gris-texto);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Modal footer con botón */
.video-modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Responsive Comentarios */
@media (max-width: 768px) {
    .comentarios-section {
        padding: 1.25rem;
        margin-top: 1rem;
    }

    .comentario-form {
        flex-direction: column;
    }

    .btn-comentar {
        width: 100%;
        justify-content: center;
    }

    .comentarios-lista {
        max-height: 300px;
    }

    .comentario {
        padding: 0.875rem 1rem;
    }

    .comentario-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ==========================================================================
   Ficha Personal - Modo Vista
   ========================================================================== */
.ficha-view {
    max-width: 700px;
    margin: 0 auto;
}

.ficha-card-principal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.ficha-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-oscuro) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ficha-avatar span {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
}

.ficha-datos-principales h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--bordo);
    margin-bottom: 0.25rem;
}

.ficha-sobrenombre {
    color: var(--gris-claro);
    font-style: italic;
    font-size: 1rem;
}

/* Info Grid */
.ficha-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ficha-info-item {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ficha-info-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--bordo);
    flex-shrink: 0;
}

.ficha-info-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--gris-claro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.125rem;
}

.ficha-info-item .value {
    display: block;
    font-size: 0.95rem;
    color: var(--gris-texto);
}

/* Acordeones */
.ficha-acordeones {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.ficha-acordeon {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.ficha-acordeon-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bordo);
    transition: background 0.2s;
}

.ficha-acordeon-header:hover {
    background: rgba(128, 0, 32, 0.03);
}

.ficha-acordeon-header svg {
    stroke: var(--bordo);
    transition: transform 0.3s;
}

.ficha-acordeon.open .ficha-acordeon-header svg {
    transform: rotate(180deg);
}

.ficha-acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.ficha-acordeon.open .ficha-acordeon-content {
    max-height: 500px;
}

.acordeon-item {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.acordeon-item p {
    margin: 0.75rem 0;
    line-height: 1.5;
}

.acordeon-item p:first-child {
    margin-top: 1rem;
}

.acordeon-item strong {
    color: var(--bordo-oscuro);
}

.acordeon-item .no-data {
    color: var(--gris-claro);
    font-style: italic;
}

/* Actions */
.ficha-view-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ficha-view-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--bordo);
    border-radius: 8px;
    color: var(--bordo);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ficha-view-actions .btn-secondary:hover {
    background: var(--bordo);
    color: white;
}

.ficha-view-actions .btn-secondary svg {
    stroke: currentColor;
}

.ficha-view-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bordo);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ficha-view-actions .btn-primary:hover {
    background: var(--bordo-oscuro);
    text-decoration: none;
}

/* Responsive Ficha View */
@media (max-width: 600px) {
    .ficha-card-principal {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .ficha-avatar {
        width: 70px;
        height: 70px;
    }

    .ficha-avatar span {
        font-size: 1.5rem;
    }

    .ficha-datos-principales h2 {
        font-size: 1.5rem;
    }

    .ficha-info-grid {
        grid-template-columns: 1fr;
    }

    .ficha-view-actions {
        flex-direction: column;
    }

    .ficha-view-actions .btn-secondary,
    .ficha-view-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   BIOMECÁNICA SECTION
   ============================================= */

.biomecanica-section {
    padding: 0 1rem;
}

/* Barra de Progreso Global */
.bio-progress-bar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.bio-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.bio-progress-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.bio-progress-count {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--bordo);
    font-weight: 600;
}

.bio-progress-track {
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.bio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bordo) 0%, #a02040 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Grid de Módulos */
.bio-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* Card de Módulo */
.bio-module-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.bio-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.15);
}

.bio-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--bordo) 0%, #a02040 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bio-module-card:hover::before {
    opacity: 1;
}

.bio-module-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--bordo) 0%, #a02040 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.bio-module-content {
    flex: 1;
    min-width: 0;
}

.bio-module-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.35rem 0;
}

.bio-module-content p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

/* Progress Ring */
.bio-module-progress {
    margin-left: auto;
}

.bio-module-progress-ring {
    position: relative;
    width: 50px;
    height: 50px;
}

.bio-module-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bio-module-progress-ring .ring-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 3;
}

.bio-module-progress-ring .ring-fill {
    fill: none;
    stroke: var(--bordo);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.bio-module-progress-ring .ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bordo);
}

.bio-module-arrow {
    width: 20px;
    height: 20px;
    color: #ccc;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.bio-module-card:hover .bio-module-arrow {
    color: var(--bordo);
    transform: translateX(4px);
}

/* Vista de Contenido del Módulo */
.bio-module-content-view {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bio-module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bio-module-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.bio-section {
    margin-bottom: 2.5rem;
}

.bio-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bio-section h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.btn-marcar-completado {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-marcar-completado:hover {
    background: #eee;
    border-color: #ccc;
}

.btn-marcar-completado svg {
    width: 18px;
    height: 18px;
}

.btn-marcar-completado.completed {
    background: #d1fae5;
    border-color: #10b981;
    color: #059669;
}

.btn-marcar-completado.completed:hover {
    background: #a7f3d0;
}

.bio-section h5 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bordo);
    display: inline-block;
}

/* Botón Marcar Módulo Completado */
.bio-module-complete-action {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Estado pendiente - bordo */
.btn-marcar-modulo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #faf5f6;
    border: 1px solid #d4a0a8;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #73001a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-marcar-modulo:hover {
    background: #f5e6e8;
    border-color: #73001a;
}

.btn-marcar-modulo svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Estado completado - verde */
.btn-marcar-modulo.completed {
    background: #d1fae5;
    border-color: #10b981;
    color: #059669;
}

.btn-marcar-modulo.completed svg {
    opacity: 1;
}

.btn-marcar-modulo.completed:hover {
    background: #a7f3d0;
}

/* Showcase Container */
.bio-showcase-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.bio-showcase-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
}

/* Grid de Asanas */
.bio-asanas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Card de Asana - Con título visible debajo */
.bio-asana-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.bio-asana-card .asana-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.bio-asana-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.bio-asana-card:hover img {
    filter: grayscale(0%);
}

/* Nombre de asana visible debajo */
.bio-asana-card .asana-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 600;
    font-style: italic;
    color: #73001a;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.bio-asana-card .asana-subtitulo {
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.1rem;
}

/* Modal para ver asanas en grande */
.asana-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.asana-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asana-modal-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}

.asana-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.asana-modal-close:hover {
    color: #ccc;
}

.asana-modal-info {
    margin-top: 1rem;
    text-align: center;
}

.asana-modal-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: white;
    display: block;
}

.asana-modal-subtitulo {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    display: block;
}

.bio-asana-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bio-asana-duration {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    color: #888;
}

.bio-asana-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bio-asana-btn.mark-complete {
    background: #f0f0f0;
    color: #666;
}

.bio-asana-btn.mark-complete:hover {
    background: var(--bordo);
    color: white;
}

.bio-asana-btn.completed {
    background: #d1fae5;
    color: #059669;
}

/* Video Cards para Biomecánica */
.bio-video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bio-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.12);
}

.bio-video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.bio-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bio-video-card:hover .bio-video-thumbnail img {
    transform: scale(1.05);
}

.bio-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bio-video-card:hover .bio-video-play-overlay {
    opacity: 1;
}

.bio-video-play-overlay svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bio-video-info {
    padding: 1rem;
}

.bio-video-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bio-video-duration {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    color: #888;
}

/* Checkbox para marcar video como visto */
.video-check-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.video-check-btn svg {
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
}

.video-check-btn:hover {
    border-color: #73001a;
    background: #faf5f6;
}

.video-check-btn:hover svg {
    opacity: 0.3;
    color: #73001a;
}

.video-check-btn.checked {
    background: #73001a;
    border-color: #73001a;
}

.video-check-btn.checked svg {
    opacity: 1;
}

/* Video card completado */
.bio-video-card.video-completed {
    opacity: 0.7;
}

.bio-video-card.video-completed .bio-video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(115, 0, 26, 0.15);
    border-radius: 8px;
    pointer-events: none;
}

/* Botón grande de marcar visto (en reproductor) */
.video-check-btn-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: white;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.video-check-btn-large:hover {
    border-color: #73001a;
    color: #73001a;
}

.video-check-btn-large.checked {
    background: #73001a;
    border-color: #73001a;
    color: white;
}

.video-check-btn-large.checked svg {
    stroke: white;
}

/* Recomendaciones Biomecánica */
.bio-recomendaciones {
    margin-top: 2rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.bio-recomendaciones-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.bio-recomendaciones-text h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bordo);
    margin: 0 0 0.75rem 0;
}

.bio-recomendaciones-text p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--gris-texto);
    line-height: 1.6;
    margin: 0;
}

.bio-recomendaciones-text a {
    color: var(--bordo);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.bio-recomendaciones-text a:hover {
    text-decoration: underline;
}

.bio-recomendaciones-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-recomendaciones-icon svg {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    color: var(--bordo);
    opacity: 0.7;
}

/* Responsive Biomecánica */
@media (max-width: 768px) {
    .bio-modules-grid {
        grid-template-columns: 1fr;
    }

    .bio-module-card {
        padding: 1.25rem;
    }

    .bio-module-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }

    .bio-module-content h4 {
        font-size: 1rem;
    }

    .bio-module-content p {
        font-size: 0.8rem;
    }

    .bio-module-progress-ring {
        width: 42px;
        height: 42px;
    }

    .bio-asanas-grid {
        grid-template-columns: 1fr;
    }

    .bio-module-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bio-recomendaciones {
        padding: 1.25rem;
    }

    .bio-recomendaciones-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1rem;
    }

    .bio-recomendaciones-icon svg {
        width: 40px;
        height: 40px;
    }
}
