/* style.css — DraftU: pastel + minimal */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..600;1,9..40,300..600&display=swap');


:root {
    /* 💚 COLOR PRIMARIO: Tu verde favorito (El rey de los botones) */
    --primary: #92df88;       
    --primary-hover: #85e079;
    --primary-light: #edf5eb; 

    /* 💜 COLOR SECUNDARIO: Morado (Para acentos y el Dashboard) */
    --secondary: #a855f7;     
    --secondary-hover: #9333ea;
    --secondary-light: #f3e8ff;

    /* 💙 COLOR TERCIARIO: Edición */
    --info: #3b82f6;          
    --info-hover: #2563eb;
    --info-light: #dbeafe;

    /* ❤️ COLOR DE PELIGRO: Borrar / Alertas */
    --danger: #ef4444;
    --danger-light: #fee2e2;

    /* ⚪ NEUTROS Y TEXTOS */
    --bg-page: #f8fafc;       
    --bg-elevated: #ffffff; 
    --bg-soft: #e8eef6;  
    --text: #1f2937;     
    --text-muted: #6b7280;    
    --text-soft: #9ca3af;     
    --border-light: #e2e8f0;
    --border: #cbd5e1;

    /* 🔲 SOMBRAS Y RADIOS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --font: 'DM Sans', system-ui, -apple-system, sans-serif;

    --coral: #e8a598;
    --coral-hover: #df9588;
    --coral-soft: rgba(232, 165, 152, 0.35);
    --white: rgba(152, 232, 161, 0.2);
    --white-og:#fffafa;
    --white-hover: rgba(152, 232, 161, 0.35); 
    --gray-light: #edf4fa;
}
html, body {
    width: 100%;
    overflow-x: hidden; /* Prohíbe terminantemente el scroll horizontal en la página */
    position: relative; /* Ayuda a contener elementos absolutos */
}
html {
    background-color: var(--bg-page);
}
body {
    font-family: var(--font);
    background-color: var(--bg-page);
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
}
/* Contenedor principal de la página */
.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 16px;
    width: 100%;
    min-height: 0;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.25s ease;
    box-shadow: 0 1px 0 var(--border-light);
}
.nav-container {
    display: flex;
    justify-self: center;
    align-items: center;
    gap: clamp(32px, 8vw, 80px);
    width: fit-content;
    max-width: 1200px;
    border-bottom: none;
    padding-bottom: 0;
    padding-left: 24px;
    padding-right: 24px;
}
.menu {
    display: flex;
    margin-left: 0;
    padding: 0;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
}
.menu a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s ease;
}
.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    border-radius: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease-out;
}
.menu a:hover::after {
    width: 100%;
}
.menu a:hover {
    color: var(--text);
}

.menu a.nav-current {
    color: var(--text);
    font-weight: 600;
}
.menu a.nav-current::after {
    width: 100%;
}

/* HERO SECTION - Contenido principal */
.hero-section {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 72px;
    box-sizing: border-box;
}
.hero-image {
    max-width: 900px;
    
    /* Usamos un margen negativo para tirar la imagen hacia el borde del viewport */
    margin-left: -220px;
}
.hourglass-img {
    width: 100%;
    height: auto;
}
/* Contenedor de texto y botón */
.hero-text {
    max-width: 450px; 
    text-align: right; 
    /* Quitamos el margin-right extra */
    margin-right: 140px;
    
}

.hero-text h1 {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 28px 0;
    color: var(--text);
}
.thin-font {
    font-weight: 300;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    display: block;
    margin-top: 10px;
    color: var(--text-muted);

    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    width: 0; /* Empieza en 0 ancho */
    
    /* Animación: typing dura 2s, blink-caret parpadea */
    animation: 
        typing 2s steps(20, end) forwards 0.5s,
        blink-caret .75s step-end infinite;
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% } /* Se expande al ancho del texto */
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}
.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--primary);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm), 0 8px 24px var(--primary-light);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 10;
    border: none;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


.features-section {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-page) 100%);
    color: var(--text);
    padding: 64px 24px 80px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(24px, 5vw, 48px);
    flex-wrap: wrap;
}

