/*================= ESTILOS GENERALES =======================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:#f4f6f8;
    color:#333;
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.contenedor{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/*============== CABECERA ==============*/

.cabecera{

    background:#006B3C;
    padding:15px 0;

}

.encabezado{

    width:90%;
    max-width:1300px;
    margin:auto;

    display:grid;
    grid-template-columns:150px 1fr 150px;
    align-items:center;

}

.logo-izquierdo,
.logo-derecho{

    display:flex;
    justify-content:center;
    align-items:center;

}

.logo-izquierdo img,
.logo-derecho img{

    width:120px;
    height:120px;
    object-fit:contain;

}

.titulo-cabecera{
    text-align:center;
    color:white;
}

.titulo-cabecera h1{
    margin:0;
    font-size:36px;
    font-weight:bold;
    letter-spacing:1px;
}

.titulo-cabecera h2{
    margin:8px 0;
    font-size:24px;
    font-weight:500;
}

.titulo-cabecera p{
    margin:0;
    font-size:18px;
}

/*=============== MENÚ =====================*/

.menu{
    background:#004B2C;
}

.menu ul{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

.menu li{
    margin:5px;
}

.menu a{
    color:#fff;
    display:block;
    padding:15px 25px;
    transition:.3s;
    font-weight:bold;
    border-radius:5px;
}

.menu a:hover{
    background:#008C4A;
}

.activo{
    background:#008C4A;
}

/*============ BANNER ==================*/

.banner{
    margin:30px auto;
}

.banner img{
    width:100%;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.25);
}

/*============== TITULOS ====================*/

.titulo{
    text-align:center;
    color:#006B3C;
    font-size:34px;
    margin:40px 0 20px;
}

.subtitulo{
    text-align:center;
    color:#666;
    margin-bottom:40px;
}

/*============== SECCION NOSOTROS ================*/

.nosotros{
    display:flex;
    gap:40px;
    align-items:center;
    margin-bottom:60px;
    flex-wrap:wrap;
}

.imagen{
    flex:0 0 350px;
    text-align:center;
}

.imagen img{
    width: 300px;
    height:auto;
    margin:auto;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

.texto{
    flex:1;
}

.texto p{
    text-align:justify;
    margin-bottom:15px;
    font-size:17px;
}
/*================ TARJETAS ====================*/

.tarjetas{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:30px;
    margin:40px 0;
}

.tarjeta{
    background:#ffffff;
    width:340px;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    transition:.3s;
    display:flex;
    flex-direction:column;
}

.tarjeta:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.tarjeta::before{
    content:"";
    width:100%;
    height:6px;
    background:#006B3C;
    display:block;
}

.tarjeta img{
    width: 250px;
    height: 250px;
    object-fit:contain;
    margin:20px auto;
    display:block;
    transition:.3s;
}
.tarjeta:hover img{
    transform:scale(1.08);
}

.tarjeta h3{
    color:#006B3C;
    text-align:center;
    margin-bottom:15px;
    font-size:24px;
}

.tarjeta p{
    width:90%;
    margin:auto;
    text-align:center;
    color:#555;
    line-height:28px;
    margin-bottom:25px;
}

/*=========== BOTONES ===============*/

.boton{
    display:block;
    width:85%;
    margin:0 auto 25px;
    padding:14px;
    background:#006B3C;
    color:white;
    text-align:center;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
}

.boton:hover{
    background:#00994D;
    transform:scale(1.03);
}

/*================= SERVICIOS ===============*/

.servicios{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
    margin:50px 0;
}

.servicio{
    width:260px;
    background:white;
    border-radius:12px;
    padding:30px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    transition:.3s;
}

.servicio:hover{
    transform:translateY(-8px);
}

.servicio h3{
    color:#006B3C;
    margin-bottom:15px;
    font-size:24px;
}

.servicio p{
    color:#555;
    line-height:28px;
}

/*=================== GALERIA ==============*/

.galeria{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    margin:40px 0;
}

.galeria img{
    width:320px;
    height:220px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 5px 12px rgba(0,0,0,.2);
    transition:.3s;
}

.galeria img:hover{
    transform:scale(1.05);
}
/*============  VIDEO ===========*/
.video{

    display:flex;
    justify-content:center;
    margin:50px 0;
}

.video video{
    width:90%;
    max-width:900px;
    border-radius:12px;
    box-shadow:0 6px 15px rgba(0,0,0,.25);
}
/*================= FOOTER ==============*/

.footer{
    margin-top:60px;
}

/* Franja verde principal */
.footer-superior{
    background:#006B3C;
    color:white;
    padding:40px 0;
}

.footer-contenido{
    width:90%;
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:30px;
}

.footer-columna{
    flex:1;
    min-width:250px;
}

.footer-columna h3{
    margin-bottom:15px;
    border-bottom:2px solid white;
    padding-bottom:10px;
}

.footer-columna p{
    margin:8px 0;
}

/* Franja inferior */
.footer-inferior{
    background:#004B2C;
    color:white;
    text-align:center;
    padding:18px;
    font-size:15px;
}
/*============= DESCARGA DE FLYER ============*/

.numerosdeemergacia{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:40px 0;
}

.numerosdeemergacia img{
    width:500px;
    max-width:100%;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.25);
    cursor:pointer;
    transition:.3s;
}
.numerosdeemergacia img:hover{
    transform:scale(1.03);
    box-shadow:0 8px 20px rgba(0,0,0,.35);
}
/*====== FONDO ======*/
.nosotros {
    background: url("img/fondo-unitic.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    padding: 40px;
}
body {
    background:
        linear-gradient(rgba(30, 58, 31, 0.95),
        rgba(255,255,255,.95)),
        url("img/regpolmoq.jpg");

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}