@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@import url("variables.css");

html {
    font-family: "Montserrat", sans-serif;
    margin: 0px;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0px;
    padding: 0px;
    width: 100%;
}

.logoGrupo {
    max-width: 200px;
    width: 40%;
}

footer {
    margin-top: 80px;
    width: 100%;
    background: rgb(184, 196, 181);
    padding: 40px;
}

footer .iconoPie {
    width: 45px;
    height: 30px;
    padding-right: 15px;
}


h1 {
    font-weight: bold;
    font-style: normal;
    font-size: 4rem;
    color: #222;
}

h2 {
    padding-top: 90px;
    color: #1E5032 !important;
    font-size: 2.5rem !important;
}

h3 {
    padding-top: 40px;
    font-size: 1.9rem !important;
    color: #F07E24 !important;
}

.icono {
    width: 20px;
    margin-right: 20px;
}

.sombra {
    text-shadow: 4px 2px 2px black;
}

.marca {
    width: 90%; 
    max-width: 250px;
}

.logo {
    width: 150px;
    height: 150px;
    text-align: center;
    margin: auto;
}

.imagenLineas {
    width: 300px;
}

.tituloLineas {
    margin: 0px;
    padding: 0px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.textoLineas {
    margin: 0px;
    padding: 0px;
    font-size: 24px;
    text-align: center;
}

.cargo {
    font-style: italic;
    font-size: 14px;
    color: var(--noNegro);
}

.nombreMarca {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.marcas {
    width: 100%;
    text-align: center;
    transition: all 0.3s;
}

.marcas:hover {
    transform: scale(1.2);
}

.envuelve a {
    color:#222;
}

.envuelve a:hover {
    font-weight: normal;
}

.imagenDelegacion {
    width: 250px;
    margin-right: 50px;
    margin-left: 50px;
}

.iconoUsuario {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
}

.contenedor-grafica {
    width: 100%;
    max-width: 600px;
    height: 350px; /* <--- IMPORTANTE: Dale una altura fija para que el scroll funcione bien */
    margin: 50px auto; 
    position: relative;
}

#contactoOficinas.ventanaDespliega {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    
    /* Centrado del contenido */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estado activo disparado desde JS */
#contactoOficinas.ventanaDespliega.activa {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Contenedor interno donde entra el HTML inyectado */
.contenido-modal {
   background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    
    /* Ancho y Alto recomendados para la ficha de contacto */
    width: 90%;
    max-width: 650px;
    min-height: 350px; /* Evita que el contenedor se colapse */
    max-height: 85vh;
    
    /* Configuración de layout interno */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
    overflow-y: auto; /* Permite scroll interno si el contenido es extenso */
    position: relative;
}

.emergente {
    position: absolute; /* O 'fixed' si quieres que no se mueva al hacer scroll */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    margin: auto;
    border: 1px solid black;
    border-radius: 20px;
    background: white;
}

.textoEmergente {
    padding: 10px 90px 10px 90px;
}

.botonCierra {
    width: 20px;
    margin: 20px;
    cursor: pointer;
}

.delegaciones {
    padding-bottom: 20px;
}

.textoDestacado {
    font-size: 2.5rem;
    color: white;
    text-shadow: 4px 2px 2px black;
}

.tituloWeb {
    width: 100%;
    margin: 0px;
    padding: 2rem;
    text-align: center;
    background-image: url('/images/fondo_campo.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.tituloBodega{
    text-align: center;
    margin: 20px 0px 10px 0px;
    padding: 0px;
    text-transform: uppercase;
}

.textoBodega {
    width: 500px;
    margin: auto;
    padding-top: 9px;
    text-align: left;
}

.card {
    padding: 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 15px #222;
}

.tituloGrafica {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.anchoEmpresas {
    width: 20%;
}

.proyectosA {
    width: 90%;
    margin: 50px;
    border-radius: 10px;
}

.contenedorCentrado {
    width: 100%;
    margin: 5rem auto;
    text-align: center;
}

.equipo .contenedorImagen {
    width: 200px;
    height: 200px;
    margin: auto;
    overflow: hidden;
    border-radius: 50%;
    text-align: center;
}

.equipo {
    display: inline;
    width: 20%;
    padding: 2rem;
    text-align: center;
}

.equipo .imagen {
    text-align: center;
    width: 100%;
}

.equipo p {
    text-align: center;
}

.formul input {
    width: 20rem;
    margin: 0.5rem;
    padding: 10px;

    border: 1px solid #777;
    border-radius: 5px;
}

.formul select {
    width: 20rem;
    margin: 0.5rem;
    padding: 10px;

    border: 1px solid #777;
    border-radius: 5px;
}

.formul input[type="submit"] {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);

    cursor: pointer;
    transition: all 0.3s;
}

.formul input[type="submit"]:hover {
    background-color: var(--button-hover-bg-color);
}

@media(max-width: 806px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1rem;
    }

    .textoDestacado {
        font-size: 1.8rem;
    }

    .logoGrupo {
        width: 40%;
        max-width: 450px;
    }

    .anchoEmpresas {
        width: 100%;
    }

    .contenedor-grafica {
        width: 90%;
    }

    .textoEmergente {
        padding: 10px 40px 10px 40px;
    }

    .imagenDelegacion {
        width: 190px;
    }

    .equipo {
       width: 500px;
    }
}