.feature-card {
    text-align: center;
    max-width: 280px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px 40px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.icon-circle {
    width: 100px;
    height: 100px;
    border: none;
    background: var(--primary-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s;
}
.icon-img {
    width: 52px;
    height: 52px;
}
.feature-card:hover .icon-circle {
    transform: scale(1.06);
    background-color: rgba(125, 179, 154, 0.32);
}

/* --BUILDER-- */
.builder-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-page);
}

.header-simple {
    display: flex;
    padding: 0px 40px;
    padding-top: 20px;
    align-items: center;
}

.logo-small {
    height: 50px;
    width: auto;
    margin-left: 10%;
    margin-top: 10%;
}

/* ÁREA DE TRABAJO (Scroll Horizontal) */
.board-canvas {
    flex-grow: 1;
    background-color: var(--bg-page);
    display: flex;
    align-items: flex-start;
    padding-top: 32px;
    overflow-x: auto;
    padding-right: 40px;
    padding-left: 40px;
    padding-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.cards-wrapper {
    display: flex;
    gap: 40px;
    margin: auto; /* ESTO ES LA MAGIA: Centra el bloque horizontalmente */
    padding: 20px 0; /* Un poco de aire vertical para las sombras */
    min-width: min-content; /* Asegura que no se aplaste */
}



/* COLUMNA (Materia) */
.column {
    min-width: 320px; /* Ancho fijo de cada tarjeta/columna */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Si la columna crece mucho verticalmente, scrollear dentro de ella */
    max-height: 60vh; 
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* TARJETAS PLACEHOLDER (Las punteadas) */
.card-dashed {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    color: var(--text-soft);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background-color 0.2s;
    background-color: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
}

.card-dashed:hover {
    border-color: var(--primary);
    color: var(--text-muted);
    background-color: var(--bg-elevated);
    box-shadow: var(--shadow-md);
}

.plus-icon {
    font-size: 2rem;
    font-weight: 100;
    display: block;
    margin-bottom: 10px;
}

.card-text {
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.95rem;
}

.bottom-bar {
    padding: 20px 24px 28px;
    display: flex;
    justify-content: center;
    background-color: var(--bg-elevated);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -8px 32px rgba(42, 49, 66, 0.04);
}

.generate-btn {
    background-color: var(--primary);
    color: var(--white-og);
    border: none;
    padding: 14px 48px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: var(--shadow-sm), 0 10px 28px var(--primary-light);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.generate-btn:hover {
    transform: translateY(-2px);
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}


.intro-text {
    text-align: center;
    padding: 0px 0;
    flex-shrink: 0;
}
.intro-text h2 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.intro-text p {
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 49, 66, 0.35);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Cuando le ponemos la clase 'active' con JS, se muestra */
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background-color: var(--bg-elevated);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    width: 400px;
    max-width: calc(100vw - 32px);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-light);
}

.modal-card h3 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: var(--bg-page);
}

.modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-cancel, .btn-confirm {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    flex-grow: 1;
    font-family: var(--font);
}

.btn-cancel {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-confirm {
    background-color: var(--primary);
    color: var(--text);
    font-weight: 600;
}

.btn-confirm:hover {
    background-color: var(--primary-hover);
}
.subject-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.subject-header h3 {
    margin: 0;
    font-weight: 500; /* Roboto Medium */
    color: var(--text);
    font-size: 1.1rem;
    text-transform: uppercase; /* Opcional: Para que se vea como en tu diseño */
    letter-spacing: 0.5px;
   
    flex-grow: 1; 
    text-align: center;
    
    /* Seguridad para textos largos */
    word-break: break-word; 
    line-height: 1.2;
}

/* El Ícono del Basurero */
.delete-btn {
    /* Quitamos position: absolute y transform */
    position: relative; 
    transform: none; 
    top: auto; 
    right: auto;
    
    /* Dimensiones fijas */
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-soft);
    
    /* VITAL: Evita que se aplaste si el texto es largo */
    flex-shrink: 0;
}
.delete-btn i {
    font-size: 14px; /* Tamaño controlado */
    line-height: 1;  /* Elimina el interlineado que lo descuadra */
    margin: 0;       /* Asegura que no tenga márgenes */
    padding: 0;
}
.delete-btn:hover {
    color: #e74c3c; /* Rojo al pasar el mouse */
    background: var(--bg-elevated);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Contenedor de filas de tiempo */
.time-blocks-container {
    max-height: 200px;
    overflow-y: auto; /* Scroll si hay muchos horarios */
    margin-bottom: 15px;
    padding-right: 5px;
}

/* Una fila individual de tiempo */
.time-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    animation: fadeIn 0.2s;
}

