/*
Theme Name: Bomberos Petorca
Theme URI: https://bomberospetorca.cl
Author: Joaquin
Version: 1.0
Text Domain: bomberospetorca
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root{
    --rojo:#b11217;
    --rojo-dark:#8a0d12; /* Rojo profundo, más institucional */
    --dorado:#d9a441;
    --gris-suave:#f8f8f8;
    --gris-oscuro:#555;
    --texto:#222;
    --blanco:#ffffff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Source Sans 3',sans-serif;
    color:var(--texto);
    background:#fff;
    font-size:17px;
    line-height:1.7;
}

.container{
    width:90%;
    max-width:1100px;
    margin:auto;
}

/* =======================
   ESTRUCTURA CROMÁTICA ALTERNADA
======================= */

.section-blanca{
    background:var(--blanco);
    padding:90px 0;
}

.section-gris{
    background:var(--gris-suave);
    padding:90px 0;
    border-top:1px solid #f0f0f0;
    border-bottom:1px solid #f0f0f0;
}

.seccion-header{
    text-align:left;
    margin-bottom:45px;
    max-width:650px;
}

.seccion-header span{
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:.85rem;
    color:var(--rojo);
    font-weight:700;
    display:block;
    margin-bottom:8px;
}

.seccion-header h2{
    font-size:2.4rem;
    text-transform:uppercase;
    letter-spacing:1px;
    color:var(--texto);
}

/* =======================
   HEADER
======================= */

.site-header{
    position:fixed;
    top:32px;
    left:0;
    width:100%;
    z-index:9999;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid #e6e6e6;
    backdrop-filter:blur(10px);
}

.site-header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:65px;
}

.logo{
    font-size:.9rem;
    font-weight:700;
    letter-spacing:1.5px;
    color:var(--rojo);
    text-transform:uppercase;
}

nav{
    display:flex;
    gap:22px;
}

nav a{
    text-decoration:none;
    color:#333;
    font-size:14px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:0.5px;
    transition:.3s;
}

nav a:hover{
    color:var(--rojo);
}

/* =======================
   HERO
======================= */

.hero{
    height:60vh;
    min-height:500px;
    background-image:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url('https://bomberospetorca.cl/wp-content/uploads/2026/06/Carro-Bomba-Nissan.jpg');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-overlay{
    width:100%;
    text-align:center;
}

.hero-logo{
    width:130px;
    margin-bottom:20px;
}

.hero-year{
    color:var(--dorado);
    letter-spacing:3px;
    font-size:.95rem;
    margin-bottom:15px;
}

.hero h1{
    color:white;
    font-size:2.8rem; /* Ajustado sutilmente a un tamaño un 12.5% menor */
    letter-spacing:1px;
    line-height:1.05;
    font-weight:700;
    margin-bottom:20px;
    text-transform:uppercase;
}

.hero-text{
    color:#f0f0f0;
    font-size:1.15rem;
    margin-bottom:25px;
}

.hero-datos{
    color:white;
    font-size:.95rem;
    font-weight:600;
    letter-spacing:1px;
    opacity:.85;
    text-transform:uppercase;
}

/* =======================
   FRANJA INSTITUCIONAL (Estilo Bomberos.cl)
======================= */

.franja-institucional{
    background:#111111;
    color:#ffffff;
    padding:18px 0;
    font-size:0.95rem;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
}

.franja-flex{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;
}

.franja-flex span{
    opacity:0.95;
}

.franja-flex span:nth-child(even) {
    color:var(--rojo);
    font-weight:700;
}

/* =======================
   HISTORIA
======================= */

.historia-grid{
    display:grid;
    grid-template-columns:40% 60%;
    gap:60px;
    align-items:center;
}

.historia-hitos{
    display:grid;
    grid-template-columns:1fr;
    gap:25px;
    background:#fafafa;
    padding:40px;
    border-left:5px solid var(--rojo);
}

.hito-item{
    display:flex;
    flex-direction:column;
}

.hito-ano{
    font-size:2.5rem;
    font-weight:700;
    color:var(--rojo);
    line-height:1;
    margin-bottom:5px;
}

.hito-txt{
    font-size:.85rem;
    text-transform:uppercase;
    letter-spacing:1px;
    color:var(--gris-oscuro);
    font-weight:600;
}

.historia-texto-editorial h2{
    font-size:2.4rem;
    color:var(--texto);
    line-height:1.1;
    margin-bottom:25px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.historia-texto-editorial p{
    font-size:1.05rem;
    color:#444;
    margin-bottom:18px;
}

/* =======================
   OFICIALIDAD GENERAL (Limpia y Sobria)
======================= */

.oficialidad-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:25px;
}

.oficial-card{
    background:var(--blanco);
    padding:40px 25px;
    text-align:center;
    border-bottom:3px solid #e0e0e0;
    box-shadow:0 4px 15px rgba(0,0,0,0.02);
    transition:.3s;
}

.oficial-card:hover{
    border-bottom:3px solid var(--rojo);
    transform:translateY(-3px);
}

.oficial-card h3{
    font-size:1.1rem;
    color:var(--texto);
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

.nombre-oficial{
    font-size:1.05rem;
    color:var(--gris-oscuro);
    font-weight:600;
}

/* =======================
   COMANDANCIA
======================= */

.comandancia-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:35px;
    max-width:900px;
}

.comandancia-item{
    border-bottom:1px solid #eee;
    padding-bottom:15px;
}

.comandancia-item h4{
    font-size:1.2rem;
    color:var(--rojo);
    text-transform:uppercase;
    letter-spacing:0.5px;
    margin-bottom:5px;
}

.comandancia-item p{
    font-size:1.05rem;
    color:var(--texto);
    font-weight:600;
}

/* =======================
   COMPAÑÍAS (Con firma de borde superior)
======================= */

.companias-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:35px;
}

