/* ======================================================
   DISEÑO FINAL PREMIUM - DIEGO VILLARREAL (NEGRO & ROJO)
   ====================================================== */

:root {
    --negro-puro: #050505;
    --negro-tarjeta: #0a0a0a;
    --rojo-vibrante: #ff0000;
    --rojo-oscuro: #8b0000;
    --blanco: #ffffff;
    --gris-texto: #b0b0b0;
    --fuente: 'Inter', sans-serif;
}

/* 1. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--negro-puro) !important;
    color: var(--blanco) !important;
    font-family: var(--fuente);
    line-height: 1.6;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 2. HEADER */
.header {
    background: rgba(5, 5, 5, 0.95) !important;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav ul { display: flex; list-style: none; gap: 30px; justify-content: flex-end; }
nav a { text-decoration: none; color: var(--blanco) !important; font-weight: 600; transition: color 0.3s; }
nav a:hover { color: var(--rojo-vibrante) !important; }

/* 3. HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle, #1a0000 0%, #050505 100%) !important;
}
.hero h1 { font-size: 3.5rem; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.accent { color: var(--rojo-vibrante) !important; text-shadow: 0 0 15px rgba(255, 0, 0, 0.6); }

/* 4. TARJETAS DE PORTAFOLIO (NUEVO DISEÑO) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.portfolio-card {
    background: var(--negro-tarjeta);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.portfolio-card a {
    text-decoration: none;
    display: block;
    padding: 50px 20px;
    text-align: center;
}
.card-icon {
    font-size: 3.5rem;
    color: #333; /* Color apagado inicial */
    margin-bottom: 20px;
    transition: all 0.4s ease;
}
.card-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.card-content p { color: #777; font-size: 0.9rem; }

/* HOVER TARJETAS */
.portfolio-card:hover {
    border-color: var(--rojo-vibrante);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}
.portfolio-card:hover .card-icon {
    color: var(--rojo-vibrante);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 5. CONOCIMIENTOS & SOBRE MÍ */
.about-grid { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; margin-top: 40px; }
.about-img { max-width: 350px; border-left: 5px solid var(--rojo-vibrante); padding-left: 15px; }

.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 40px; }
.knowledge-item { background: var(--negro-tarjeta); padding: 30px; border-radius: 8px; border: 1px solid #1a1a1a; }
.knowledge-item h4 { color: var(--rojo-vibrante); margin-bottom: 15px; text-transform: uppercase; }

/* 6. BOTONES & FORMULARIO */
.btn-primary, button[type="submit"] {
    background-color: var(--rojo-vibrante) !important;
    color: var(--blanco) !important;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-primary:hover, button[type="submit"]:hover { background-color: var(--rojo-oscuro); transform: translateY(-2px); }

.contact-form { max-width: 600px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 15px; background: #151515; border: 1px solid #333; color: white; border-radius: 4px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--rojo-vibrante); outline: none; }

.footer { padding: 40px 0; text-align: center; border-top: 1px solid #1a1a1a; color: #444; font-size: 0.9rem; }





