@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Fira Code", serif;
    text-decoration: none;
}

a {
    color: #000000;
    font-family: "Fira Sans", serif;
}

h1, h2 {
    font-family: "Fira Sans", serif;
}


body {
    display: grid;
    width: 100vw;
    height: 100dvh;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: .3fr 3fr 2fr .3fr;
    background-color: gray;
}

/* ESTILOS DEL GRID PRINCIPAL */

.header {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    background-color: #F2F2F2;
    border-bottom: 1px solid black;
    display: flex;
    justify-content: space-between;
    padding-left: 1rem;
    align-items: center;
    gap: .5rem;
}

.hero {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background-color: #F2F2F2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    padding: 1rem;
    border-bottom: 1px solid black;

}

.links {
    grid-column: 1 / 2;
    grid-row: 3 / 5;
    background-color: #F2F2F2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: left;
    padding: 1rem;
    /* border-left: .5px solid black; */

}

.banner {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    background-color: #9933CC;
    border-left: 1px solid black;
    /* AJUSTES PARA ANIMATION */
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    /* Distribución en columnas */
    grid-gap: 10px;
    /* Espacio entre elementos */
    justify-items: center;
    /* Centra horizontalmente cada logo */
    align-items: center;
    /* Centra verticalmente cada logo */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
}

.logo {
    position: absolute;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease-in-out;
    color: #dec6e0;
}

.footer {
    grid-column: 2 / 4;
    grid-row: 4 / 5;
    background-color: #F2F2F2;
    border-top: 1px solid black;
    border-left: 1px solid black;
}

/* ESTILO DEL HEADER */

.logo-header-container {
    /* border: 1px solid black; */
    height: 3rem;
    width: 12rem;
    background-image: url(img/logos/logo_horizontal_a.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

}

.btn_cart {
    grid-column: 2/3;
    background-color: #F2F2F2;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    border-top: none;
    border-right: none;
    display: grid;
    place-items: center;
}

.link_cart {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.btn_cart:hover {
      background-color: #dec6e0;
}

/* ESTILO DEL HERO */

.title-hero {
    font-size: clamp(2rem, 6vw, 4.25rem);
    color: #9933CC;
    /* word-spacing: -1.25rem; */
}


.hero-p {
    font-size: clamp(.75rem, 2vw, 1.25rem); 
}

/* ESTILO DE LOS LINKS DE NAVEGACIÓN */

.nav-link {
    font-size: 1.75rem;
    text-decoration: none;
    /* background-color: blue; */
    border: .5px solid black;
    width: 400px;
    padding: .2rem;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-link:hover {
    color: #9933cc;
    border: #9933CC solid 1px;
    transform: translate(4px, -4px);
    transition: .5s ease-in-out;
    box-shadow: -5px 5px #9933CC;
}

.nav-link-img {
    width: 2rem;
}

.nav-link-img-2 {
    display: none;   
    width: 2rem; 
}
.nav-link:hover .nav-link-img {
    display: none;
}


.nav-link:hover .nav-link-img-2 {
    display: flex;
}

/* ESTILO DE LOS ENLACES EXTERNOS */

.links-list {
    width: 100%;
    height: 100%;
    list-style-type: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.links-item {
    width: 100%;
    height: 100%;
    border-right: 1px solid black;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.links-a {
    width: 100%;
    display: block;
}

.links-item:hover {
    background-color: #dec6e0;
}

/* ESTILOS PÁGINAS SECUNDARIAS */

.title-hero-secondary {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #9933CC;
    /* word-spacing: -1.25rem; */
}

.hero-p-secondary {
    font-size: clamp(1.2rem, 1.5vw, 1.25rem);
}

.hero-secondary {
    grid-column: 1 / 2;
    grid-row: 2 / 5;
    background-color: #F2F2F2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: start;
    align-items: flex-start;
    padding: 1rem;
    /* border: 1px solid black; */
}

.list-crypto-plus {
    text-decoration: none;
    list-style-type: none;
    list-style-image: url(img/icons8-emoji-de-marca-de-verificación-16.png);
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    padding: 1.5rem;
    gap: .5rem;
}

.banner-secondary {
    grid-column: 2 / 3;
    grid-row: 2 / 5;
    background-color: #9933CC;
    border-left: 1px solid black;
    /* AJUSTES PARA ANIMATION */
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    /* Distribución en columnas */
    grid-gap: 10px;
    /* Espacio entre elementos */
    justify-items: center;
    /* Centra horizontalmente cada logo */
    align-items: center;
    /* Centra verticalmente cada logo */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-secondary video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
}

.nav-link-secondary {
    background-color: #9933CC;
    color: #F2F2F2;
    border: none;
}

.nav-link-img-secondary {
    width: 2rem;
}

.nav-link-secondary:hover {
    color: #F2F2F2;
    box-shadow: -5px 5px #dec6e0;
}

/* ESTILO DEL CART HTML */

.cart-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 2rem;
}

.product-title {
    font-size: 2rem;
}

.product-price {
    font-size: 1.5rem;
}

.product-buy {
    background-color: #9933CC;
    color: #F2F2F2;
    border: none;
}

.product-delete {
    font-size: 1.75rem;
    text-decoration: none;
    border: .5px solid red;
    width: 400px;
    padding: .2rem;
    color: red;
    text-align: left;
}

.product-delete:hover {
    color: red;
    border: red solid 1px;
    transform: translate(4px, -4px);
    transition: .5s ease-in-out;
    box-shadow: -5px 5px red;
}

/* Overlay del carrito (oculto por defecto) */
.overlay-carrito {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Contenedor interno del carrito */
.carrito-contenido {
  background: #fff;
  padding: 24px;
  /* border-radius: 10px; */
  text-align: center;
  max-width: 320px;
  width: 90%;
}

.cerrar-btn {
  margin-top: 12px;
  background: #ccc;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  background-color: #F2F2F2;
  border: 1px solid #9933CC;
  color: #9933CC;

}

#btnComprar {
  margin-top: 12px;
  background: #ccc;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  background-color: #9933CC;
  color: #F2F2F2;
}

.overlay-carrito.active {
  display: flex;
}



/* ESTILOS SWIPER JS */

.swiper {
    width: 400px;
    height: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin: 20px 0;
}

.swiper-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F2F2F2;
    border: 1px solid #9933cc;
    color: #9933CC;
    width: 15rem;
    height: 80%;
}

.swiper-slide h4 {
    text-transform: uppercase;
    font-family: "Fira Sans", serif;
    font-size: clamp(1rem, 2vw, 2rem);
    text-align: center;
    padding: 2rem;
}

.swipper-btn {
    color: #9933CC;
}