@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e1b4b; /* Indigo muy oscuro */
    --accent-yellow: #f59e0b; /* Amber */
    --accent-blue: #0ea5e9; /* Sky */
    --accent-rose: #f43f5e; /* Rose */
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #fef3c7 50%, #ffe4e6 100%);
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.4);
    --text-main: #0f172a;
    --text-muted: #475569;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.4;
}

/* NAVBAR / HEADER */
header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 0.5rem 5%;
    flex-shrink: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section img {
    height: 80px; /* Made larger */
    object-fit: contain;
}

.header-title-section {
    text-align: center;
}

.header-title-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.1rem;
    background: linear-gradient(to right, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-title-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.badge-vacacional {
    background: var(--accent-rose);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* MAIN DASHBOARD CONTAINER */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 5% 0.5rem;
}

/* TABS BUTTONS */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tab-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: white;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* TAB CONTENT */
.tab-content {
    flex: 1;
    overflow: hidden;
    display: none;
    height: 100%;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

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

/* CARDS FOR PASEOS */
.paseos-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    padding: 0.5rem;
}

.paseo-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.paseo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-blue);
}

.paseo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9);
}

.paseo-date {
    font-weight: 700;
    color: var(--accent-rose);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.paseo-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.paseo-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.paseo-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.paseo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.6rem;
}

.paseo-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.05rem;
}

/* HORARIOS TABLE STYLE (INTERACTIVE GRID) */
.schedule-container {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.schedule-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.schedule-header-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.interactive-hint {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.table-wrapper {
    flex: 1;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.5);
}

table.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.25rem;
    min-width: 800px;
}

table.schedule-table th {
    background: var(--primary);
    color: white;
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    position: sticky;
    top: 0;
    z-index: 10;
}

table.schedule-table td {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 0.55rem 0.5rem;
    text-align: center;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

table.schedule-table tr td:first-child {
    background: rgba(30, 27, 75, 0.05);
    color: var(--primary);
    font-weight: 700;
    border: none;
    width: 130px;
}

/* SPECIAL ACTIVITIES STYLING */
.special-activity {
    cursor: pointer;
    font-weight: 700 !important;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}

.special-activity:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.08);
}

/* Arte */
.special-activity.arte {
    background: #fdf2f8 !important;
    border: 1.5px solid #f472b6 !important;
    color: #db2777;
}

/* Pedal Bike */
.special-activity.pedal {
    background: #fffbeb !important;
    border: 1.5px solid #fbbf24 !important;
    color: #d97706;
}

/* Capoeira */
.special-activity.capoeira {
    background: #ecfdf5 !important;
    border: 1.5px solid #34d399 !important;
    color: #059669;
}

/* Cientificos */
.special-activity.ciencia {
    background: #f0f9ff !important;
    border: 1.5px solid #38bdf8 !important;
    color: #0284c7;
}

/* Karate */
.special-activity.karate {
    background: #fff1f2 !important;
    border: 1.5px solid #fb7185 !important;
    color: #e11d48;
}

/* OTHER CELLS */
.lunch-cell {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #b45309;
    font-weight: 600;
}

.recreo-cell {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #047857;
    font-weight: 600;
}

.schedule-info-text {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    flex-shrink: 0;
}

/* FOOTER */
footer {
    background: rgba(255, 255, 255, 0.2);
    border-top: 1px solid var(--card-border);
    padding: 0.4rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* POPUP MODAL FOR INTERACTION */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: modalShow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalShow {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.modal-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.modal-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-action:hover {
    background: var(--accent-blue);
    transform: translateY(-1px);
}
