:root {
    --blanco: #ffffff;
    --oscuro: #212121;
    --primario: #FFC107;
    --secundario: #0097A7;
    --gris: #908f8f;
    --grisClaro: #DFE9F3;
    --verde: #637127;
}
/*  Globales **/
html {
    font-size: 62.5%;
    box-sizing: border-box; /* Hack para Box Model **/
    scroll-snap-type: y mandatory;
}
/** Scroll Snap**/
.servicios,
.navegacion-principal,
.formulario {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

*, *:before, *:after {
    box-sizing: inherit;
}
/**Defino fondo gris de la cabecera donde van los logos**/
header {
    background-color: var(--grisClaro); /* Gris definido en tu paleta */
    color: var(--blanco);          /* Texto blanco */
    padding: 2rem;                 /* Espaciado interno */
    text-align: center;            /* Centrar el contenido */
}
.logo-container {
    display: flex;
    justify-content: center; /* Centra los logos horizontalmente */
    align-items: center;
    gap: 50px; /* Espacio entre los logos */
    padding: 2rem;
}

.logo {
    max-width: 150px; /* Ajusta el tamaño según tus necesidades */
    height: auto; /* Mantiene la proporción */
}

body {
    font-size: 16px; /* 1rem = 10px */
    font-family: 'Krub', sans-serif;
    background-image: linear-gradient(to top, var(--grisClaro) 0%, var(--blanco) 100% );
    margin: 0; /* Elimina márgenes por defecto */
    padding: 0;
    overflow-x: hidden; /* Evita desplazamiento horizontal innecesario */
    overflow-y: auto; /* Habilita el scroll vertical */
}
html, body {
    height: 100%; /* Asegura que la página ocupe el 100% de la altura */
    overflow-x: hidden; /* Evita desplazamiento horizontal innecesario */
    overflow-y: auto; /* Habilita el scroll vertical */
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
}
.boton {
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 3rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 90%;
    text-align: center;
    border: none;
}
@media (min-width: 768px) {
    .boton {
        width: auto;
    }
}
.boton:hover {
    cursor: pointer;
}

.sombra {
    box-shadow: 0px 5px 15px 0px rgba(112,112,112,0.48);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}

/* Tipografia */
h1 {
    font-size: 3.8rem;
}
h2 {
    font-size: 3.8rem;
}
h3 {
    font-size: 2.8rem;
}
h4 {
    color: white;
}
h1,h2,h3 {
    text-align: center;
}


/* Titulos */
.titulo span {
    font-size: 2rem;
}

/** Utilidades **/
.w-sm-100 {
    width: 100%;
}
@media (min-width: 768px) {
    .w-sm-100 {
        width: auto;
    }
}
.flex {
    display: flex;
}
.alinear-derecha {
    justify-content: flex-end;
}

/* Navegacion Principal */
.nav-bg {
    background-color: var(--verde);
}
.navegacion-principal {
    display: flex;
    flex-direction: column;
	justify-content: space-between;
    width: 100%;
    padding: 10px 120px; /* Agregar espacio lateral */
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-between;
    }
}

.navegacion-principal a {
    display: block;
    text-align: center;
    color: var(--primario);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
}
.navegacion-principal a:hover {
    background-color: var(--secundario);
    color: var(--blanco);
}

/* Hero */
.hero {
    background-image: url(/images/larrea.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 100vh;
    position: relative;
    margin-bottom: 2rem;
}
.contenido-hero {
    position: absolute;
    background-color: rgba( 0,0,0, .5 ); /** Anterior **/
    background-color: rgb( 0 0 0 / 50% );
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}
.contenido-hero h2, h3, 
.contenido-hero p {
    color: var(--blanco);
}
.contenido-hero .ubicacion {
    display: flex;
    align-items: flex-end;
}



/** Servicios **/
@media (min-width: 768px) {
    .servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicio h3 {
    color: var(--secundario);
    font-weight: normal;
}
.servicio p {
    line-height: 2;
    text-align: center;
}
.servicio .iconos {
    height: 15rem;
    width: 15rem;
    background-color: var(--primario);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

/** Contacto **/
.formulario {
    background-color: var(--gris);
    width: min( 60rem, 100% ); /** Utilizar el valor más pequeño **/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}

.formulario fieldset {
    border: none;
}
.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primario);
}

@media (min-width: 768px) {
    .contenedor-campos {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto auto 20rem ;
        column-gap: 1rem;
    }

    .campo:nth-child(3),
    .campo:nth-child(4) {
        grid-column: 1 / 3;
    }
}
.campo {
    margin-bottom: 1rem;
}
.campo label {
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}
.campo textarea {
    height: 20rem;
}

.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

/** Footer **/
.footer {
    text-align: center;
}

.introduccion {
    background-color:#90a729;
    text-align: justify; 
    color: var(--blanco);
    padding: 20px;  /* Agrega espacio interno */
}
.contenedor-volver {
    display: flex;
    justify-content: flex-end; /* El botón se alinea a la derecha */
    padding: 0;               /* Sin padding para el contenedor */
  }
  
.boton-volver {
    padding: 10px 20px;       /* Espacio interno del botón */
  background-color: var(--verde);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.boton-volver:visited {
    color: white; /* Color para enlaces visitados */
}
.equipo h2 {
    color: #0097A7;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: left; /* Alineación a la izquierda */
}
.spacer {
    height: 20px;  /* Ajusta el espacio según lo que necesites */
}
.Estilo5 {
	font-size: 12px;
	font-style: italic;
	color: #006600;
}
.Estilo7 {font-size: 12px}
.Estilo12 {
	color: #006600;
	font-size: 14px;
}
.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.search-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Agregar el reflejo */
.search-button svg {
    position: relative;
    z-index: 1;
}

.search-button svg::after {
    content: "";
    position: absolute;
    bottom: -4px; /* Ajusta la distancia del reflejo */
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(0, 255, 0, 0.3); /* Color y opacidad del reflejo */
    transform: scaleY(-1); /* Voltea el reflejo */
    z-index: -1;
    filter: blur(2px); /* Agrega un pequeño desenfoque al reflejo */
}

.search-button:hover svg::after {
    background: rgba(0, 255, 0, 0.5); /* Aumenta la opacidad al pasar el mouse */
}
.search-icon {
    font-size: 24px;         /* Tamaño del icono */
    color: white;            /* Color del icono */
    background-color: #006600; /* Fondo verde */
    padding: 5px;            /* Espaciado alrededor de la lupa */
    border-radius: 50%;      /* Borde redondeado */
    display: inline-block;   /* Para que se ajuste al contenido */
  }

.suggestions-container {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc; /* Puede ser esta línea */
    border-top: none;       /* Esta línea evita que se vea un borde superior indeseado */
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Suaviza el borde */
}
.search-container {
    position: relative; /* Evita que el contenedor de sugerencias se desplace */
    display: flex;
    align-items: center; /* Alinea elementos verticalmente */
    gap: 8px; /* Espacio entre el input, el botón y el enlace */
}
.enlace-avanzado {
    text-decoration: none; /* Elimina posibles líneas de tachado */
    border-top: none; /* Elimina líneas indeseadas */
}
.suggestions-container:empty {
    border: none;
}
.search-container::after {
    content: "";
    display: block;
    clear: both;
}
#suggestions-container-advanced {
    z-index: 1000;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
}
.suggestion-item:hover {
    background-color: #f0f0f0;
}
