/* --- VARIABLES Y RESET --- */
:root {
    --primary: #3a86ff;       /* Azul brillante */
    --secondary: #8338ec;     /* Violeta moderno */
    --dark: #111111;          /* Fondo principal muy oscuro */
    --dark-gray: #1a1a1a;     /* Fondo secundario */
    --light: #f8f9fa;         /* Texto claro */
    --accent: #ff006e;        /* Color de acento */
    --warning: #ffbe0b;       /* Color para "En curso" */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- ANIMACIONES --- */
@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-100px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* --- NAVEGACIÓN --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(17, 17, 17, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a:hover { color: var(--primary); }
.nav-links a { font-size: 0.9rem; }

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #222 0%, var(--dark) 70%);
    padding: 0 20px;
}

/* NOMBRE CON ANIMACIÓN Y EFECTO HOVER */
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
    
    /* Animación de entrada */
    animation: slideInLeft 1s ease-out forwards;
    
    /* Preparar transición suave para el hover */
    transition: all 0.4s ease;
    cursor: default; 
    display: inline-block; /* Necesario para que el transform funcione bien */
}

/* EFECTO AL PASAR EL RATÓN POR EL NOMBRE */
.hero h1:hover {
    transform: scale(1.05); /* Se hace un poco más grande */
    letter-spacing: 4px;    /* Las letras se separan */
    filter: drop-shadow(0 0 15px rgba(58, 134, 255, 0.6)); /* Brillo azul neón */
}

/* Título Profesional */
.hero-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location { 
    font-size: 1rem; 
    margin-top: 0; 
    opacity: 0.8; 
    color: #ccc; 
    margin-bottom: 2rem;
}

/* --- BOTONES HERO --- */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin: 0 10px;
    cursor: pointer;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--secondary); transform: translateY(-3px); }

.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: white; }

/* --- ICONOS SOCIALES --- */
.social-links {
    display: flex;
    gap: 25px;
    margin-top: 2rem; /* Espacio encima de los iconos */
}

.social-icon {
    width: 35px;
    height: 35px;
    fill: #ccc;
    transition: 0.3s;
}

.social-icon:hover {
    fill: var(--primary);
    transform: scale(1.1);
}

/* --- SECCIONES GENERALES --- */
section { padding: 5rem 10%; }
.bg-darker { background-color: #151515; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
}

/* --- SOBRE MÍ --- */
.about-container { text-align: center; max-width: 800px; margin: 0 auto; }

/* --- GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* TARJETAS (ESTILO GENERAL) */
.card {
    background-color: var(--dark-gray);
    padding: 2rem;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid #333;
}

.card:hover { transform: translateY(-10px); border-color: var(--primary); }
.card h3 { margin-bottom: 1rem; color: var(--primary); display: flex; align-items: center; gap: 10px; }

/* Listas dentro de las cards */
.card ul { list-style: none; padding: 0; }
.card ul li { margin-bottom: 8px; padding-left: 20px; position: relative; color: #ccc; font-size: 0.95rem; }
.card ul li::before { content: '•'; color: var(--primary); position: absolute; left: 0; font-weight: bold; }

/* BORDES ESPECÍFICOS POR TIPO DE TARJETA */
.card-education-asir { border-left: 4px solid var(--secondary); }
.card-education-bachiller { border-left: 4px solid var(--primary); }
.card-cert-aws-quest { border-left: 4px solid var(--warning); }
.card-cert-redhat { border-left: 4px solid #cc0000; }
.card-cert-aws-iam { border-left: 4px solid #ff9900; }
.card-stack { border-top: 3px solid #00d4ff; }
.card-languages { border-top: 3px solid #ffbe0b; }

/* Estilos Educación */
.edu-date { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; display: block;}
.edu-place { color: #ccc; font-style: italic; margin-bottom: 0.5rem; }

/* Badges (Etiquetas de estado) */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.status-ongoing { background-color: rgba(255, 190, 11, 0.2); color: var(--warning); border: 1px solid var(--warning); }
.status-done { background-color: rgba(58, 134, 255, 0.2); color: var(--primary); border: 1px solid var(--primary); }

/* --- PORTFOLIO --- */
.portfolio-item {
    background-color: var(--dark-gray);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #333;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-item:hover { border-color: var(--accent); transform: translateY(-5px); }
.portfolio-item h3 { font-size: 1.4rem; margin-bottom: 1rem; color: #fff; }
.portfolio-item p { font-size: 0.95rem; color: #bbb; margin-bottom: 1.5rem; }
.tags-container { margin-top: auto; }

.tag { 
    font-size: 0.75rem; background: #252525; color: var(--primary);
    padding: 5px 12px; border-radius: 20px; margin-right: 5px;
    border: 1px solid #444; display: inline-block; margin-bottom: 5px;
}

/* --- CONTACTO (BOTONES GRANDES) --- */
.contact-wrapper {
    display: flex; flex-direction: column; align-items: center;
    gap: 20px; max-width: 600px; margin: 0 auto;
}

.contact-btn-large {
    background-color: var(--dark-gray); border: 1px solid #333;
    padding: 1.5rem 2rem; border-radius: 15px; font-size: 1.2rem;
    display: flex; align-items: center; gap: 20px; width: 100%;
    justify-content: center; color: #fff; transition: 0.3s;
}

.contact-btn-large:hover {
    border-color: var(--primary); background-color: #202030;
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.contact-icon { font-size: 2rem; }
.contact-label { font-size: 0.9rem; color: #888; display: block; text-align: left;}
.contact-value { font-weight: 600; display: block; text-align: left;}

/* --- FOOTER --- */
footer {
    text-align: center; padding: 2rem; background-color: #000;
    font-size: 0.9rem; color: #777; margin-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } 
    .section { padding: 3rem 5%; }
}