@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Orbitron:wght@400;700;900&display=swap');



:root {
    --amarillo: #EDC25E;
    --grisanco: #E5E1DA;
    --negro: #000000;
    --azulon: #719BE2;
    --rojito: #CD5C5C;
    --grisosc: #747270;


    --fuenteHead: 'Poppins', sans-serif;
    --fuenteParraf: 'Inter', sans-serif;
    --fuenteLogo: 'Orbitron', sans-serif;

    --tamh0: 3.433rem;
    --tamh1: clamp(2.197rem, 1.48rem + 3.58vw, 2.747rem);
    --tamh2: clamp(1.758rem, 1.34rem + 2.08vw, 2.197rem);
    --tamh3: clamp(1.406rem, 1.18rem + 1.14vw, 1.758rem);
    --tamh4: clamp(1.125rem, 1.04rem + 0.43vw, 1.406rem);
    --tamBody: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);

    --ancho: 960px;




}

h1 {
    font-family: var(--fuenteHead);
    font-size: var(--tamh1);
    margin-bottom: 1.25rem;
}

h2 {
    font-family: var(--fuenteHead);
    font-size: var(--tamh2);
    margin-bottom: 1.50rem;
}

h3 {
    font-family: var(--fuenteHead);
    font-size: var(--tamh3);
    margin-bottom: 1.25rem;
}

h4 {
    font-family: var(--fuenteHead);
    font-size: var(--tamh4);
    margin-bottom: 1.25rem;
}

body {
    margin: 0;
    padding: 0;
    color: var(--grisanco);
    font-family: 'Inter', sans-serif;
    font-size: var(--tamBody);
    background-image: url("img/fondo/fondo1at.png"), radial-gradient(closest-side, var(--grisanco), var(--grisanco), var(--grisanco));

    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;

}

/*-------------------------------------------------- CABECERA                   ------------------- */

.cabecera {
    background-color: var(--negro);
    color: var(--amarillo);

    max-width: var(--ancho);
    height: 120px;
    width: 100%;

    margin-left: auto;
    margin-right: auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 24px;
    box-sizing: border-box;

    position: sticky;
    top: 0;
    left: 0;

    border-radius: 0px 0px 5px 5px;

    box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0 0 0 2px var(--amarillo),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    transition: 0.3s;
    width: 110px;
    height: 90px;
    object-fit: contain;
}

.textoLogo {
    display: none;
    font-family: var(--fuenteLogo);
    color: var(--amarillo);
}

.abrirMenu {
    display: none;

}

.menuHamburguesa {
    display: none;
    outline: none;
}

