/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --primary-color: #0056b3;    /* Azul CENFOTEC/Tecnológico */
    --text-color: #333333;       /* Gris oscuro para lectura */
    --bg-color: #ffffff;         /* Blanco puro */
    --light-bg: #f8f9fa;         /* Gris muy claro para contrastes */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en el menú */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* =========================================
   2. ENCABEZADO Y NAVEGACIÓN
   ========================================= */
.header {
    background-color: var(--bg-color);
    padding: 1.5rem 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Sombra sutil */
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: var(--transition);
}

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

/* =========================================
   3. SECCIÓN HERO (Presentación)
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--primary-color);
}

.btn-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,86,179,0.3);
}

/* =========================================
   4. ESTILOS DE SECCIONES GENERALES
   ========================================= */
.section {
    padding: 100px 15%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

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

/* =========================================
   5. TARJETAS DE HABILIDADES (Grid)
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.skill-card:hover {
    border-bottom: 3px solid var(--primary-color);
}

/* =========================================
   6. CONTACTO Y FOOTER
   ========================================= */
.contact-links {
    text-align: center;
}

.social-icons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* =========================================
   7. RESPONSIVE (Móviles)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Podríamos agregar un menú hamburguesa luego */
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 5%;
    }
}