:root {
    --blanco: #ffffff;
    --primario: #FFC107;
    --secundario: #0097A7;
    --gris: #757575;
    --oscuro: #212121;
}
html {
    box-sizing: border-box;
    min-height: 100%;
}
*, *:before, *:after {
    box-sizing: inherit;
}
p {
    line-height: 2;
}
body {
    font-family: 'Krub', sans-serif;
    background-image: linear-gradient(to top, #dfe9f3 0%, white 100%);
    min-height: 100%;
    
}
.header {
    background-color: rgba(154, 207, 80, 1);
    padding: 0.5rem;
}
.header h1 {
    font-family: Copperplate;
    color: var(--blanco)
}
.nav-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}
h1 {
    font-size: 1.4rem;
}
h1 span {
    font-size: 1.4rem;
}
h1, h2, h3 {
    text-align: center;
}
h2 {
    font-size: 2.4rem;
}
h3 {
    color: var(--secundario);
    font-weight: 400;
    font-size: 1.6rem;
}
.contenedor {
    margin: 0 auto;
    max-width: 1200px;
}
.sombra {
    padding: 2rem;
    margin-bottom: 3rem;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 10px;
    -webkit-box-shadow: 0px 11px 15px -9px rgba(0,0,0,0.63);
    -moz-box-shadow: 0px 11px 15px -9px rgba(0,0,0,0.63);
    box-shadow: 0px 11px 15px -9px rgba(0,0,0,0.63);
}
.nav-bg {
    background-color: var(--secundario);
}
.navegacion {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width:768px) {
    .navegacion {
        flex-direction: row;
        justify-content: space-between;
    }
}
.navegacion a{
    padding: 1rem 2rem;
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
}
.navegacion a:hover {
    background-color: var(--primario);
    color: var(--oscuro);
}
.navegacion a:last-of-type {
    margin-bottom:0;
}
@media (min-width:768px) {
    .navegacion a{
        margin-bottom: 0;
    }
}
.hero {
    height: 650px;
    background-image: url(../img/Gif01.gif);
    background-position: center;
    background-size: cover;
    margin-bottom: 2rem;
    position: relative;
}
.contenido-hero {
    background-color: rgb(0 0 0 / 70%); /** Otra opción **/
    background-color: rgba(0, 0, 0, .7);
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
   align-items: center;
   justify-content: center;
}
.contenido-hero h2 img {
    max-width: 50%;
    height: auto;
    margin-top: -100px;
}
.contenido-hero h2, 
.contenido-hero p {
    color: var(--blanco);
}
.boton {
    background-color: var(--secundario);
    color: var(--blanco);
    margin-top: .5rem;
    padding: .5rem 3rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    border:none;
}
.boton:hover{
    cursor: pointer;
}
.servicios {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
@media (min-width:768px) {
    .servicios {
        display: grid;
        grid-template-columns: 33.3% 33.3% 33.3%;
        column-gap: 1rem;
    }
}
.servicio {
    text-align: center;
}
.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicio p {
    text-align: justify;
    line-height: 1.7;
    padding: 0 12px;
    font-size: 0.97rem;
    color: #444;
}


.iconos {
    display: flex;
    height: 150px;
    width: 150px;
    justify-content: space-evenly;
    align-items: center;
}
.iconos i {
    font-size: 2rem;
    color: var(--oscuro);
}
.quienes {
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: center; /* Centra los elementos horizontalmente */
    margin-top: 20px;
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 1200px; /* Ajusta el ancho máximo del contenedor */
    margin-left: auto;
    margin-right: auto;
}

.quienes img {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    max-width: 100%; /* Ajusta el ancho máximo de las imágenes según sea necesario */
    height: auto; /* Mantiene la proporción de aspecto de las imágenes */
    margin-bottom: 20px; /* Espacio entre las imágenes */
}
.staff {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 20px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Tarjeta individual */
.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,151,167,0.10);
    padding: 2rem 1.5rem 1.8rem;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 36px rgba(0,151,167,0.18);
}

/* Foto circular */
.staff-foto-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e8f8fa;
    box-shadow: 0 4px 16px rgba(0,151,167,0.15);
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}
.staff-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Nombre y apellido */
.staff-nombre {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 2px 0;
}
.staff-apellido {
    font-size: 0.92rem;
    font-weight: 600;
    color: #555;
    margin: 0 0 0.8rem 0;
}

/* Divisor */
.staff-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0097A7, transparent);
    margin: 0.7rem auto;
}

/* Labels y valores */
.staff-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0097A7;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}
.staff-valor {
    font-size: 0.97rem;
    color: #333;
    margin: 0 0 0.2rem 0;
    font-weight: 500;
}
.staff-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

@media (max-width: 768px) {
    .staff {
        flex-direction: column;
        align-items: center;
    }
    .staff-card {
        max-width: 100%;
        width: 100%;
    }
}
.formulario {
    background-color: var(--gris);
    padding: 2rem;
    border-radius: 10px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
.formulario legend {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primario);
    margin-bottom: 2rem;
    display: block;
    text-transform: uppercase;
    font-weight: 700;
}
@media (min-width:768px) {
    .formulario {
        max-width: 800px;
        margin: 0 auto;
    }
}
.contenedor-campos {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.campo {
    margin-bottom: 1rem;
    width: 100%;
}
@media (min-width:480px) {
    .campo {
        display: flex;
        align-items: center;
    }
}
@media (min-width: 768px) {
    .campo{
        flex: 0 0 calc(50% - .5rem)
    }
}
.campo label {
    color: var(--blanco);
    font-weight: 700;
    margin-bottom: .5rem;
    display: block;
}
@media (min-width:480px) {
    .campo label {
        flex: 0 0 90px;
    }
}
.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="mail"],
.campo textarea {
    width: 100%;
    padding: .5rem;
    border: none;
    border-radius: .5rem;
}
@media (min-width: 768px) {
    :is(.campo) :is( 
        input[type="text"], 
        input[type="text"],  
        input[type="tel"],  
        input[type="mail"] , 
        textarea ) {
        flex: 1;
    }
}

.w-100{
    flex: 0 0 100%;
}
.campo textarea {
    height: 4rem;
}

.enviar {
    display: flex;
    justify-content: flex-end;
}

.footer {
    text-align: center;
}