/*====================================
    COSMOS SKULL SHOP
    HOJA DE ESTILOS
====================================*/

/*===============
VARIABLES
================*/

:root{

    --amarillo:#F7C600;
    --verde:#35d37d;
    --verdeHover:#28b867;
    --negro:#111111;
    --gris:#222222;
    --blanco:#ffffff;
    --grisClaro:#f4f4f4;

}

/*===============
RESET
================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    background:var(--amarillo);
    font-family:Arial, Helvetica, sans-serif;
    min-height:100vh;
    color:var(--negro);

}

/*===============
MENÚ
================*/

.menu{

    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 40px;

}

.logo img{

    width:90px;
    transition:.3s;

}

.logo img:hover{

    transform:scale(1.08);

}

.menu-links{

    display:flex;
    gap:35px;

}

.menu-links a{

    text-decoration:none;
    color:var(--negro);
    font-size:20px;
    font-weight:bold;
    transition:.3s;

}

.menu-links a:hover{

    color:var(--blanco);

}

/*===============
CONTENIDO
================*/

.contenedor{

    display:flex;
    justify-content:space-around;
    align-items:center;
    min-height:80vh;
    padding:40px;

}

.texto{

    max-width:500px;

}

.texto h1{

    font-size:90px;
    line-height:1;
    margin-bottom:20px;

}

.texto p{

    font-size:24px;
    line-height:1.6;

}

/*===============
PRODUCTO PRINCIPAL
================*/

.producto{

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

}

.producto h3{

    margin-bottom:20px;

}

.producto img{

    width:350px;
    transition:.4s;

}

.producto img:hover{

    transform:scale(1.05);

}

.producto button{

    margin-top:25px;
    padding:15px 40px;
    border:none;
    border-radius:8px;
    background:var(--verde);
    color:white;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;

}

.producto button:hover{

    background:var(--verdeHover);
    transform:translateY(-3px);

}

/*===============
FOOTER
================*/

footer{

    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 40px;
    border-top:2px solid black;
    margin-top:80px;

}

.footer-izq,
.footer-der{

    display:flex;
    gap:20px;
    align-items:center;

}

footer a{

    color:black;
    text-decoration:none;

}

footer a:hover{

    text-decoration:underline;

}

/*===============
MODALES
================*/

.modal{

    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.75);
    justify-content:center;
    align-items:center;
    z-index:999;

}

.modal-contenido{

    width:70%;
    max-width:700px;
    background:var(--gris);
    padding:30px;
    border-radius:15px;
    animation:aparecer .3s ease;

}

@keyframes aparecer{

    from{

        opacity:0;
        transform:scale(.9);

    }

    to{

        opacity:1;
        transform:scale(1);

    }

}

.cerrar{

    float:right;
    font-size:35px;
    color:var(--amarillo);
    cursor:pointer;

}

.modal-contenido h2{

    color:var(--amarillo);
    margin-bottom:20px;

}

.modal-contenido label{

    display:block;
    margin-top:15px;
    color:var(--amarillo);
    font-size:20px;
    font-weight:bold;

}

.modal-contenido input,
.modal-contenido textarea,
.modal-contenido select{

    width:100%;
    margin-top:8px;
    padding:12px;
    border:none;
    border-radius:8px;
    font-size:16px;

}

.modal-contenido textarea{

    resize:none;

}

.modal-contenido button{

    margin-top:20px;
    padding:15px;
    border:none;
    border-radius:8px;
    background:var(--verde);
    color:white;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;

}

.modal-contenido button:hover{

    background:var(--verdeHover);

}

#resultado{

    margin-top:20px;
    text-align:center;
    font-weight:bold;
    font-size:18px;

}
/*=========================
CATÁLOGO DE PRODUCTOS
=========================*/

.titulo-productos{

    text-align:center;
    font-size:50px;
    margin:40px 0;
    color:white;
    font-weight:bold;

}

.catalogo{

    width:90%;
    margin:auto;
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;

}

.producto-card{

    width:280px;
    background:white;
    padding:20px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.25);
    transition:.4s;

}

.producto-card:hover{

    transform:translateY(-10px);
    box-shadow:0 10px 25px rgba(0,0,0,.35);

}

.producto-card img{

    width:220px;
    height:auto;
    transition:.3s;

}

.producto-card img:hover{

    transform:scale(1.08);

}

.producto-card h2,
.producto-card h3{

    margin-top:20px;
    margin-bottom:10px;

}

.precio{

    font-size:24px;
    font-weight:bold;
    color:#28b867;
    margin-bottom:20px;

}

.producto-card button{

    width:100%;
    padding:15px;
    border:none;
    border-radius:8px;
    background:#35d37d;
    color:white;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;

}

.producto-card button:hover{

    background:#28b867;

}

/*=========================
DETALLE PRODUCTO
=========================*/

.detalle-producto{

    width:90%;
    margin:auto;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:80px;
    min-height:90vh;

}

.imagen-producto img{

    width:450px;
    transition:.4s;

}

.imagen-producto img:hover{

    transform:scale(1.05);

}

.info-producto{

    max-width:450px;

}

.info-producto h1{

    font-size:45px;
    margin-bottom:20px;

}

.info-producto h2{

    color:#28b867;
    margin-bottom:20px;

}

.info-producto p{

    line-height:1.8;
    margin-bottom:20px;

}

.info-producto label{

    font-weight:bold;

}

.info-producto select{

    width:100%;
    padding:12px;
    margin:15px 0;
    border-radius:8px;

}

