*{
    margin: 0; 
    
}
html {
    scroll-behavior: smooth;
}

:root{
    --color1:#0e3983; 
    --color2:#fcd339; 
    --color3:#f0c933; /* mas suave que el otro */
}

body{
    margin-top: 15vh;
    font-family: "Montserrat", sans-serif;
    
    
}
header{
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 15vh;
    background-color: white;
    z-index: 1000;
  
 
}

header img{
    width: 100px;
    text-align: right;
    
}

.nombre{
    display: block;
    margin-left:10px ;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 700;
   
}
.color1{
    color: var(--color1);
}
.color2{
    color: var(--color2);
}

#nav{
    width: 55%;
    border-radius: 15px;
    background-color: var(--color1);
    margin-right: 10%;                                                
    
}

#nav nav{
    width: 100%;
    display: flex;
    justify-content: space-around;
}

nav a{
    
    flex-wrap:wrap;
    color: white;
    flex-direction: row;
    padding: 5px 0px;
    font-size: 20px;
    text-decoration: none;
    
}

#logo{

    width: 45%;
    margin-left: 10%;
    display: flex;
    align-items: center;
   
    
   
}

#inicio,
#servicios,
#ustedes,
#contacto {
    scroll-margin-top: 18vh;
}

#inicio {
    background-image:  linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)), url(../img/fondo_2400x1000.webp) ;  
    background-size: cover;
    height: 70vh;
    display: flex;
    align-items: center;
    
}


#soldadura-inicio{
    width: 50%;
}

#titulo-inicio{
    color: var(--color1);
    font-size: 30px;
    margin-left: 20px;
    
}
#titulo-inicio h1 {
    margin-bottom: 30px;
    
    
}





.titulos{
    color: var(--color1);
    font-size: 50px;
    text-align: center;
    margin: 50px;

} 
 

/* -------------------------SERVICIOS----------------------------- */

#servicios{
    padding: 60px 20px;
    text-align: center;
}

.contenedor-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

    max-width: 1100px;
    margin: 40px auto 0 auto; /* centra el bloque */
    
    justify-items: center; /* centra cada card */
}

.card-servicio {
    background-color: var(--color1);
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;

    font-family: "Montserrat", sans-serif;
    color: white;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
  


}

.card-servicio:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}


.card-header {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    margin-bottom: 10px;
}


.card-icono {
    font-size: 22px;
    display: flex;
    align-items: center;
}


.card-titulo {
    font-size: 20px;
    font-weight: 600;
    margin: 0; 
}


.card-descripcion {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
 
    
}

.card-icono {
    color: var(--color3);
}

.card-icono svg {
    width: 30px;
    height: 30px;
}

/* --------------------------CONTACTO------------------------------------ -------*/
.contenedor-contacto {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: #fff;
    width: 70%;
    margin: auto;
    margin-bottom: 30px;
    
    
}
.contenedor-contacto a {

    color: inherit;
    text-decoration: none;
    
}
.dato-contacto:hover  {
    color:var(--color2)
}

.columna-contacto-izquierda{
    gap: 30px;
}

.contacto-redes {
    
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: var(--color1);

}



.contenedor-datos{
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: var(--color1);
    display: flex;
    flex-direction: column;
    gap:15px;

}
.columna-contacto-izquierda {

    display: flex;
    flex-direction: column;
    
}

.contenedor-mapa iframe{
    width: 100%;
    height: 300px;
    border-radius: 12px;
    border: 0;    
    box-shadow: 0 0px 4px  rgba(0, 0, 0, 0.8);
    
}

.icono-contacto svg{

    height:  1.5rem;
    width: auto; 
    margin: 0.1rem;
    display: inline;

}

.header-dato-contacto{
    font-size: 1rem;
    margin-top: 0.3rem;
    
}

.linea-dato-contacto{
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-top:6px ;
}

.linea-dato-contacto .icono-contacto{
    flex-shrink: 0;
}

.dato-contacto p+p{
    margin-top: 5px;
}

.boton{
    font-size: 1rem;
}

.boton a{
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.boton.wp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #25D366;
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px; 
    width: fit-content;
    margin-bottom: 6px;
}

.boton.wp:hover {

    background-color: #1ebe5d;
    transform: translateY(-1px);
    
}
.boton.wp a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.boton.ig,
.boton.fb {
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    transition: 0.2s;
}
.boton.ig:hover {
    color: #E4405F; /* Instagram */
}

.boton.fb:hover {
    color: #1877F2; /* Facebook */
}






/* ---------------------------------------------------------------------------- */
/* RESOLUCIONES VERTICALES */

@media (max-width: 768px) {

    header{
        height: 12vh;
    }

    header img{
        width: 80px;
    }

    #inicio,
    #servicios,
    #ustedes,
    #contacto {
        scroll-margin-top: 14vh;
    }

    .nombre{
        font-size: 22px;
    }

    #nav{
        width: 60%;
    }

    #nav nav a{
        font-size: 16px;
    }

    #inicio{
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    #titulo-inicio{
        font-size: 22px;
        margin: 0 30px;
    }

    #soldadura-inicio{
        width: 50%;
        margin-top: 30px;
    }

   
    .contenedor-contacto {
    width: 80%;
    gap: 25px;
    }

    .contenedor-mapa iframe {
        height: 260px;
    }
}



@media (max-width: 480px) {

    body{
        margin-top: 110px;
    }

    header{
        flex-wrap: wrap;
        justify-content: center;
        align-content: flex-start;
        height: auto;
    }

    #nav{
        border-radius: 0;
        width: 100%;
        margin: 0;
    }

    #inicio,
    #servicios,
    #ustedes,
    #contacto {
        scroll-margin-top: 120px;
    }

    #inicio{
        height: 85vh;
    }
  
    #logo{
        margin: 0;
        width: 100%;
        justify-content: center;
        padding: 8px 0;
    }
  
    #titulo-inicio h1{
         font-size: 30px;
    }

    .contenedor-servicios{
        grid-template-columns: 1fr;
    }

    .card-servicio{
        max-width: 100%;
    }
   
    .contenedor-contacto {
    grid-template-columns: 1fr;
    width: 90%;
    gap: 20px;
    }

    .contenedor-mapa iframe {
        height: 220px;
    }
    .contacto-redes {
    text-align: center;
    }

    .boton {
        display: flex;
        justify-content: center;
    }
    .boton a{
        justify-content: center;
    }

    .boton.wp {
        margin: 0 auto;
    }

}