/* === VARIABLES Y CONFIGURACIÓN GLOBAL === */
:root {
    /* Color Azul/Cian Tecnológico para Ciberseguridad */
    --primary-color: #0ea5e9; 
    --dark-color: #0f172a;    /* Azul muy oscuro (casi negro) */
    
    --light-bg: #f1f5f9;      /* Gris muy claro */
    --text-body: #334155;     /* Gris oscuro para lectura */
    --white: #ffffff;
    --font-stack: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-body);
}

/* === UTILIDADES === */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 4rem 0;
}

.section-bg {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 3rem;
    font-weight: 600;
}

.highlight {
    color: var(--primary-color);
}

a {
    text-decoration: none;
}

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* === NAVEGACIÓN === */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* === HERO === */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: linear-gradient(to bottom, #ffffff 0%, var(--light-bg) 100%);
}

.hero-content {
    text-align: center; /* Centrado para diseño limpio */
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 1.25rem;
    color: var(--text-body);
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-top: 2rem;
}

/* === PERFIL CON FOTO (ESTILOS NUEVOS) === */
.about-content-with-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.photo-container {
    flex: 0 0 auto;
}

.perfil-foto {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top; /* Ajuste para que la cara quede bien centrada */
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2); /* Sombra suave con color */
}

.text-container {
    max-width: 600px;
    font-size: 1.1rem;
}

/* === GRID DE HABILIDADES Y PROYECTOS === */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card, .project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
}

.skill-card {
    border-top-color: var(--primary-color);
    text-align: center;
}

.skill-card h3, .project-info h3 {
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-info {
    padding: 1rem 0;
}

/* === CONTACTO Y FOOTER === */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* === RESPONSIVE (MÓVIL) === */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar menú en móvil para simplificar */
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .about-content-with-photo {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .perfil-foto {
        width: 160px;
        height: 160px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}