
/* =========================
   CONFIGURACION GENERAL
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    background: url("imagenes/fondo.jpg") center / cover fixed no-repeat;
    line-height: 1.6;
}

/* CONTENEDOR PRINCIPAL */

#principal {
    width: 90%;
    max-width: 1200px;
    margin: 25px auto;
    background-color: rgba(24, 13, 43, 0.96);
    border: 2px solid #ff8c00;
    border-radius: 12px;
    overflow: hidden;
}

/* =========================
   ENCABEZADO
========================= */

header {
    text-align: center;
    padding: 25px 15px;
    background-color: #180d2b;
    border-bottom: 2px solid #ff8c00;
}

header h1 {
    color: #ff704d;
    font-size: 48px;
    margin-bottom: 5px;
}

header p {
    color: #00e5ff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
}

/* =========================
   MENU DE NAVEGACION
========================= */

nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 18px;
    background-color: #180d2b;
    border-bottom: 2px solid #ff8c00;
}

/* Si el menu usa una lista */

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Botones del menu */

nav a {
    display: inline-block;
    width: auto;
    padding: 10px 24px;
    margin: 0;
    background-color: #352052;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #ff8c00;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

nav a:hover {
    background-color: #ff8c00;
    color: #180d2b;
    transform: translateY(-3px);
}

/* =========================
   PRESENTACION
========================= */

#presentacion {
    text-align: center;
    padding: 45px 25px;
    background-color: rgba(53, 32, 82, 0.85);
    border-bottom: 2px solid #ff8c00;
}

#presentacion h2 {
    font-size: 32px;
    color: #ff8c00;
    margin-bottom: 15px;
}

#presentacion p {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Imagen gamer */

#imagenGamer {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: 25px auto 0;
    border-radius: 12px;
    border: 2px solid #ff8c00;
}

/* =========================
   INFORMACION
========================= */

#informacion,
.seccion-nosotros {
    padding: 35px 25px;
    text-align: center;
    border-bottom: 2px solid #ff8c00;
}

#informacion h2,
.seccion-nosotros h2 {
    color: #ff8c00;
    font-size: 28px;
    margin-bottom: 15px;
}

#informacion p,
.seccion-nosotros p {
    margin-bottom: 12px;
    font-size: 17px;
}

/* =========================
   CARACTERISTICAS
========================= */

#caracteristicas {
    padding: 35px 20px;
    text-align: center;
}

#caracteristicas h2 {
    color: #ff8c00;
    font-size: 28px;
    margin-bottom: 25px;
}

.caja {
    display: inline-block;
    width: 28%;
    min-width: 220px;
    margin: 10px;
    padding: 22px;
    vertical-align: top;
    background-color: #352052;
    border: 2px solid #ff8c00;
    border-radius: 12px;
}

.caja h3 {
    color: #00e5ff;
    margin-bottom: 10px;
}

/* =========================
   CATALOGO DE CELULARES
========================= */

#catalogo,
#zonaProductos {
    padding: 35px 20px;
    text-align: center;
    border-top: 2px solid #ff8c00;
}

#catalogo h2,
#zonaProductos h2 {
    color: #ff8c00;
    font-size: 30px;
    margin-bottom: 15px;
}

#catalogo > p,
#zonaProductos > p {
    margin-bottom: 20px;
    font-size: 17px;
}

/* Contenedor de las tarjetas */

#productosJSON {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
}

/* Tarjetas de celulares */

.producto,
.tarjetaJSON {
    display: flex;
    flex-direction: column;
    width: 280px;
    max-width: 100%;
    padding: 18px;
    background-color: #352052;
    border: 2px solid #ff8c00;
    border-radius: 14px;
    text-align: center;
    transition: 0.3s;
}

.producto:hover,
.tarjetaJSON:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 18px rgba(255, 140, 0, 0.3);
}

/* Imagen del celular */

.producto img,
.tarjetaJSON img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: 220px;
    object-fit: contain;
    margin: 0 auto 15px;
    border-radius: 8px;
}

/* Nombre */

.producto h3,
.tarjetaJSON h3 {
    color: #00e5ff;
    font-size: 22px;
    margin-bottom: 10px;
}

/* Descripcion */

.producto p,
.tarjetaJSON p {
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

/* Precio */

.producto .precio,
.tarjetaJSON .precio {
    color: #ffb347;
    font-size: 22px;
    font-weight: bold;
    margin-top: auto;
}

/* =========================
   BOTONES GENERALES
========================= */

button,
.boton,
.btnComprar {
    display: inline-block;
    padding: 11px 22px;
    margin: 8px 0;
    background-color: #ff8c00;
    color: #180d2b;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover,
.boton:hover,
.btnComprar:hover {
    background-color: #00e5ff;
    color: #180d2b;
    transform: scale(1.03);
}

/* =========================
   LOGO
========================= */

#logo {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
}

/* =========================
   CONTACTO
========================= */

#contacto {
    padding: 35px 20px;
    text-align: center;
    background-color: rgba(24, 13, 43, 0.95);
    border-top: 2px solid #ff8c00;
}

#contacto h2 {
    color: #ff8c00;
    font-size: 28px;
    margin-bottom: 10px;
}

#contacto > p {
    margin-bottom: 20px;
}

#formularioContacto {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

#formularioContacto label {
    margin: 10px 0 5px;
    font-weight: bold;
}

#formularioContacto input,
#formularioContacto textarea {
    width: 100%;
    padding: 12px;
    color: white;
    background-color: #241638;
    border: 1px solid #ff8c00;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

#formularioContacto textarea {
    resize: vertical;
}

#formularioContacto input:focus,
#formularioContacto textarea:focus {
    outline: 2px solid #00e5ff;
}

#formularioContacto button {
    align-self: center;
    margin-top: 18px;
}

#estadoContacto {
    margin-top: 12px;
    text-align: center;
}

/* =========================
   PIE DE PAGINA
========================= */

footer {
    padding: 20px;
    text-align: center;
    color: white;
    background-color: #10091c;
    border-top: 2px solid #ff8c00;
}

footer p {
    margin: 5px 0;
}

/* =========================
   ADAPTACION A CELULARES
========================= */

@media (max-width: 768px) {
    #principal {
        width: 96%;
        margin: 10px auto;
    }

    header h1 {
        font-size: 36px;
    }

    header p {
        font-size: 15px;
        letter-spacing: 2px;
    }

    nav {
        gap: 10px;
        padding: 12px;
    }

    nav ul {
        gap: 10px;
    }

    nav a {
        padding: 9px 14px;
        font-size: 14px;
    }

    #presentacion {
        padding: 30px 15px;
    }

    #presentacion h2 {
        font-size: 25px;
    }

    .caja {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 12px 0;
    }

    #productosJSON {
        gap: 18px;
    }

    .producto,
    .tarjetaJSON {
        width: 100%;
        max-width: 320px;
    }

    .producto img,
    .tarjetaJSON img {
        height: 200px;
    }
}
