/* ==========================================
   1. GENERAL Y TIPOGRAFÍA
   ========================================== */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #fdfaf9; /* Fondo sutilmente cálido */
    color: #5a0c0c;
}

/* ==========================================
   2. HEADER (ENCABEZADO)
   ========================================== */
header {
    background: #1a1a1a;
    color: white;
    padding: 40px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.header-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0px 4px 8px rgba(255, 255, 255, 0.1));
}

.header-text {
    text-align: left;
}

header h1 {
    margin: 0;
    font-size: 2.8rem;
    font-family: 'Algerian', sans-serif;
    letter-spacing: 1px;
    color: #ff4d4d; /* Destello rojo en el título */
}

header p {
    margin: 5px 0 0 0;
    font-size: 1.1rem;
    color: #ccc;
}

/* ==========================================
   3. BOTONES DE NAVEGACIÓN (PESTAÑAS)
   ========================================== */
.tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 35px 0 15px 0;
}

/* Estilo Base para transformar el texto en un Botón Real */
.tab-link {
    display: inline-block; /* Obligatorio para que tome dimensiones de botón */
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 50px; /* Bordes completamente redondeados estilo cápsula */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase; /* Texto en mayúsculas para mayor impacto */
    letter-spacing: 0.5px;
}

/* Botones que NO están activos (Disponibles para click) */
.tab-link:not(.active) {
    background-color: #ffffff;
    color: #bf0a0a;
    border: 2px solid #ebdcd6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Efecto Hover sobre los botones disponibles */
.tab-link:not(.active):hover {
    background-color: #bf0a0a;
    color: #ffffff;
    border-color: #bf0a0a;
    transform: translateY(-3px); /* Efecto de elevación física */
    box-shadow: 0 6px 12px rgba(191, 10, 10, 0.25);
}

/* Botón Activo (Representa la pestaña en la que estás parado) */
.tab-link.active {
    background-color: #bf0a0a;
    color: #ffffff;
    border: 2px solid #bf0a0a;
    cursor: default;
    box-shadow: 0 4px 8px rgba(191, 10, 10, 0.35);
}


/* ==========================================
   4. SECCIÓN DE PROYECTOS Y TARJETAS
   ========================================== */
.projects {
    padding: 30px 20px;
    max-width: 1100px;
    margin: auto;
}

.projects h2 {
    text-align: center;
    margin-bottom: 35px;
    font-family: 'Algerian', sans-serif;
    color: #1a1a1a;
    font-size: 2.2rem;
    position: relative;
}

/* Línea decorativa debajo de "Ejercicios en Clase" */
.projects h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #bf0a0a;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Tarjetas de Proyectos */
.project-card {
    background: #ffffff;
    padding: 25px 20px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    color: #bf0a0a;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    border: 1px solid #ebdcd6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover {
    border-color: #bf0a0a;
    background-color: #bf0a0a;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(191, 10, 10, 0.2);
}

/* ==========================================
   5. FOOTER (PIE DE PÁGINA)
   ========================================== */
footer {
    background: #1a1a1a;
    color: #999;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    font-size: 0.95rem;
    border-top: 3px solid #bf0a0a;
}