/* =========================
   CONFIGURACION GENERAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f5f7fa;
    color:#333;
}

/* =========================
   MENU
========================= */

nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    z-index:1000;
}

.logo{
    font-size:30px;
    font-weight:bold;
    color:#0b2d5b;
}

nav ul{
    list-style:none;
    display:flex;
    gap:30px;
}

nav ul li a{
    text-decoration:none;
    color:#0b2d5b;
    font-weight:bold;
    transition:.3s;
}

nav ul li a:hover{
    color:#ff6a00;
}

/* =========================
   PORTADA
========================= */

.hero{
    min-height:100vh;

    background:
    linear-gradient(
        rgba(0,35,70,.70),
        rgba(0,35,70,.70)
    ),
    url("seguridad-higiene-laboral-1.jpg");

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;

    padding:120px 8%;
}

.contenido{
    max-width:700px;
    color:white;
}

.contenido h1{
    font-size:70px;
    line-height:1.1;
    margin-bottom:20px;
}

.contenido p{
    font-size:24px;
    margin-bottom:30px;
}

.boton{
    display:inline-block;
    text-decoration:none;
    background:#ff6a00;
    color:white;
    padding:16px 35px;
    border-radius:10px;
    font-size:18px;
    font-weight:bold;
    transition:.3s;
}

.boton:hover{
    background:#ff8c00;
}

/* =========================
   TITULOS
========================= */

section h2{
    font-size:40px;
    text-align:center;
    margin-bottom:40px;
    color:#0b2d5b;
}

/* =========================
   SERVICIOS
========================= */

.servicios{
    padding:80px 8%;
    background:white;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.card{
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    color:#0b2d5b;
    margin-bottom:15px;
}

.card p{
    line-height:1.6;
}

/* =========================
   SOBRE MI
========================= */

.sobre{
    background:#0b2d5b;
    color:white;
    padding:80px 8%;
    text-align:center;
}

.sobre h2{
    color:white;
}

.sobre p{
    max-width:900px;
    margin:auto;
    font-size:20px;
    line-height:1.8;
}

/* =========================
   VENTAJAS
========================= */

.ventajas{
    padding:80px 4%;
    background:#f7f7f7;
}

/* =========================
   PRESUPUESTO
========================= */

.presupuesto{
    background:#ff6a00;
    color:white;
    text-align:center;
    padding:80px 8%;
}

.presupuesto h2{
    color:white;
}

.presupuesto p{
    font-size:22px;
    margin-bottom:30px;
}

.presupuesto .boton{
    background:white;
    color:#ff6a00;
}

.presupuesto .boton:hover{
    background:#f2f2f2;
}

/* =========================
   CONTACTO
========================= */

.contacto{
    padding:80px 8%;
    background:white;
}

.contacto form{
    max-width:800px;
    margin:auto;
}

.contacto input,
.contacto textarea{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:16px;
}

.contacto textarea{
    resize:none;
}

.contacto button{
    width:100%;
    padding:18px;
    border:none;
    background:#ff6a00;
    color:white;
    font-size:18px;
    border-radius:8px;
    cursor:pointer;
}

.contacto button:hover{
    background:#ff8c00;
}

/* =========================
   DATOS
========================= */

.datos{
    background:#f5f5f5;
    text-align:center;
    padding:60px 8%;
}

.datos p{
    margin:15px 0;
    font-size:18px;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#0b2d5b;
    color:white;
    text-align:center;
    padding:30px;
}

footer h3{
    margin-bottom:10px;
}

/* =========================
   RESPONSIVE MOVIL
========================= */

@media(max-width:768px){

   nav{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        flex-wrap:wrap;
        gap:10px;
    }

    nav ul{
        width:100%;
        justify-content:center;
        margin-top:10px;
    }


    .hero{
        text-align:center;
        justify-content:center;
        padding-top:120px;
    }
   .contenido{
        margin-top:40px;
    }

    .contenido h1{
        font-size:36px;
    }

    .contenido p{
        font-size:18px;
    }

    section h2{
        font-size:32px;
    }
   .modal-contenido{
        width:95%;
        box-sizing:border-box;
    }

    .modal-contenido img{
        width:100%;
        max-width:100%;
    }

   

}
.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.85);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal-contenido{
    background:white;
    width:90%;
    max-width:700px;
    max-height:80vh;
    overflow-y:auto;
    padding:15px;
    border-radius:15px;
    position:relative;
}

.modal-contenido img{
    width:50%;
    max-width:350px;
    max-height:200px;
    height:auto;
    display:block;
    margin:0 auto 20px auto;
    border-radius:10px;
    object-fit:cover;
}
.cerrar{
    position:absolute;
    top:10px;
    right:20px;
    font-size:40px;
    cursor:pointer;
}
.card img{
    width:150px;
    height:140px;
    object-fit:cover;
    display:block;
    margin:0 auto 15px auto;
    border-radius:10px;
}
.card{
    text-align:center;
}
.btn-servicio{
    padding:6px 10px;
    font-size:14px;
   background:#ff6b00;
    color:white;
    border:none;
    border-radius:25px;
    cursor:pointer;
    font-weight:600;
}
.whatsapp-float{
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    text-decoration: none;
}