.info-producto button{

    width:100%;
    padding:15px;
    background:#35d37d;
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
    transition:.3s;

}

.info-producto button:hover{

    background:#28b867;

}

/*=========================
HERO
=========================*/

.hero{

    display:flex;
    justify-content:space-around;
    align-items:center;
    min-height:85vh;
    padding:40px;

}

.hero-texto{

    max-width:600px;

}

.hero-texto h1{

    font-size:70px;
    margin-bottom:20px;

}

.hero-texto h2{

    font-size:35px;
    margin-bottom:20px;

}
.hero-texto p{
    font-size:22px;
    line-height:1.8;
}
.hero-texto button{
    margin-top:30px;
    padding:15px 35px;
    border:none;
    border-radius:8px;
    background:#35d37d;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:.3s;
}
.hero-texto button:hover{
    background:#28b867;
}
.hero-imagen img{
    width:450px;
}
/*=========================
DOM
=========================*/
#datosUsuario{
    margin-top:25px;
    padding:20px;
    background:#222;
    color:white;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.3);

}
#datosUsuario h2{
    color:#F7C600;
    margin-bottom:15px;
}
#datosUsuario p{
    margin:10px 0;
    font-size:18px;
}
/*=========================
API EXTERNA
=========================*/
.api-usuario{
    width:90%;
    margin:50px auto;
    text-align:center;
}
.api-usuario h2{
    margin-bottom:30px;
}
#usuarioAPI{
    width:350px;
    margin:auto;
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 5px 20px rgba(0,0,0,.25);
    transition:.3s;
}
#usuarioAPI:hover{
    transform:scale(1.03);
}
#usuarioAPI img{
    width:120px;
    border-radius:50%;
    margin-bottom:20px;
}
#usuarioAPI h3{
    margin-bottom:10px;
}
#usuarioAPI p{
    margin:8px 0;
}
/*=========================
CATÁLOGO DE PRODUCTOS
=========================*/
.titulo-productos{
    text-align:center;
    font-size:50px;
    margin:40px 0;
    color:white;
    font-weight:bold;
}
.catalogo{
    width:90%;
    margin:auto;
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
}
.producto-card{
    width:280px;
    background:white;
    padding:20px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.25);
    transition:.4s;
}
.producto-card:hover{
    transform:translateY(-10px);
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.producto-card img{
    width:220px;
    height:auto;
    transition:.3s;
}
.producto-card img:hover{
    transform:scale(1.08);
}
.producto-card h2,
.producto-card h3{
    margin-top:20px;
    margin-bottom:10px;
}
.precio{
    font-size:24px;
    font-weight:bold;
    color:#28b867;
    margin-bottom:20px;
}
.producto-card button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:8px;
    background:#35d37d;
    color:white;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}
.producto-card button:hover{
    background:#28b867;
}
/*=========================
DETALLE PRODUCTO
=========================*/
.detalle-producto{
    width:90%;
    margin:auto;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:80px;
    min-height:90vh;
}
.imagen-producto img{
    width:450px;
    transition:.4s;
}
.imagen-producto img:hover{
    transform:scale(1.05);
}
.info-producto{
    max-width:450px;
}
.info-producto h1{
    font-size:45px;
    margin-bottom:20px;
}
.info-producto h2{
    color:#28b867;
    margin-bottom:20px;
}
.info-producto p{
    line-height:1.8;
    margin-bottom:20px;
}
.info-producto label{
    font-weight:bold;
}
.info-producto select{
    width:100%;
    padding:12px;
    margin:15px 0;
    border-radius:8px;
}
.info-producto button{
    width:100%;
    padding:15px;
    background:#35d37d;
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
    transition:.3s;
}
.info-producto button:hover{
    background:#28b867;
}
/*=========================
HERO
=========================*/
.hero{
    display:flex;
    justify-content:space-around;
    align-items:center;
    min-height:85vh;
    padding:40px;
}
.hero-texto{
    max-width:600px;
}
.hero-texto h1{
    font-size:70px;
    margin-bottom:20px;
}
.hero-texto h2{
    font-size:35px;
    margin-bottom:20px;
}
.hero-texto p{
    font-size:22px;
    line-height:1.8;
}
.hero-texto button{
    margin-top:30px;
    padding:15px 35px;
    border:none;
    border-radius:8px;
    background:#35d37d;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:.3s;
}
.hero-texto button:hover{
    background:#28b867;
}
.hero-imagen img{
    width:450px;
}
/*=========================
DOM
=========================*/
#datosUsuario{
    margin-top:25px;
    padding:20px;
    background:#222;
    color:white;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.3);
}
#datosUsuario h2{
    color:#F7C600;
    margin-bottom:15px;
}

#datosUsuario p{
    margin:10px 0;
    font-size:18px;
}

/*=========================
API EXTERNA
=========================*/
.api-usuario{
    width:90%;
    margin:50px auto;
    text-align:center;
}
.api-usuario h2{
    margin-bottom:30px;
}

#usuarioAPI{
    width:350px;
    margin:auto;
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 5px 20px rgba(0,0,0,.25);
    transition:.3s;
}

#usuarioAPI:hover{
    transform:scale(1.03);
}

#usuarioAPI img{
    width:120px;
    border-radius:50%;
    margin-bottom:20px;
}

#usuarioAPI h3{
    margin-bottom:10px;
}

#usuarioAPI p{
    margin:8px 0;
}