@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --dark-red: #3F070B;
    --deep-crimson: #710A14;
    --dark-burgundy: #180605;
    --dusty-rose: #818582;
    --rustic-red: #8F3C45;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2c2c2c;
    background-color: #e8e8e8;
}

.site-wrapper {
    position: relative;
    min-height: 100vh;
}

.main-content {
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #e8e8e8;
}

.page-header-burgundy {
    background-color: var(--deep-crimson);
    padding: 1.8rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.image-header {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.image-header .logo {
    width: clamp(40px, 10vw, 80px);
    height: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.header-social {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.header-social-link {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.header-social-link:hover {
    background: white;
    color: var(--deep-crimson);
    transform: translateY(-2px);
}

.page-header-content {
    text-align: center;
    color: white;
    max-width: 600px;
    margin-top: 1rem;
}

.page-header-content h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.3px;
}

.page-header-content p {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 400;
}

.section {
    padding: 2rem 1.5rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.contenido-pagina {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.horarios-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-card:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: left;
    color: var(--dark-burgundy);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--rustic-red);
}

.horario-bloque {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.2rem;
}

.dia-semana {
    font-weight: 600;
    color: var(--deep-crimson);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.horarios-separados {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.horario-turno {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.turno {
    font-weight: 500;
    color: #666;
    font-size: 0.85rem;
}

.hora {
    color: #2c2c2c;
    font-size: 0.9rem;
    font-weight: 500;
}

.contacto-lista {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contacto-linea {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.3rem 0;
}

.contacto-etiqueta {
    font-weight: 600;
    color: var(--deep-crimson);
    font-size: 0.95rem;
    min-width: 70px;
}

.contacto-texto {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.observacion-texto {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: justify;
    margin-top: 0.5rem;
}

.footer {
    background: var(--dark-burgundy);
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .page-header-burgundy {
        padding: 1.2rem 1rem;
        min-height: 160px;
    }
    
    .image-header {
        top: 0.8rem;
    }
    
    .image-header .logo {
        width: clamp(30px, 12vw, 60px);
    }
    
    .header-social {
        top: 0.8rem;
        right: 0.8rem;
    }
    
    .header-social-link {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .page-header-content {
        margin-top: 0.5rem;
    }
    
    .page-header-content h1 {
        font-size: 1.2rem;
        margin-top: 1rem;
    }
    
    .page-header-content p {
        font-size: 0.75rem;
    }
    
    .contenido-pagina {
        padding: 1.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        padding-left: 0.8rem;
    }
    
    .horario-bloque {
        padding: 1rem;
    }
    
    .horario-turno {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .turno {
        font-size: 0.8rem;
    }
    
    .hora {
        font-size: 0.85rem;
    }
    
    .contacto-linea {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .contacto-etiqueta {
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .contacto-texto {
        font-size: 0.8rem;
    }
    
    .observacion-texto {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .header-social-link {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .page-header-content h1 {
        font-size: 1rem;
    }
    
    .page-header-content p {
        font-size: 0.7rem;
    }
}

.menu-links a.active {
    background: #f5e6e6;
    border-left-color: var(--deep-crimson);
    padding-left: 2.5rem;
}

/* Sección de contacto rediseñada */
.contacto {
    background-color: #f9f9f9;
    padding: 3rem 1.5rem;
}

/* Grid de tres columnas */
.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

/* Cada columna */
.contacto-col {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.contacto-col h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-burgundy);
    border-bottom: 2px solid var(--dusty-rose);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.contacto-col p {
    margin: 0.5rem 0;
    color: #333;
    line-height: 1.4;
}

/* Enlace para boletín */
.contacto-link {
    color: var(--deep-crimson);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.contacto-link:hover {
    color: var(--rustic-red);
    text-decoration: underline;
}

/* Estilos de los items de contacto (para la columna central) */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    background: #f9f9f9;
    padding: 0.8rem;
    border-radius: 8px;
}

.contacto-icon {
    font-size: 1.3rem;
    min-width: 32px;
    text-align: center;
}

.contacto-item p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive: en pantallas medianas se apila a dos columnas, en móviles una */
@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacto-col:last-child {
        grid-column: span 2;
    }
}
@media (max-width: 600px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .contacto-col:last-child {
        grid-column: auto;
    }
    .contacto-item {
        justify-content: center;
        text-align: center;
    }
}
