header {
    position: fixed;
    width: 100%;
    z-index: 500;
}


/* Componentes  */

.submenu {
    position: fixed;
    top: 70px;
    width: 100%;
    padding: 7px;
    background: rgb(39, 49, 39);
    color: white;
    font-size: 15px;
    z-index: 200;
}

.card {
    position: relative;
    width: 350px;
    margin: 20px;
    border: 1px solid #FFF;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.4s;
}

.card .interior {
    padding: 30px;
}

.card .titulo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--noNegro);
}

.card .texto {
    color: var(--noNegro);
    font-size: 15px;
}

.card .imagen {
    width: 100%;
}

.card .recorteImagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 5px 5px 10px #777;
    cursor: pointer;
}


.accionSocialCard {
    width: 200px;
    margin: 50px;
    z-index: 0;
    transition: all 0.3s;
}

.accionSocialCard:hover {
    transform: scale(1.1);
}

.accionSocialCard .contenedorImagen {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.accionSocialCard .imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.accionSocialCard .titulo {
    margin-top:10px;
    width: 100%;
    text-align: center;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;    
  
    overflow: hidden;
    white-space: normal; /* Fuerza al texto a que pueda saltar de línea */
    word-wrap: break-word;
}

.equipo {
    width: 200px;
    margin: 20px;
}

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

.equipo .imagen {
    width: 100%;
}

.equipo p {
    text-align: center;
}

.oficinaCard {
    margin: 20px;
    padding: 20px;
    box-shadow: 5px 5px 15px #777;
    border-radius: 10px;
    background: white;
}

.stat {
    height: 300px;
    background: var(--colorClaro);
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 10px;
}

.numero {
    padding-top: 30px;
    color: white;
    text-align: center;
    font-size: 90px;
}

.margenGrande {
    padding-left: 20%;
    padding-right: 20%;
}



/* Bodega */

.casilla {
    width: 90%;
    margin: 20px auto 20px auto;
    padding: 0px;
    background: #3b5440;
    background: linear-gradient(90deg,rgba(59, 84, 64, 1) 0%, rgba(177, 196, 175, 1) 100%);
    border-radius: 15px;
    overflow: hidden;
}

.casilla .titulo {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin: 0px;
    padding: 10px;
    text-transform: uppercase;
}

.casilla .contenedor {
    margin: 0px;
    padding: 20px;
    background: #DDD;
    font-weight: 100;
    font-size: 16px;
}

.casilla table {
    border: 0px;
}

.casilla td {
    vertical-align: top;
    padding: 5px;
}



/* Formularios */
.login {
    width: 50%;
    padding: 20px;
    margin: auto;
}

.formAdmin {
    width: 80%;
    margin: auto;
}

.formAdmin input {
    width: 80%;
    padding: 5px;
    border-radius: 5px;
}

.formAdmin textarea {
    width: 80%;
    height: 300px;
    padding: 5px;
    border-radius: 5px;
}

.formAdmin input[type="submit"] {
    width: 200px;
    background: var(--colorOscuro);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.formAdmin input[type="submit"]:hover {
    background: var(--colorDestacado);
}

.formAdmin select {
    padding: 5px;
    border-radius: 5px;
}

.formAdmin .mini {
    width: 100px;
}

.contacto input {
    width: 45%;
    padding: 5px;
    margin: 10px;
    font-size: 13px;
    border-radius: 5px;
    border: 1px solid var(--noNegro);
}

.contacto input:focus {
    background: var(--colorMasClaro);
}

.contacto textarea {
    width: 90%;
    height: 200px;
    padding: 5px;
    margin: 10px;
    font-size: 13px;
    border-radius: 5px;
    border: 1px solid var(--noNegro);
}

.contacto input[type="submit"] {
    width: 200px;
    color: white;
    padding: 14px;
    background: var(--colorDestacado2);
    cursor: pointer;
    text-align: center;
    border-radius: 15px;
}

/* Carrusel */

.padreCarrusel {
  position: relative;
  width: 100%;
  height: 320px;
  padding: 0px;
}

.padreCarrusel .carrusel {
  position: absolute;
  top: -40px;
  left: 5%;
  width: 90%;
  margin-left: 60px;
  margin-right: 60px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  text-align: center;
}

.botonCarrusel {
  position: absolute;
  width: 3rem;
  cursor: pointer;
  z-index: 100;
  top: 80px;
}

.botonCarruselDerecha {
  right: 2rem;
}

.botonCarruselIzquierda {
  left: 2rem;
}


/* Varios */

.imagenGrande {
  width: 100%;
  height: 100vh;
  position: absolute;
  overflow: hidden;
  top: 0px;
  left: 0px;
  visibility: hidden;
  opacity: 0;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 250;
  transition-property: visibility, opacity;
  transition-duration: 0s, 0.3s;
}

.imagenAccionSocial {
    width: 35%;
}

.tarjetaPantallaCompleta {
    position: absolute;
    width: 70%;
    height: 80vh;
    top: 10%;
    left: 15%;
    padding: 90px;
    border: 1px solid black;
    border-radius: 20px;
    background: #568B47;
    background: linear-gradient(180deg,rgba(86, 139, 71, 0.8) 0%, rgba(178, 209, 165, 0.8) 100%);
}

.icono {
    width: 30px;
    margin: 5px;
    padding: 0px;
}

.cierra {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.pulsable {
    cursor: pointer;
}

.mensaje {
    width: 100%;
    padding: 8px;
    background: green;
    color: white;
    font-weight: bold;
}

.enlace {
    color: var(--colorDestacado);
    cursor: pointer;
}

h2, h1 {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 40px !important;
    font-weight: bold;

    text-align: center;
    margin: 20px;
    padding: 20px;
    color: var(--colorOscuro) !important;
}

h1 {
    font-size: 50px !important;
}

h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 20px;
    font-size: 25px !important;
    color: var(--colorDestacado2) !important;
}

.logoPrincipal {
    width: 130px;
    height: auto;
    margin: 10px;
}

.separacion {
    position: relative;
    display: block;
    width: 100%;
    height: 140px;
}

.documentoSmall {
    width: 70%;
    margin: 20px auto;
    text-align: center;
}

.contenidoMini {
    display: flex;
    flex-direction: column;     /* Elementos uno debajo de otro */
    justify-content: center;    /* Centra el bloque entero verticalmente */
    align-items: flex-start;    /* Alinea todo a la izquierda horizontalmente */
    height: 100%;               /* ¡Importante! El div debe tener altura para poder centrar */
    min-height: 200px;
}

.imagenValores {
    width: 95%;
}

.mensajeCorrecto, .mensajeError{
    position: absolute;
    width: 50%;
    top:49%;
    left: 25%;
    padding: 20px;
    border: 1px solid white;
    border-radius: 5px;
    background: green;
    color: white;
}

.mensajeError { 
    background: red;
    color: white;
}

.errorLogin {
    width: 50%;
    margin: auto;
    padding: 20px;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    background: red;
    color: white;
}

.mensCorrecto, .mensError {
    width: 70%;
    margin: auto;
    text-align: center;
    padding: 20px;
    border: 1px solid white;
    border-radius: 5px;
    background: green;
    color: white;
}

.mensError {
    background: red;
    color: white;
}

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

.marca {
    width: 45%;
    margin: 20px;
}

.imagenGestion {
    width: 70%;
}

.contenedorGestion{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

.modeloDescripcion {
    display: inline-block;
    max-width: 300px;
    font-size: 15px;
    color: var(--noNegro);
    margin-bottom: 60px;
    margin-left: 20px;
}

.servicios {
    font-size: 25px;
    font-weight: 600;
    padding-left: 20px;
}

.contenedorPrincipal {
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.contenedorLogos {
    position: absolute;
    width: 90%;
    left: 5%;
    bottom: 150px;
    text-align: center;
}

.logoHome {
    width: 200px;
    height: 90px;
    margin: 20px;
}

.logoVertical {
    height: 100px;
    margin: 20px;
}

.degradado1 {
    padding: 60px;
    background: #e0af26;
    background: linear-gradient(90deg,rgba(224, 175, 38, 1) 1%, rgba(139, 173, 125, 1) 54%, rgba(178, 217, 163, 1) 99%);
    color: white;
}

.iconUser {
    width: 35px;
    height: 35px;
    transition: all 0.3s;
}

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

.fondoVerde {
    width: 100%;
    padding: 60px;
    background: var(--colorClaro);
}

footer {
    padding: 40px;
    background: var(--colorClaro);
}

footer a{
    color: var(--colorOscuro);
}

footer .titulo {
    font-weight: bold;
}

@media (max-width: 768px) {
    .imagenValores {
        width: 100%;
    }

    .padreCarrusel .carrusel {
        width: 70%;
    }
    
    .equipo {
        width: 35%;
    }
    .equipo .contenedorImagen {
        width: 150px;
        height: 150px;
        margin: auto;
    }
    .imagenGestion {
        width: 100%;
    }

    .contacto input {
        width: 90%;
    }

    .tarjetaPantallaCompleta {
        padding: 20px;
    }

    .contenedorLogos {
        bottom: 50px;
    }

    .login {
        width: 80%;
    }

    .stat {
        width: 40%;
    }
}
