/*
 * BCNLIP Pages — Custom Styles
 *
 * These pages use BCNLIP custom Gutenberg blocks.
 * All styling comes from the block's own style.css files.
 * This file is reserved for page-specific layout tweaks if needed.
 */

/* Page content offset for fixed header */
#page-content,
.page-content,
main {
    padding-top: 0;
}

/* Page Hero Section */
.page-hero {
    background-color: #1C5263;
    padding: 4rem 0;
    position: relative;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Backgrounds */
.section-white {
    background-color: #ffffff;
    padding: 4rem 0;
}

.section-stone {
    background-color: #f5f5f4;
    padding: 4rem 0;
}

.section-dark {
    background-color: #1C5263;
    padding: 4rem 0;
}

.section-accent {
    background-color: #ebb524;
    padding: 4rem 0;
}

/* Two Column Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

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

@media (max-width: 1024px) {
    .includes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .includes-grid {
        grid-template-columns: 1fr;
    }
}

.include-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1c1917;
}

.include-icon {
    color: #1C5263;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Schedule Cards */
.schedule-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

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

.schedule-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.schedule-time {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.schedule-label {
    color: #a8a29e;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.schedule-note {
    color: #a8a29e;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}

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

@media (max-width: 1024px) {
    .level-grid-9 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .level-grid-9 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.level-card {
    background: #1C5263;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #fff;
}

.level-name {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.level-desc {
    font-size: 0.75rem;
    color: #d6d3d1;
}

/* Stats Grid (used in Contacto + other pages) */
.bcnlip-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 480px) {
    .bcnlip-stats-grid {
        gap: 1rem;
    }
}

/* Stats Card */
.bcnlip-stats-card {
    background: #1C5263;
    border-radius: 16px;
    padding: 2rem;
}

/* Contact info item rows: yellow bar + text side by side */
.wp-block-group .bcnlip-contact-hero,
.section-white .wp-block-group > div[style*="gap"][style*="margin-bottom:2rem"],
.section-white .wp-block-group > div[style*="gap:1.25rem"] {
    display: flex !important;
    align-items: flex-start;
}

/* Social links flex */
.wp-block-group > div[style*="gap:0.75rem"][style*="flex-wrap"] {
    display: flex !important;
    flex-wrap: wrap;
}

/* Contact form grid rows */
.wp-block-group > div[style*="grid-template-columns:1fr 1fr"] {
    display: grid !important;
}

@media (max-width: 767px) {
    .wp-block-group > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Contact page hero stats flex row */
.bcnlip-contact-hero .wp-block-group[style*="justify-content:center"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Contact action buttons row */
.bcnlip-contact-hero .wp-block-group[style*="flexWrap"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 767px) {
    /* Stack CTA buttons on mobile */
    .bcnlip-contact-hero .wp-block-group {
        flex-direction: column;
    }

    /* Contact form section */
    .section-white#contacto-form .grid-2 {
        gap: 2rem;
    }
}

/* CTA Center */
.cta-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-center h2 {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #1c1917;
    margin-bottom: 1rem;
}

.cta-center p {
    color: #44403c;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.section-accent .btn-outline {
    background-color: transparent;
    border: 2px solid #1c1917;
    color: #1c1917;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.section-accent .btn-outline:hover {
    background-color: #1c1917;
    color: #ffffff;
}
