/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #080b18;
    color: #f5f5f5;
    line-height: 1.6;
}

/* =========================
   ENCABEZADO
========================= */

header {
    background-color: #080816;
    color: white;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #29204d;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #a855f7;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #8b5cf6;
}

/* =========================
   PRESENTACIÓN
========================= */

.hero {
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;

    background: linear-gradient(
        135deg,
        #09001a,
        #24104f,
        #0b2a63
    );

    color: white;
}

.hero-contenido {
    max-width: 750px;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #d8d5e8;
}

/* =========================
   BOTONES
========================= */

.boton {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #7c3aed,
        #2563eb
    );

    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}

/* =========================
   PRODUCTOS
========================= */

.productos {
    padding: 70px 8%;
    text-align: center;
}

.productos h1,
.productos h2 {
    color: #ffffff;
    margin-bottom: 25px;
}

.productos h2 {
    font-size: 35px;
}

.productos > p {
    color: #c4c1d4;
}

/* =========================
   TARJETAS
========================= */

.tarjetas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.producto {
    background: linear-gradient(
        145deg,
        #11152a,
        #17102b
    );

    padding: 25px;
    border-radius: 15px;

    border: 1px solid #30245a;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.35);

    transition: 0.3s;
}

.producto:hover {
    transform: translateY(-6px);

    border-color: #7c3aed;

    box-shadow:
        0 10px 35px rgba(124, 58, 237, 0.25);
}

.producto-icono {
    font-size: 60px;
    margin-bottom: 15px;
}

.producto h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
}

.producto p {
    margin-bottom: 20px;
    color: #c4c1d4;
}

/* =========================
   IMÁGENES DE PRODUCTOS
========================= */

.producto-imagen {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;

    border: 1px solid #35276a;
}

/* =========================
   FORMULARIO
========================= */

form {
    max-width: 700px;
    margin: 30px auto 0;

    background: linear-gradient(
        145deg,
        #11152a,
        #17102b
    );

    padding: 35px;
    border-radius: 15px;

    border: 1px solid #30245a;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.35);

    text-align: left;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;

    background-color: #080b18;
    color: white;

    border: 1px solid #39305c;
    border-radius: 8px;

    font-size: 16px;
    font-family: Arial, sans-serif;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #8b5cf6;

    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.2);
}

form button {
    width: 100%;
    padding: 14px;

    background: linear-gradient(
        90deg,
        #7c3aed,
        #2563eb
    );

    color: white;
    border: none;
    border-radius: 8px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 20px rgba(124, 58, 237, 0.4);
}

/* =========================
   PIE DE PÁGINA
========================= */

footer {
    background-color: #080816;
    color: #aaa6bd;
    text-align: center;
    padding: 25px;
    margin-top: 30px;

    border-top: 1px solid #29204d;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .tarjetas {
        grid-template-columns: 1fr;
    }

    .producto-imagen {
        height: 200px;
    }
}