.whatsapp-float img{
     width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.logo{
    font-size:30px;
    font-weight:bold;
    color:#0b2d5b;
}
section{
    width:100%;
    display:block !important;
}

.servicios,
.sobre,
.ventajas,
.presupuesto,
.contacto,
.datos,
footer{
    clear:both;
    width:100%;
}
.logo-nav{
    width:60px;
    height:60px;
    object-fit:contain;
    vertical-align:middle;
    margin-right:12px;
}
.logo-nav{
    width:70px !important;
    height:auto !important;
    max-width:70px !important;
    display:inline-block;
    vertical-align:middle;
}
.atencion-personalizada{
    background-image: url("atencion-personalizada.png");
    background-size: cover;
    background-position: center;
    min-height: 220px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    overflow: hidden;
}

.atencion-personalizada::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.atencion-personalizada h3{
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.4rem;
    text-align: center;
}
.respuesta-rapida{
    background-image: url("respuesta-rapida.png");
    background-size: cover;
    background-position: center;
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.respuesta-rapida::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.respuesta-rapida h3{
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}
.experiencia-tecnica{
    background-image: url("experiencia-tecnica.png");
    background-size: cover;
    background-position: center;
    min-height: 220px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    overflow: hidden;
}

.experiencia-tecnica::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.experiencia-tecnica h3{
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.4rem;
    text-align: center;
}
.soluciones-adaptadas{
    background-image: url("soluciones-adaptadas.png");
    background-size: cover;
    background-position: center;
    min-height: 220px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    overflow: hidden;
}

.soluciones-adaptadas::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.soluciones-adaptadas h3{
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.4rem;
    text-align: center;
}
@media (max-width: 768px){

.logo{
    font-size: 18px;
}

.logo img{
    width: 60px;
    height: auto;
}

nav{
    padding: 10px 15px;
}

nav ul{
    gap: 15px;
}

.img-modal{
    display:block;
    width:350px !important;
    max-width:100%;
    height:auto !important;
    margin:15px auto;
    border-radius:10px;
}
   .modal-contenido{
    box-sizing:border-box;
}

.modal-contenido img{
    max-width:100%;
    height:auto;
}
}
/* =========================
   ACTUALIDAD HSE
========================= */

.actualidad{
    padding:80px 8%;
    background:#f7f7f7;
    text-align:center;
}

.actualidad h2{
    color:#0b336f;
    font-size:2.2rem;
    margin-bottom:15px;
}

.actualidad .subtitulo{
    max-width:700px;
    margin:0 auto 40px;
    color:#555;
    font-size:1.1rem;
}

.grid-actualidad{
    display:flex;
    gap:25px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:40px;
}
.nota{
    width:320px;
    background:#ffffff;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
    border:1px solid #ddd;
}
   .nota{
    display:block;
}

.nota:hover{
    transform:translateY(-5px);
}

.nota h3{
    color:#0b336f;
    margin-bottom:15px;
}

.nota p{
    color:#555;
    margin-bottom:20px;
}

.nota a{
    display:inline-block;
    background:#ff6b00;
    color:white;
    text-decoration:none;
    padding:10px 20px;
    border-radius:25px;
    font-weight:bold;
}
.detalle-articulo{
    padding:80px 8%;
    background:#ffffff;
    text-align:center;
}

.detalle-articulo h2{
    color:#0b336f;
    margin-bottom:30px;
}

.img-articulo{
    display:block;
    margin:0 auto 25px;
    width:100%;
    max-width:600px;
    border-radius:15px;
}

.detalle-articulo p{
    max-width:800px;
    margin:15px auto;
    line-height:1.8;
    color:#444;
    text-align:left;
}

.nota a:hover{
    background:#e55f00;
}

.detalle-articulo{
    padding:80px 8%;
    background:#ffffff;
    text-align:center;
}

.detalle-articulo h2{
    color:#0b336f;
    margin-bottom:30px;
}

/* ===== MODALES ACTUALIDAD HSE ===== */

.modal-actualidad{
    max-width:900px;
    padding:30px;
}

.modal-actualidad .img-modal{
    width:100%;
    max-width:650px;
    max-height:none;
    height:auto;
    display:block;
    margin:0 auto 25px auto;
    border-radius:12px;
}

.modal-actualidad h2{
    color:#0b336f;
    text-align:center;
    margin-bottom:20px;
}

.modal-actualidad h3{
    color:#ff6b00;
    margin-top:20px;
    margin-bottom:10px;
}

.modal-actualidad p{
    line-height:1.8;
}

.modal-actualidad ul{
    padding-left:20px;
}