.menuHamburguesa img {
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.navegacion {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menuNavegacion {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.menuNavegacion a {
    text-decoration: none;
    color: var(--amarillo);
    font-size: var(--tamh4);
    font-weight: bold;
    cursor: pointer;
    justify-content: space-around;
    padding: 10px;

    transition: all 0.3s ease;
}

.menuNavegacion a:hover {
    color: var(--azulon);

}

/* BUSCADOR -  -- ------------------------------- */
.buscador {
    display: flex;
    align-items: center;
    position: relative;
    width: 180px;
    flex-shrink: 0;
    margin-left: 16px;
}

.buscadorInput {
    width: 100%;
    box-sizing: border-box;
    padding: 0.3rem 0.3rem 0.3rem 1.8rem;
    background: var(--grisosc);
    border: 1px solid var(--amarillo);
    border-radius: 4px;
    font-family: var(--fuenteParraf);
    font-size: 0.9rem;
    color: var(--negro);
    outline: none;
    transition: all 0.3s ease;
}

.buscadorInput::placeholder {
    font-family: var(--fuenteLogo);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--amarillo);
    transition: all 0.3s ease;
}

.buscadorInput:focus {
    background: var(--azulon);
    border-color: var(--grisanco);
    color: var(--negro);
    box-shadow: 0 0 15px var(--grisanco);
}

.buscadorInput:focus::placeholder {
    color: var(--negro);

}

.buscadorIcono {
    position: absolute;
    left: 8px;
    color: var(--negro);
    display: flex;
    align-items: center;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}

/* --------------------------------------CUERPO DE LA WEB ----------------------------------------------------------*/
/* HERO                    ------------------- */

.hero {
    background-color: var(--negro);

    position: relative;
    overflow: hidden;
    padding-top: 50px;
    max-width: var(--ancho);
    max-height: 740px;
    height: 740px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    transition: all 0.5s ease;
    box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0 0 0 2px var(--amarillo),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);

}

.imagenHero {
    width: 90%;
    height: 100%;
    margin: 0;
    background-color: var(--grisosc);
    /* margin-bottom: 15px; */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(img/hero/hero1.png);
    background-size: cover;
    background-position: center;
    transition: all 1s ease-in-out;
    animation-delay: 1s;
    animation: imagenHero 25s infinite ease;
    border-radius: 5px 0 0 5px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 3px 3px 10px var(--grisosc);
    border: 2px solid var(--grisanco);
}

/* Desvanecido a negro -------------------------- */
.imagenHero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgb(0, 0, 0),
        rgba(0, 0, 0, 0.753),
        rgba(0, 0, 0, 0.021)
    );
}
.imagenHero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/hero/grain2.jpg");
    background-size: cover;
    opacity: 0.2;
    animation: grain 1.5s steps(10) infinite;
    pointer-events: none;
}

.tituloHero {
    position: relative;
    z-index: 2;

    width: 40%;
    margin: 0;
    margin-left: auto;

    padding-right: 40px;
    padding-top: 120px;
    transition: all 0.3s ease;
}
.hero h1 {
    font-size: var(--tamh2);
    margin-bottom: 16px;
}

.textoHero {
    text-align: left;
    max-width: 360px;
    transition: all 0.3s ease;
}

/* ----------------------- CArrusel ------------ - - - --- */
@keyframes imagenHero {
    0% {
        background-image: url(img/hero/hero1.png); 
    }

    20% {
        background-image: url(img/hero/hero1.png); 
    }

    21% {
        background-image: url(img/hero/pexels-antonioborriello.jpg); 
    }

    40% {
        background-image: url(img/hero/pexels-antonioborriello.jpg);  
    }

    41% {
        background-image: url(img/hero/pexels-brettstone.jpg); 
    }

    60% {
        background-image: url(img/hero/pexels-brettstone.jpg); 
    }

    61% {
        background-image: url(img/hero/pexels-fauxels.jpg); 
    }

    80% {
        background-image: url(img/hero/pexels-fauxels.jpg); 
    }

    81% {
        background-image: url(img/hero/pexels-karola-g.jpg); 
    }

    100% {
        background-image: url(img/hero/pexels-karola-g.jpg); 
    }
}
@keyframes grain {
    0% { transform: translate(0,0); }
    25% { transform: translate(-1px,1px); }
    50% { transform: translate(1px,-1px); }
    75% { transform: translate(-1px,-1px); }
    100% { transform: translate(0,0); }
}




/* Secciones                    ------------------- */
.seccion {
    background-color: var(--negro);
    padding-top: 30px;
    padding-bottom: 30px;

    max-width: var(--ancho);
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 5px;


    box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0 0 0 2px var(--amarillo),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.elementos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 960px;
    margin-top: 50px;
    margin-right: auto;
}

.tituloSeccion {
    text-align: center;
}

/* Producto                    ------------------- */
.contenedorProducto {
    width: 48%;
    max-width: 400px;
    text-align: left;

    position: relative;
    padding-bottom: 60px;
    box-sizing: border-box;
}

.contenedorProducto .imagenProducto {
    margin-left: auto;
    margin-right: auto;
}

.contenedorProducto button {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    /* elimina cualquier margen */
}

