
/*
Theme Name: El Celler d'Habitatges Custom
Theme URI: https://elcellerdhabitatges.cat
Author: Asistente de Programación
Description: Tema a medida para cooperativa de vivienda intergeneracional.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: el-celler
*/

/* PALETA DE COLORES EL CELLER */
:root {
    --primary: #1a5e5f;
    --secondary: #f39c12;
    --light: #f4f7f6;
    --white: #ffffff;
    --dark: #1a202c;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    transition: all 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* DISEÑO DEL MAPA */
#map {
    height: 500px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1;
}

/* ESTILO LECTURA FÁCIL (Cuando se activa) */
body.lectura-facil {
    font-size: 1.5rem !important;
    line-height: 2 !important;
    background-color: #fff !important;
    color: #000 !important;
}

body.lectura-facil .card, body.lectura-facil nav {
    border: 3px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
}

/* BOTONES */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* ESTILOS DE PROYECTOS */
.card-proyecto {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.card-proyecto:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Ajuste para que el botón de las tarjetas use el color corporativo */
.card-proyecto .btn-primary {
    background-color: #1a5e5f;
    color: white;
    font-weight: bold;
}

/* RESPONSIVE (MÓVIL) */
@media (max-width: 768px) {
    header h2 { font-size: 2rem; }
    #map { height: 350px; }
}

/* CONFIGURACIÓN MODO LECTURA FÁCIL */
body.lectura-facil {
    font-size: 1.4rem !important; /* Letra mucho más grande */
    background-color: #ffffff !important;
    color: #000000 !important;
    line-height: 1.8 !important; /* Más espacio entre líneas */
}

body.lectura-facil .card, 
body.lectura-facil section {
    background-color: #fff !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    color: #000 !important;
}

body.lectura-facil a, 
body.lectura-facil button {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    font-size: 1.2rem !important;
    text-decoration: underline !important;
}

body.lectura-facil h1, 
body.lectura-facil h2, 
body.lectura-facil h3 {
    color: #000 !important;
    text-transform: uppercase;
}

/* MEJORAS DE USABILIDAD MÓVIL */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero h2 {
        font-size: 2rem !important;
    }
    
    #map {
        height: 350px !important;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}