@import url('https://fonts.googleapis.com/css2?family=New+Amsterdam&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    overflow-x: hidden; /* Previene el scroll horizontal */
}

header {
    width: 100%;
    position: relative;
}

nav {
    background: rgba(0, 0, 0, 0.808);
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
    animation: fadeDown 0.5s linear;
    position: fixed;
    z-index: 3;
}

#logo {
    height: 80px;
    
}

.link-container {
    display: flex;
    gap: 5px;
    font-family: "Abril Fatface", serif;
    font-weight: 400;
    font-style: normal;
}

.link-nav {
    color: #e1e1e1;
    font-size: 20px;
    text-decoration: none;
    padding: 25px 15px;
}

.link-nav:hover {
    color: yellow;
    background-color: #1a1919;
}

@keyframes fadeDown {
    0% {
        top: -40px;
        opacity: 0;
    }
    100% {
        top: 0;
        opacity: 1;
    }
}

#welcome {
    width: 100%;
    height: 500px;
    background: url(https://www.adidas.com/dw/image/v2/BFNL_PRD/on/demandware.static/-/Library-Sites-AdidasSharedLibrary/default/dw91093380/library-content-cac/commercial_campaigns/TERREX-BANNER-D.jpg);
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; /* Mantiene la imagen en su lugar al hacer scroll */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
#letra{
    font-size: 50px;
}

#welcome h1 {
    color: white;
    z-index: 2;
}

.opacidad-welcome {
    width: 100%;
    height: 500px;
    background: rgb(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

/* MAIN */
main {
    width: 100%;
}

.seccion {
    width: calc(100% - 40px);
    max-width: 100%; /* Asegura que no se exceda el ancho de la pantalla */
    height: 500px;
    background-color: #131212;
    margin: 20px auto; /* Centra la sección */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 100px;
    border-radius: 20px;
}

.seccion h2 {
    color: white;
    font-size: 40px;
}

.seccion p {
    color: #aaa;
    font-size: 25px;
    text-align: center;
}

#seccion-alumnos {
    background: rgb(15, 15, 15);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Ajusta la altura para llenar la pantalla */
    overflow: hidden; /* Esconde cualquier contenido que desborde el contenedor */
    margin: 0;
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Ajusta la altura para llenar la pantalla */
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#miVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra todo el contenedor sin distorsionarse */
}


.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 1; /* Asegura que el texto esté encima del video */
    font-family: "New Amsterdam", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
}


header, nav {
    z-index: 2; /* Asegura que el menú esté siempre visible */
}

#titulo-contenedor {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#card-container {
    display: flex;
    flex-wrap: wrap; 
    width: 100%;
    gap: 20px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    flex: 1; 
    min-width: 200px; 
}


#seccion-vidaestudiantil {
    height: auto;
    padding-bottom: 100px;
}

.img-card {
    width: 100%;
    margin: 0;
}

.edad-container {
    width: 100%;
    position: relative;
}

.edad {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -55px;
    right: 20px;
    box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.25);
}

.p-card {
    margin-top: 50px;
    font-size: 12px;
}

footer {
    width: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 50px 0;
}

#redes-footer {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
}

.copyright-p {
    color: #ffffff;
    font-size: 20px;
}

#welcome-text {
    font-family: "New Amsterdam", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 70px;
    text-transform: lowercase;
}

#txt-menu {
    color: white;
    margin-top: -15px;
}

#txt-sn {
    color: white;
}

#c1 {
    color: black;
}

#c2 {
    color: black;
}

#c3 {
    color: black;
}

#SN {
    color: white;
}

button.comprar-ahora {
    background-color: #1f1d1d; 
    color: rgb(255, 217, 0); 
    border: none; 
    padding: 20px 30px; 
    font-size: 16px; 
    font-weight: bold; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    margin-top: -19px; 
}

button.comprar-ahora:hover {
    background-color: #423d3d; 
}


.buy-now {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.buy-now:hover {
    background-color: #444;
}

