/* ========================================
   JUNTA VECINAL DE SOMO
   Estilos principales
======================================== */


/* ---------- BASE ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #243746;
    background: #ffffff;
    line-height: 1.6;
}
.menu-toggle {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.contenedor {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* ---------- CABECERA ---------- */

.cabecera {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e7eeee;
}

.cabecera-interior {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    display: block;
    width: auto;
    height: 100px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu a {
    color: #254b59;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.menu a:hover {
    color: #168b91;
}/* ---------- CABECERA ---------- */

.cabecera {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e7eeee;
}

.cabecera-interior {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    display: block;
    width: auto;
    height: 100px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu a {
    color: #254b59;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.menu a:hover {
    color: #168b91;
}


/* ---------- PORTADA ---------- */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(16, 63, 73, 0.88) 0%,
            rgba(16, 63, 73, 0.60) 45%,
            rgba(16, 63, 73, 0.20) 100%
        ),
        url("../img/portada.jpg");

    background-size: cover;
    background-position: center;
}

.hero-contenido {
    width: min(1180px, 90%);
    margin: 0 auto;
    color: white;
}

.hero-superior {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-texto {
    max-width: 560px;
    font-size: 21px;
    margin-bottom: 35px;
}

.hero-botones {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(16, 63, 73, 0.88) 0%,
            rgba(16, 63, 73, 0.60) 45%,
            rgba(16, 63, 73, 0.20) 100%
        ),
        url("../img/portada.jpg");

    background-size: cover;
    background-position: center;
}

.hero-contenido {
    width: min(1180px, 90%);
    margin: 0 auto;
    color: white;
}