/* Select de Días e Inputs de Hora */
.input-day, .input-time {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    outline: none;
    background: var(--bg-elevated);
}

.input-day {
    flex: 2; /* El día ocupa más espacio */
}

.input-time {
    flex: 1.5; /* Las horas ocupan menos */
}

/* Botón sutil para borrar una fila de tiempo */
.btn-remove-row {
    color: #ff6b6b;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 5px;
}
.btn-remove-row:hover {
    transform: scale(1.1);
}

/* Botón para agregar nueva fila */
.btn-add-time {
    background-color: var(--bg-elevated);
    color: var(--text);
    border: 1px dashed var(--border);
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.btn-add-time:hover {
    background-color: var(--bg-elevated);
    border-color: var(--primary);
}

/* Estilo de la Tarjeta de Grupo (Ya creada en la columna) */
.group-card {
    background-color: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 0;
    text-align: left;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    position: relative;
}
.group-card:hover {
    background-color: var(--bg-elevated);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}
.group-prof {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 5px;
}
.group-schedule {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.schedule-badge {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-light);
    padding: 2px 6px;
    border-radius: 4px;
}
.accordion-toggle {
    width: 32px; 
    height: 32px;
    background: var(--bg-elevated);
    border-radius: 50%;
    
    display: none; /* Oculto en escritorio por defecto */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    cursor: pointer;
    
    /* VITAL: Evita que se aplaste */
    flex-shrink: 0;
}


/* 1. EL FONDO (Overlay) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3000; /* Encima de todo */
}

/* Clase para activarlo */
.loading-overlay.active {
    display: flex;
    opacity: 1;
}

/* 2. CONTENEDOR DEL RELOJ */
.hourglass-animation-box {
    position: relative;
    width: 300px; /* Ajusta al tamaño visual de tu reloj */
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hourglass-static {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10; /* La imagen está "encima" o detrás según el efecto deseado */
}

.hourglass-animation-box {
    position: relative;
    width: 300px; 
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El círculo que late */
.pulse-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: var(--primary-light);
    border-radius: 50%;
    z-index: 1; /* Detrás de la imagen */
    
    /* La animación */
    animation: pulseEffect 2s infinite ease-in-out;
}

/* Imagen del reloj */
.hourglass-static {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2; /* Encima del círculo */
}

@keyframes pulseEffect {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5); /* Crece bastante */
        opacity: 0.1; /* Se desvanece */
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}


/* 5. TEXTO */
.loading-text-container {
    text-align: center;
    margin-top: -40px; /* Subirlo un poco */
    z-index: 20;
}


.loading-title {
    font-family: var(--font);
    font-weight: 300;
    font-size: 2rem;
    color: var(--text);
    min-width: 300px; /* Para que no baile el ancho al cambiar texto */
}


/* static/style.css - RESULTADOS Y CALENDARIO */

