:root {
    /* School Colors: Red (Dark), Cream, Yellow, White */
    --primary-red: #800020;
    /* Deep Burgundy */
    --primary-red-light: #a31535;
    --accent-gold: #d4af37;
    /* C Metallic Gold */
    --accent-cream: #f5f5dc;
    /* Beige/Cream */
    --text-dark: #2c2c2c;
    --text-white: #ffffff;
    --bg-body: #f9f9f7;
    /* Slight cream tint for paper feel */
    --bg-card: #ffffff;
    --border-color: #e0e0e0;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utils */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-right {
    text-align: right;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-red);
    color: var(--accent-gold);
    padding: 10px 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-gold);
}

.school-name {
    font-weight: 700;
    text-transform: uppercase;
}

.doc-ref {
    opacity: 0.8;
}

/* Hero Section */
/* Hero Section Redesign: Integrated Background */
/* Hero Section Redesign: Compact Fixed Height */
/* Hero Section Redesign: Taller and Elegant */
/* Hero Section: Restored Reference Design with Background */
.hero-section {
    position: relative;
    /* Use cabecera.jpg as background */
    background: url('cabecera.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    /* Padding for spacing */
    text-align: center;
    border-bottom: 4px solid var(--accent-gold);
    color: var(--text-dark);
    height: auto;
    /* Allow content to dictate height */
}

@media (max-width: 768px) {
    .hero-section {
        background-image: url('cabecera2.jpg');
        /* Mobile image */
        padding: 50px 0 !important;
        height: auto;
        min-height: 200px;
    }
}

/* Glass/Card Content - Transparent (No Background) */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Background removed as requested */
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;

    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    gap: 0;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(128, 0, 32, 0.2);
    flex-shrink: 0;
}

/* Group text for alignment */
/* Group styling not needed for vertical layout but keeping for safety if HTML hasn't updated perfectly yet */
.hero-text-group {
    text-align: center;
    display: block;
}

.main-title {
    font-family: var(--font-heading);
    color: var(--primary-red);
    font-size: 2.2rem;
    margin-bottom: 5px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.sub-title {
    font-family: var(--font-body);
    font-size: 1.8rem !important;
    color: #555;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    margin: 0 0 15px 0;
}

.divider-line {
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 20px auto;
}

.hero-date {
    display: inline-block;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Notice Text */
.notice-text {
    background-color: #fff;
    border-left: 4px solid var(--primary-red);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    font-size: 1rem;
    color: #444;
}

/* Sections */
.section-block {
    margin-bottom: 50px;
}

.section-heading {
    font-family: var(--font-heading);
    color: var(--primary-red);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: inline-block;
}

.section-heading.small {
    font-size: 1.2rem;
    border-bottom: none;
}

/* Cronograma Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.schedule-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-gold);
}

.card-header {
    background-color: var(--primary-red);
    color: #fff;
    padding: 15px;
    text-align: center;
}

.card-header .weekday {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.card-header .date {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
    margin-top: 5px;
}

.card-body {
    padding: 20px;
    background-color: #fff;
}

.card-body ul {
    list-style: none;
    text-align: center;
}

.card-body ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-weight: 500;
}

.card-body ul li:last-child {
    border-bottom: none;
}

/* Disposiciones */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-panel {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.formal-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--accent-gold);
}

/* Payment Section */
.payment-block {
    background: #fdfbf7;
    border: 1px solid #e8e4d9;
    padding: 30px;
    border-radius: 8px;
}

.payment-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
}

.payment-info {
    flex: 1;
    min-width: 250px;
}

.section-heading.inverted {
    color: #5D4037;
    /* Brown */
    font-weight: 700;
    border-bottom: none;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.price-display {
    font-size: 1.5rem;
    color: var(--primary-red);
    /* Dark Red */
    font-weight: 600;
    font-family: var(--font-heading);
    /* Elegant Font (Cinzel) */
    margin: 5px 0 15px 0;
    line-height: 1.4;
}

.per-area {
    display: none;
    /* Hide old span if present, though HTML changed */
}

.payment-note {
    font-weight: 700;
    color: var(--primary-red);
    font-style: normal;
    margin-top: 10px;
}

.bank-details {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    min-width: 300px;
}

.bank-details h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.account-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.account-row .label {
    font-weight: 600;
    color: #555;
}

.account-row .value {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary-red);
    cursor: pointer;
}

.important-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--primary-red);
    background: rgba(128, 0, 32, 0.05);
    padding: 10px;
    border-radius: 4px;
}

/* Table */
.table-actions {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.table-actions input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 300px;
    font-family: var(--font-body);
}

.formal-table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--primary-red);
    color: #fff;
    padding: 15px 20px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fffdf0;
    /* light cream hover */
}

a.download-link {
    display: inline-block;
    padding: 6px 15px;
    background-color: #fff;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

a.download-link:hover {
    background-color: var(--primary-red);
    color: #fff;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 5px solid var(--primary-red);
}

footer .small {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.6;
}