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

/* VARIABLES (nuevo estilo más moderno) */
:root {
    --bg: #0b0f19;
    --card: #121826;
    --primary: #3b82f6;
    --secondary: #9333ea;
    --text: #f1f5f9;
    --subtext: #94a3b8;
}

/* BODY */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0b0f19, #020617);
    color: var(--text);
    min-height: 100vh;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1e293b;
}

header h1 {
    font-size: 20px;
    font-weight: bold;
}

/* NAV */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--subtext);
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

/* EFECTO SUBRAYADO MODERNO */
nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: 0.3s;
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at top, #3b82f6, #020617);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    color: var(--subtext);
    font-size: 1.1rem;
}

/* MAIN */
main {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
}

/* CARDS */
.content {
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #1e293b;
    transition: 0.3s;
}

/* EFECTO HOVER PRO */
.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* TITULOS */
.content h3 {
    margin-bottom: 10px;
}

/* LISTAS */
.content ul {
    margin-top: 10px;
}

.content li {
    margin: 8px 0;
    color: var(--subtext);
}

/* GRID AUTOMÁTICO */
main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* HERO ocupa todo */
.hero {
    grid-column: span 2;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
    color: var(--subtext);
    margin-top: 30px;
}

/* FORM (más moderno) */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: #020617;
    color: white;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* BOTÓN */
button {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 10px;
    }

    main {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-column: span 1;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}