/* Encabezado de Navegación */
.results-header {
    text-align: center;
    padding: 10px 0;
}
.results-header h2 {
    font-weight: 600;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.navigation-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.nav-arrow {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}
.nav-arrow:hover {
   
    border-color: var(--primary);
    color: var(--text);
    transform: scale(1.06);
}

.option-counter {
    font-size: 1.2rem;
    font-weight: 300;
    min-width: 100px;
    text-align: center;
}

/* --- EL GRID DEL CALENDARIO --- */
.schedule-container {
    flex-grow: 1;
    max-width: 1200px;
    width: 95%;
    margin: 10px auto;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 600px;
    position: relative;
    border: 1px solid var(--border-light);
}

/* 1. Cabecera de Días (STICKY) */
.days-header {
    display: flex;
    background-color: var(--bg-soft);
    border-bottom: 1px solid var(--border-light);
    
    z-index: 20;
    flex-shrink: 0; /* No encogerse */
    padding-right: 15px;/*NUEVO*/
}

.time-corner {
    width: 60px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-light);
}

.day-label {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-right: 1px solid var(--border-light);
}

/* 2. Cuerpo Scrolleable */
.scrollable-grid {
    display: flex;
    overflow-y: scroll; /* AQUÍ ESTÁ EL SCROLL VERTICAL */
    flex-grow: 1;
    position: relative;
}

/* Columna de Horas */
.time-column {
    width: 60px;
    flex-shrink: 0;
    background-color: var(--bg-elevated);
    border-right: 1px solid var(--border-light);
    background-size: 100% 40px;
    background-image: linear-gradient(to bottom, var(--border-light) 1px, transparent 1px);
}