.imagenProducto {
    width: 400px;
    height: 290px;
    background-color: var(--grisosc);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Equipo                    ------------------- */
.seccion .contenedorEquipo {
    width: 33.33%;
    max-width: 280px;
}

.contenedorEquipo {
    text-align: justify;
}

.contenedorEquipo h3 {
    text-align: center;
}

.contenedorEquipo .imagenEquipo {
    margin-left: auto;
    margin-right: auto;
}

.imagenEquipo {
    width: 200px;
    height: 250px;
    background-color: var(--grisosc);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    /* overflow: hidden; */
    border: 2px solid var(--grisanco);
    box-shadow: 3px 3px 10px var(--grisosc);

}

/* BOTONESS  ------------------- */
.btnRojo {
    background-color: var(--rojito);
    color: var(--grisanco);
    border: 1px solid var(--grisanco);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    cursor: pointer;

}

.btnRojo:hover {
    background-color: var(--azulon);
    color: var(--negro);
    box-shadow: 0 0 20px var(--grisanco);
}

/* IMAGENES ------------------------------------------- */
.imagenHero img,
.imagenProducto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    border: 2px solid var(--grisanco);
    box-shadow: 3px 3px 10px var(--grisosc);
    box-sizing: border-box;
}

.imagenEquipo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;

    /* border: 2px solid var(--grisanco);
    box-shadow: 0 0 15px var(--grisanco); */
    /* box-sizing: border-box; */
    border-radius: 10px;

}
/* IMANGENEES AMPLIADAS --------------------------- */
.imagenAmpliada {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5000;
}

.imagenAmpliada img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    border-radius: 6px;
}

.imagenAmpliadaEquipo img {
    max-width: 40%;
    max-height: 90%;
}

/* abrir*/
.imagenAmpliada:target {
    opacity: 1;
    pointer-events: auto;
}

/*  cerrar */
.cerrarImagen {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.enlaceImagen img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.enlaceImagen img:hover {
    transform: scale(1.03);
}

/*---------------------------------------------------------- FOOTER                   ------------------- */
.piePagina {
    background-color: var(--grisanco);
    color: var(--negro);
    text-align: center;
    max-width: 960px;
    max-height: 120px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    border-radius: 5px 5px 0px 0px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow:
        inset 0 -3em 3em #0000001a,
        0 0 0 2px #000000,
        0.3em 0.3em 1em #0000004d;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}


.piePagina .infoFooter p {
    margin: 0;
    font-family: var(--fuenteHead);
    font-weight: 600;
}

.rrss {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.rrss a {
    display: flex;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rrss a:hover {
    box-shadow: 0 0 14px var(--negro);
    transform: scale(1.06);
}

.rrss img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}


.contactFooter a {
    text-decoration: none;
    color: var(--negro);
    font-family: var(--fuenteHead);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contactFooter a:hover {
    color: var(--azulon);
}



/* ----TEMA OSCURO --------------------------------------*/

.temaOscuro {
    --negro: #E5E1DA;
    --blanco: #a0a09d;
    --grisosc: #a8a8a8;
    --grisanco: #4e4c49;
    --amarillo: #a07917;
}

.temaOscuro body {
    background-color: var(--blanco);
    color: var(--negro);
    background-image: url("img/fondo/fondo2t.png"), radial-gradient(closest-side, var(--grisanco), var(--grisanco), var(--grisanco));
}

.btnTema {
    margin-left: auto;
    margin-right: auto;
    height: 50px;
    width: 50px;

    color: var(--grisosc);
    border-radius: 50%;
    transition: all 0.3s;
}

.btnTema img {
    /* margin-top: 12px; */
    background: none;
    height: 45px;
    width: 45px;
    border: 1px solid var(--grisosc);
    color: var(--grisosc);
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s;
}

.btnTema img:hover {
    background-color: var(--grisanco);
    color: var(--negro);
    box-shadow: 0 0 20px var(--grisosc);
}