.compania-bloque{
    background:white;
    padding:40px 35px;
    box-shadow:0 4px 20px rgba(0,0,0,0.02);
    border-top:3px solid #b11217; /* Línea fina superior identitaria */
}

.cia-numero{
    font-size:1rem;
    font-weight:700;
    color:var(--rojo);
    display:block;
    margin-bottom:8px;
    letter-spacing:1px;
}

.compania-bloque h3{
    font-size:1.35rem;
    text-transform:uppercase;
    letter-spacing:0.5px;
    color:var(--texto);
}

.cia-localidad{
    font-size:.85rem;
    text-transform:uppercase;
    letter-spacing:1.5px;
    color:var(--dorado);
    font-weight:700;
    margin-bottom:25px;
    border-bottom:1px solid #f0f0f0;
    padding-bottom:10px;
}

.cia-oficiales{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.cia-oficiales .cargo{
    font-size:0.8rem;
    text-transform:uppercase;
    letter-spacing:1px;
    color:#777;
    font-weight:700;
    line-height:1;
}

.cia-oficiales .nombre{
    font-size:1.05rem;
    color:var(--texto);
    font-weight:600;
    line-height:1.2;
}

/* =======================
   CONTACTO (Rojo Profundo Institucional)
======================= */

.cta{
    background:var(--rojo-dark); /* Hereda #8a0d12 */
    color:white;
    padding:50px 0;
}

.cta-flex{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
}

.cta-info h2{
    font-size:2rem;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:5px;
}

.cta-info p{
    font-size:1rem;
    opacity:.85;
}

.cta-contacto{
    background:var(--rojo);
    padding:20px 40px;
    text-align:right;
    box-shadow:0 5px 20px rgba(0,0,0,0.15);
}

.cta-urgencia{
    display:block;
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:2px;
    opacity:.9;
    font-weight:600;
}

.cta-numero{
    font-size:1.6rem;
    font-weight:700;
    letter-spacing:1px;
}

/* =======================
   FOOTER
======================= */

.site-footer{
    background:#0c0c0c;
    color:white;
    padding:50px 0;
}

/* =======================
   RESPONSIVE
======================= */

@media(max-width:1000px){
    .historia-grid {
        grid-template-columns:1fr;
        gap:40px;
    }
    .franja-flex{
        flex-direction:column;
        gap:8px;
    }
    .franja-flex span:nth-child(even){
        display:none;
    }
    .cta-flex{
        flex-direction:column;
        text-align:center;
    }
    .cta-contacto{
        text-align:center;
        width:100%;
    }
}

@media(max-width:900px){
    .oficialidad-grid{
        grid-template-columns:repeat(2, 1fr);
    }
    .comandancia-grid{
        grid-template-columns:1fr;
        gap:25px;
    }
    .companias-grid{
        grid-template-columns:1fr;
        gap:35px;
    }
    .hero h1{
        font-size:2.3rem;
    }
    nav{
        display:none;
    }
}

@media(max-width:600px){
    .oficialidad-grid{
        grid-template-columns:1fr;
    }
    .hero-datos{
        font-size:.85rem;
        line-height:1.6;
        padding:0 15px;
    }
}