.time-label {
    height: 40px;
    font-size: 0.72rem;
    color: var(--text-soft);
    text-align: center;
    
    /* Centramos el texto verticalmente dentro de su bloque de hora */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid de Días */
.days-grid {
    display: flex;
    flex: 1;
    position: relative;
    background-size: 100% 40px;
    background-image: linear-gradient(to bottom, var(--gray-light) 1px, transparent 1px);
}

.day-column {
    flex: 1;
    position: relative;
    border-right: 1px solid var(--gray-light);
}

/* BLOQUE DE CLASE (La tarjeta de color) */
.class-block {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: var(--radius-sm);
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 0.8rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.class-block:hover {
    z-index: 50;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.block-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
}
.block-prof {
    font-size: 0.8rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.block-time {
    font-size: 0.7rem;
    margin-top: 2px;
    font-weight: 300;
}

.custom-tooltip {
    position: fixed; /* Se mueve con el mouse respecto a la pantalla */
    display: none;   /* Oculto por defecto */
    background-color: var(--bg-elevated);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 9999; /* Siempre encima de todo */
    pointer-events: none; /* MAGIA: El mouse lo ignora, así no parpadea */
    border: 1px solid var(--border-light);
    min-width: 150px;
    max-width: 250px;
}

.custom-tooltip h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.custom-tooltip p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.custom-tooltip span {
    font-size: 0.8rem;
    color: var(--text-soft);
    font-weight: 300;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.corner-expand-btn {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.corner-expand-btn:hover {
    color: var(--text-muted);
    background-color: var(--bg-elevated);
}


/* --- ESTADO EXPANDIDO (La magia) --- */
.schedule-container.expanded-mode {
    /* Romper las cadenas del layout */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;  /* 100% del ancho de ventana */
    height: 100vh; /* 100% del alto de ventana */
    max-width: none;
    margin: 0;
    border-radius: 0;
    z-index: 5000; /* Encima de todo, incluso del header */
    background-color: var(--bg-page);
    
    /* Configuración para que se vea todo */
    display: flex;
    flex-direction: column;
}

/* Ajuste del cuerpo en modo expandido */
.schedule-container.expanded-mode .scrollable-grid {
    overflow-y: auto; /* Permitir scroll si la pantalla es muy chica */
    flex-grow: 1;
    /* Opcional: Si quieres ver todo sin scroll, usa zoom o ajusta height */
}

/* Ajuste del Header en modo expandido */
.schedule-container.expanded-mode .days-header {
    background-color: var(--bg-soft);
    box-shadow: 0 2px 10px rgba(42, 49, 66, 0.06);
}


.main-footer {
    background-color: var(--bg-elevated);
    color: var(--text-muted);
    padding: 28px 20px;
    margin-top: auto;
    width: 100%;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo {
    height: 40px; /* Logo pequeño y discreto */
    width: auto;
    opacity: 0.9;
}

.footer-text p {
    margin: 5px 0;
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
}

.footer-text strong {
    font-weight: 500;
}



.copyright {
    font-size: 0.75rem !important;
    opacity: 0.6;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.visibility-btn {
    cursor: pointer;
    color: var(--text-soft);
    font-size: 1rem;
    padding: 5px;
    transition: all 0.2s;
    /* Lo ponemos flexible para que no rompa el layout */
    display: flex;
    align-items: center;
    justify-content: center;
}
.visibility-btn:hover {
    color: var(--text);
    transform: scale(1.1);
}

/* ESTADO INACTIVO (Fantasma) */
.inactive-item {
    opacity: 0.5; /* Se ve medio transparente */
    filter: grayscale(100%); /* Le quitamos el color */
    transition: all 0.3s ease;
}

/* Opcional: Cuando pasas el mouse por algo inactivo, que se vea un poco mejor */
.inactive-item:hover {
    opacity: 0.8;
}

.header-eye-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-soft);
    
    /* VITAL: El mismo tamaño de ícono que el basurero */
    font-size: 14px; 
}
.header-eye-btn:hover {
    background: var(--bg-elevated);
    color: var(--text);
    transform: scale(1.1);
}

.group-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px; /* Espacio entre el ojo y la X */
    align-items: center;
}

/* Estilo unificado para Ojo y X dentro del grupo */
.group-icon-btn {
    width: 24px;  /* Ancho fijo */
    height: 24px; /* Alto fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-soft);
    border-radius: 4px; /* Un poquito cuadrado pero suave */
    transition: all 0.2s;
    font-size: 0.9rem; /* Tamaño del dibujo */
}

/* Efectos Hover individuales */
.group-icon-btn:hover {
    background-color: rgba(0,0,0,0.05); /* Sombra suave */
    color: var(--text-muted);
}

/* El basurero (X) se pone rojo al hover */
.group-icon-btn.delete-group:hover {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}
.group-icon-btn.edit-group:hover {
    color: var(--coral);
    background-color: var(--coral-soft);
}


.login-body {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1px);
    background-size: 24px 24px;
    
    /* Keep your existing display: flex, min-height, etc. */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.login-split-card {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Mantiene el contenido dentro de las esquinas redondeadas */
    min-height: 550px;
}

/* --- Panel Izquierdo (Degradado) --- */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Formas decorativas estilo abstract */
.login-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}
.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

.login-left-content {
    position: relative;
    z-index: 10;
}

.login-logo {
    max-width: 120px;
    margin-bottom: 30px;
    /* Si tu logo es oscuro, esta línea lo vuelve blanco automáticamente: */
    filter: brightness(0) invert(1); 
}

.login-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.login-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* --- Panel Derecho (Acción) --- */
.login-right {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-right-content {
    width: 100%;
    max-width: 350px;
}

.login-welcome-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.login-welcome-text {
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

/* --- Botón de Google --- */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-google:hover {
    background-color: #fafafa;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.google-icon {
    width: 24px;
    height: 24px;
}
.search-modal {
    width: 550px !important; /* Un poco más ancho para leer bien materias largas */
}

.search-container {
    position: relative;
    margin-top: 20px;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
}

.search-input {
    padding-left: 45px !important;
    margin: 0 !important;
    font-size: 1.05rem;
}

.search-results-container {
    max-height: 250px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.empty-search {
    padding: 20px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: #ffffff;
}

.result-info h4 {
    margin: 0 0 4px 0;
    color: var(--text);
    font-size: 0.95rem;
}
.result-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-import {
    background-color: var(--white); 
    color: var(--primary-hover);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.1s;
}
.btn-import:hover {
    background-color: var(--primary);
    color: #fff;
}

.separator-text {
    margin: 15px 0;
    position: relative;
    text-align: center;
}
.separator-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
    z-index: 1;
}
.separator-text span {
    background: var(--bg-elevated);
    padding: 0 10px;
    color: var(--text-soft);
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.btn-manual-toggle {
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}
.btn-manual-toggle:hover {
    border-color: var(--text);
    color: var(--text);
}

.modal-card {
    /* ... tus otras reglas ... */
    position: relative; /* <-- ESTA ES CRUCIAL */
}

/* --- Estilos para la 'X' de cerrar --- */
.close-modal-x {
    position: absolute;
    top: 15px;      /* Distancia desde arriba */
    right: 20px;    /* Distancia desde la derecha */
    background: transparent;
    border: none;
    color: var(--text-soft); /* Color suave por defecto */
    font-size: 1.3rem;       /* Tamaño del icono */
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
    z-index: 10;    /* Para asegurar que esté por encima de otros elementos */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Para el efecto de hover circular */
}

.close-modal-x:hover {
    color: var(--coral); /* Cambia al color de acento (morado) al pasar el mouse */
    background-color: var(--bg-page); /* Un fondo suave sutil al hover */
    transform: rotate(90deg); /* Un pequeño giro animado para que sea más dinámico */
}
.community-toggle-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0 5px;
}

.toggle-text {
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 400;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    flex-shrink: 0;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(14px);
}
.modal-actions-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
    justify-content: center;
}

.modal-action-btn {
    flex: 1 1 0; /* MAGIA FLEXBOX: Fuerza a ambos a medir exactamente el 50% */
    width: 100%; /* Respaldo para el flex-basis 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* Botón Materia Manual */
.modal-action-btn.btn-secondary {
    background-color: transparent;
    border: 1px dashed #b0c4de;
    color: #556b2f; /* Ajusta al color secundario de tu paleta */
}

.modal-action-btn.btn-secondary:hover {
    background-color: #f0f4f8;
    border: 1px dashed #b0c4de;
    border-color: #7ab572;
    transform: translateY(-1px);
}

/* Botón Actividad Fija */
.modal-action-btn.btn-primary-action {
    background-color: var(--primary); /* Color verde/azul de tu tema */
    border: none;
    color: white;
}

.modal-action-btn.btn-primary-action:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.prof-toggle-btn {
    cursor: pointer;
    color: #7ab572; /* Tu verde institucional */
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    transition: color 0.2s;
}

.prof-toggle-btn:hover {
    color: #5c8f55;
    text-decoration: underline;
}

.prof-dropdown-list {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.prof-dropdown-list.active {
    display: flex; /* Se muestra al darle clic */
}

.prof-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
}

.prof-checkbox-item input[type="checkbox"] {
    accent-color: #7ab572; /* Color del check */
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.btn-result-secondary {
    background-color: var(--white); /* Un color suave de tu paleta para el botón secundario */
    color: var(--primary); /* El mismo verde/azul pero en versión suave para el texto */
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-result-secondary:hover {
    background-color: var(--white-hover);
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-result-primary {
    background-color: var(--primary); /* Púrpura de tu Dashboard */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(122, 181, 114, 0.4);
}
.btn-result-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(122, 181, 114, 0.4);
}
.mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 Días: Lun - Sab */
    grid-template-rows: repeat(15, 1fr);   /* 15 Horas: 7 AM a 10 PM */
    gap: 2px;
    width: 100%;
    height: 100%;
}
@media screen and (max-width: 768px) {
    * {
        box-sizing: border-box; /* Vital para que el padding no rompa el ancho */
        margin: 0;
        padding: 0;
    }
    .main-footer {
        padding: 15px 20px;
        margin-bottom: 0; /* Asegurar que se vea al final */
    }
    /* --- 1. NAVBAR (Compacta y Apilada) --- */
    .header-nav {
        height: auto; /* Dejamos que crezca según el contenido */
        padding: 10px 0; /* Un poco de aire arriba y abajo */
    }

    .nav-container {
        flex-direction: column; /* Apilar Logo y Menú */
        gap: 20px; /* Reducir el espacio gigante de 100px a 20px */
        padding-bottom: 15px; /* Reducir padding de la línea */
        width: 80%; /* Que la línea no toque los bordes de la pantalla */
    }

    .logo-img {
        height: 40px; /* Un poco más pequeño */
    }

    .menu {
        gap: 40px; /* Reducir espacio entre enlaces */
        width: 100%;
        justify-content: center; /* Centrar los enlaces */
    }

    .menu a {
        font-size: 1.2rem; /* Texto más pequeño para móvil */
    }


    /* --- 2. HERO SECTION (Centrada y Vertical) --- */
    .hero-section {
        flex-direction: column; /* Imagen arriba, texto abajo */
        align-items: center; /* Centrar todo horizontalmente */
        justify-content: center;
        padding: 40px 20px 80px 20px; /* Ajustar paddings */
        margin-top: 20px;
    }

    .hero-image {
        /* Resetear los márgenes locos del escritorio */
        margin-left: 0; 
        max-width: 350px; /* Hacer el reloj más pequeño para que quepa */
        margin-bottom: 20px; /* Separación entre reloj y texto */
    }

    .hero-text {
        text-align: center; /* Texto centrado */
        max-width: 100%;
        margin-top: 0; /* Quitar el empuje hacia abajo del escritorio */
        margin-right: 0;
    }

    .hero-text h1 {
        font-size: 2.5rem; /* Título más pequeño */
    }
    
    .thin-font {
        font-size: 1.8rem; /* Subtítulo más pequeño */
    }


    /* --- 3. FEATURES SECTION (Columna) --- */
    .features-section {
        flex-direction: column; /* Apilar las 3 características */
        align-items: center;
        gap: 60px; /* Espacio entre cada tarjeta */
        padding: 60px 20px;
    }

    .feature-card {
        max-width: 100%; /* Aprovechar el ancho */
    }

/* 1. HEADER Y TÍTULOS */
    .header-simple {
        justify-content: center; /* Centrar logo */
        padding: 15px;
    }
    .logo-small {
        margin: 0; /* Quitar márgenes raros */
        height: 40px;
    }
    .intro-text {
        padding: 10px 20px;
    }
    .intro-text h2 {
        font-size: 1.5rem; /* Título más pequeño */
    }
    .intro-text p {
        font-size: 0.9rem;
    }

    /* 2. TABLERO VERTICAL (Adiós Scroll Horizontal) */
    .board-canvas {
        flex-direction: column; /* Apilar hacia abajo */
        align-items: stretch; /* Ocupar todo el ancho */
        padding: 20px; /* Padding normal */
        overflow-x: hidden; /* Bloquear scroll lateral */
        height: auto; /* Dejar crecer */
    }

    .cards-wrapper {
        flex-direction: column; /* Columnas una debajo de otra */
        width: 100%;
        gap: 20px;
        margin: 0;
    }

    .column {
        min-width: 0; /* Resetear ancho mínimo */
        width: 100%;  /* Ocupar todo el ancho del cel */
        max-height: none; /* Quitar límite de altura */
        overflow: visible;
        
        /* Estilo tipo "Acordeón Cerrado" por defecto */
        background: var(--bg-elevated);
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    /* 3. LOGICA DE ACORDEÓN (CSS) */
    /* Cuando la columna NO tiene la clase 'expanded', ocultamos el contenido */
    .column:not(.expanded) .group-card,
    .column:not(.expanded) .card-dashed {
        display: none;
    }
    
    /* Ajuste del Header en Móvil */
    .subject-header {
        margin-bottom: 0; /* Pegadito si está cerrado */
        justify-content: space-between; /* Título a la izq, controles a la der */
        padding: 15px 20px;
    }
    
    /* Si está expandido, le damos margen abajo al header */
    .column.expanded .subject-header {
        margin-bottom: 15px;
        border-bottom-left-radius: 0; 
        border-bottom-right-radius: 0; 
    }
    
    /* Botón Chevron (Flecha) que solo aparece en móvil */
    .accordion-toggle {
        display: flex;
    }
    
    /* Rotar la flecha si está expandido */
    .column.expanded .accordion-toggle {
        transform: rotate(180deg);
        background: var(--bg-elevated);
    }


    /* 4. MODALES RESPONSIVAS (Más pequeñas) */
    .modal-card {
        width: 90% !important; /* Ocupar casi toda la pantalla */
        padding: 20px;
        max-height: 90vh; /* Evitar que se salga por arriba/abajo */
        overflow-y: auto; /* Scroll interno si es muy alto */
    }

    /* 5. FORMULARIO DE HORARIOS (Rediseño total) */
    .time-row {
        flex-wrap: wrap; /* Permitir que los elementos bajen */
        background: var(--bg-elevated);
        padding: 10px;
        border-radius: 10px;
        border: 1px solid var(--border-light);
    }

    .input-day {
        width: 100%; /* El día ocupa toda la fila superior */
        margin-bottom: 10px;
        flex: none;
    }

    .input-time {
        width: 40%; /* Inputs de hora comparten fila */
        flex: 1;
    }

    .btn-remove-row {
        width: 100%; /* Botón de borrar abajo del todo */
        margin-top: 5px;
        border-top: 1px solid var(--border-light);
        padding-top: 5px;
        color: #ff6b6b;
    }
    #addSubjectColumn {
        /* 1. Empujarlo hacia abajo para despegarl del acordeón */
        margin-top: 10px !important; 
        
        
        /* 3. Necesario para posicionar la línea divisoria */
        position: relative; 
    }

    
    /* OPCIONAL: Si quieres reducir un poco la opacidad para que se vea "inactivo" */
    #addSubjectColumn .card-dashed {
        border-color: var(--border);
    }
    .loading-title {
    font-family: var(--font);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text);
    min-width: 300px; 
    }

    .schedule-container {
        height: 70vh; /* Ocupar más pantalla en móvil */
    }
    
    /* En móvil, quizás quieras scroll horizontal si son muchos días, 
       pero por ahora comprimimos las columnas */
    

    
    .day-label {
        min-width: 0;
        overflow: hidden;
        font-size: 0.7rem;
        padding: 10px 0;
        /* Quitamos padding lateral para ganar espacio */
    }
    .day-column{
        min-width: 0; 
        overflow: visible;
    }
    .days-header {
        padding-right: 0; 
    }

    /* --- ARREGLO 2: BOTONES DE ACCIÓN --- */
    .bottom-bar {
        /* Apilar botones verticalmente */
        flex-direction: column; 
        gap: 15px; /* Espacio entre ellos */
        padding: 20px;
    }
    .btn-result-primary,
    .btn-result-secondary {
        width: 100%;
        justify-content: center; /* MAGIA: Esto centra el ícono y el texto */
        padding: 14px 0; /* Asegura un buen tamaño para tocar con el dedo */
        box-sizing: border-box;
    }

    .generate-btn {
        width: 100%; /* Ocupar todo el ancho */
        padding: 12px 0; /* Menos "gordos" (altura) */
        font-size: 1rem; /* Texto legible pero no gigante */
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box; /* Para que el padding no rompa el ancho */
    }

    /* Ajustes generales del calendario en móvil */
    .schedule-container {
        height: 65vh; 
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0;
    }
    
    .time-label {
        font-size: 0.6rem;
    }
    
    .block-title {
        font-size: 0.65rem;
    }
    
    /* Ocultar info secundaria en bloques muy chicos */
    .block-prof, .block-time {
        display: none; 
    }
    .login-split-card {
        flex-direction: column;
    }
    .login-left {
        padding: 40px 30px;
    }
    .login-right {
        padding: 40px 20px;
    }
    .login-hero-title {
        font-size: 2.2rem;
    }


}


/* --- Simulación (selector demo) --- */
.sim-action-btn {
    background: var(--text);
    color: var(--coral);
    border: 1px solid var(--coral);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font);
    letter-spacing: 0.02em;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.sim-action-btn:hover {
    background: var(--coral);
    color: var(--text);
    transform: translateY(-1px);
}

.seats-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border-light);
}

.seats-badge.full {
    background-color: #fdeef0;
    color: #b85c6b;
    border: 1px solid #f5d0d6;
}

.seats-badge.warning {
    background-color: #fff8ed;
    color: #b8832e;
    border: 1px solid #f5e4c4;
}