.hero-superior {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-texto {
    max-width: 560px;
    font-size: 21px;
    margin-bottom: 35px;
}

.hero-botones {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* ---------- BOTONES ---------- */
}


/* ---------- BOTONES ---------- */

.boton {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.boton-principal {
    background: #ffffff;
    color: #155f67;
}

.boton-principal:hover {
    transform: translateY(-2px);
}

.boton-secundario {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: white;
}

.boton-secundario:hover {
    background: white;
    color: #155f67;
}


/* ---------- ACCESOS ---------- */

.accesos {
    position: relative;
    margin-top: -55px;
    z-index: 10;
}

.accesos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.acceso {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(24, 65, 73, 0.12);
    transition: transform 0.25s ease;
}

.acceso:hover {
    transform: translateY(-5px);
}

.acceso-icono {
    font-size: 30px;
}

.acceso h3 {
    color: #155f67;
    margin-bottom: 3px;
}

.acceso p {
    color: #6b7c82;
    font-size: 14px;
}


/* ---------- SECCIONES ---------- */

.seccion {
    padding: 100px 0;
}

.seccion-clara {
    background: #f3f7f6;
}

.titulo-seccion {
    max-width: 700px;
    margin-bottom: 45px;
}

.etiqueta {
    color: #168b91;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.titulo-seccion h2,
.contacto h2 {
    color: #173f4a;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 15px;
}

.titulo-seccion > p:last-child {
    color: #63757b;
    font-size: 18px;
}


/* ---------- MENSAJE PROVISIONAL ---------- */

.mensaje-provisional {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px;
    border: 1px solid #dce8e7;
    border-radius: 14px;
    background: #ffffff;
}

.mensaje-provisional > span {
    font-size: 38px;
}

.mensaje-provisional h3 {
    color: #155f67;
    margin-bottom: 5px;
}

.mensaje-provisional p {
    color: #6b7c82;
}


/* ---------- SERVICIOS ---------- */

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
/* ---------- TARJETAS DE SERVICIOS ---------- */

.tarjeta-servicio {
    padding: 0;
    border: 1px solid #dce8e7;
    border-radius: 16px;
    background: white;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(24, 65, 73, 0.10);
}

.tarjeta-servicio > img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}

.tarjeta-servicio-contenido {
    padding: 22px 25px 25px;
}

.tarjeta-servicio h3 {
    color: #155f67;
    font-size: 22px;
    margin: 0 0 8px;
}

.tarjeta-servicio p {
    color: #63757b;
    margin: 0;
}

/* ---------- CONTACTO ---------- */

.contacto {
    padding: 80px 0;
    background: #155f67;
    color: white;
}

.contacto .etiqueta {
    color: #b9e1dc;
}

.contacto h2 {
    color: white;
}

.contacto-interior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contacto-interior > div {
    max-width: 700px;
}

.contacto-interior p:last-child {
    font-size: 18px;
    opacity: 0.9;
}

.boton-blanco {
    background: white;
    color: #155f67;
    white-space: nowrap;
}


/* ---------- PIE ---------- */

.pie {
    padding: 35px 0;
    background: #123f49;
    color: white;
}

.pie-interior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pie img {
    height: 55px;
    width: auto;
}

.copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}


/* ---------- MÓVIL ---------- */

@media (max-width: 850px) {

    .cabecera-interior {
        min-height: 78px;
    }

    .logo img {
        height: 55px;
    }

    .menu {
    display: none;
    position: absolute;
    top: 78px;
    right: 20px;
    flex-direction: column;
    gap: 0;
    background: white;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    z-index: 1000;
}

.menu.menu-abierto {
    display: flex;
}

.menu a {
    padding: 10px 20px;
    font-size: 15px;
    text-align: left;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .accesos {
        margin-top: 0;
        padding-top: 20px;
    }

    .accesos-grid {
        grid-template-columns: 1fr;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .contacto-interior {
        flex-direction: column;
        align-items: flex-start;
    }

    .pie-interior {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 500px) {

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-texto {
        font-size: 18px;
    }

    .seccion {
        padding: 70px 0;
    }

    .mensaje-provisional {
        align-items: flex-start;
    }
}
/* ---------- NOTICIAS ---------- */

.noticia-principal {
    display: grid;
    grid-template-columns: 42% 58%;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(24, 65, 73, 0.10);
}

.noticia-imagen {
    background: #edf4f3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.noticia-imagen img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.noticia-contenido {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noticia-fecha {
    color: #168b91;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.noticia-contenido h3 {
    color: #173f4a;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.noticia-contenido p:not(.noticia-fecha) {
    color: #63757b;
    font-size: 17px;
    margin-bottom: 25px;
}

.enlace-noticia {
    color: #155f67;
    font-weight: 700;
}


/* ---------- NOTICIAS EN MÓVIL ---------- */

@media (max-width: 850px) {

    .noticia-principal {
        grid-template-columns: 1fr;
    }

    .noticia-contenido {
        padding: 35px;
    }

}
/* LA JUNTA */

.junta-contenido {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.junta-imagen {
    width: 100%;
}

.junta-imagen img {
    width: 100%;
    max-width: 520px;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.junta-texto {
    max-width: 650px;
}

/* Adaptación para móvil */

@media (max-width: 768px) {

    .junta-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .junta-imagen img {
        max-width: 100%;
        height: 300px;
    }

    .junta-texto {
        max-width: 100%;
    }

}
/* BOTONES DE CONTACTO */

.contacto-botones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 360px;
    margin-left: auto;
}

.contacto-botones .boton {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Móvil */

@media (max-width: 768px) {

    .contacto-botones {
        max-width: 100%;
        margin-left: 0;
    }

}
/* PIE DE PÁGINA */

.pie-titulo {
    margin: 15px 0 8px;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pie .copyright {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.75;
}
/* ---------- DETALLES DEL MENÚ ---------- */

.menu a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.menu a:hover {
    color: #2f7f8c;
    transform: translateY(-2px);
}

/* Botón del menú móvil */

.menu-toggle {
    transition: transform 0.2s ease;
}

.menu-toggle:hover {
    transform: scale(1.08);
}
/* ---------- EFECTO TARJETAS DE SERVICIOS ---------- */

.tarjeta-servicio {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(36, 55, 70, 0.12);
}

.tarjeta-servicio img {
    transition: transform 0.3s ease;
}

.tarjeta-servicio:hover img {
    transform: scale(1.02);
}
/* ---------- EFECTO NOTICIAS ---------- */

.noticia-principal {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 18px;
}

.noticia-principal:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(36, 55, 70, 0.12);
}

.noticia-imagen {
    overflow: hidden;
}

.noticia-imagen img {
    transition: transform 0.4s ease;
}

.noticia-principal:hover .noticia-imagen img {
    transform: scale(1.03);
}

.enlace-noticia {
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.enlace-noticia:hover {
    color: #2f7f8c;
    transform: translateX(4px);
}
/* ---------- PIE DE PÁGINA ---------- */

.pie {
    padding: 55px 0 30px;
}

.pie-interior {
    gap: 18px;
}

.pie-interior img {
    width: 75px;
    height: auto;
}

.pie-titulo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    margin: 5px 0;
}

.copyright {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 5px;
}