/* ==========================================
   CORRECCIONES HUMANPRO - ENERO 2026
   Archivo: humanpro-fixes.css
   
   INSTRUCCIÓN: Agregar DESPUÉS de style.css
   <link rel="stylesheet" href="css/humanpro-fixes.css">
   ========================================== */

/* ==========================================
   ERROR #1: HEADER - Color + Logo + Consistencia
   ========================================== */

/* Header siempre oscuro (no solo al scroll) */
.main-header {
    background: rgba(5, 10, 48, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(35, 61, 255, 0.15);
    padding: 1rem 0; /* Quitar padding lateral */
}

/* Contenedor interno para el header */
.main-header > .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Si no existe contenedor, aplicar a los hijos directos */
.main-header:not(:has(.header-container)) {
    padding: 1rem 5%;
}

/* Logo con separación correcta */
.logo {
    margin-right: 2rem;
}

.logo img {
    height: 50px;
    width: auto;
}

/* ==========================================
   ERROR #2: BOTONES HERO - Alineación
   ========================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.5rem;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    flex: 0 1 auto;
    min-width: 200px;
    text-align: center;
    white-space: nowrap;
}

/* ==========================================
   ERROR #3: BARRA DE BÚSQUEDA - Datos completos
   ========================================== */

.search-container {
    position: relative;
    max-width: 250px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    overflow: visible;
    text-overflow: ellipsis;
}

/* ==========================================
   ERROR #4: SOLUCIONES DE CARRERA - Grid perfecto
   ========================================== */

.solutions-grid,
.career-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.solution-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solution-card-content {
    flex-grow: 1;
}

.solution-card-cta {
    margin-top: auto;
}

/* ==========================================
   ERROR #5: CALCULADORA - Acordeón compacto
   ========================================== */

.calculator-section {
    margin: 3rem 0;
}

.calculator-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(35, 61, 255, 0.1);
    border: 2px solid rgba(35, 61, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.calculator-toggle:hover {
    background: rgba(35, 61, 255, 0.15);
    border-color: #00d4ff;
}

.calculator-toggle i:last-child {
    transition: transform 0.3s ease;
}

.calculator-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.calculator-content.open {
    max-height: 3000px;
    padding-top: 2rem;
}

/* ==========================================
   ERROR #9: QUIZ - Una pregunta a la vez
   ========================================== */

.quiz-question {
    display: none;
    opacity: 0;
}

.quiz-question.active {
    display: block;
    opacity: 1;
    animation: fadeInQuestion 0.4s ease;
}

@keyframes fadeInQuestion {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   ERROR #10: BLOG - Rediseño completo
   ========================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-article {
    background: rgba(5, 10, 48, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(35, 61, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-article:hover {
    transform: translateY(-8px);
    border-color: #00d4ff;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.article-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-article:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.3;
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.article-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4ff;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.article-cta:hover {
    gap: 1rem;
}

/* ==========================================
   ERROR #11: EBOOKS - Rediseño
   ========================================== */

.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.ebook-card {
    background: rgba(5, 10, 48, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(35, 61, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.ebook-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.ebook-cover {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #050a30, #233dff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.ebook-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(35,61,255,0.2) 0%, transparent 50%);
}

.ebook-cover-title,
.ebook-title {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    color: #fff;
}

.ebook-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ebook-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.ebook-download {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #233dff, #00d4ff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.ebook-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

/* ==========================================
   ERROR #12: GLOSARIO - Letras horizontales
   ========================================== */

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    position: sticky;
    top: 80px;
    background: rgba(5, 10, 48, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 2px solid rgba(35, 61, 255, 0.2);
    z-index: 100;
}

.alphabet-letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(35, 61, 255, 0.1);
    border: 2px solid rgba(35, 61, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.alphabet-letter:hover,
.alphabet-letter.active {
    background: linear-gradient(135deg, #233dff, #00d4ff);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.alphabet-letter.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.alphabet-letter.disabled:hover {
    transform: none;
    background: rgba(35, 61, 255, 0.1);
    box-shadow: none;
}

/* ==========================================
   ERROR #13: COMING SOON - Bolsa Empleo y Webinars
   ========================================== */

.coming-soon-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
}

.coming-soon-container {
    max-width: 800px;
    text-align: center;
}

.coming-soon-icon {
    font-size: 5rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.coming-soon-container h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff, #233dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(35, 61, 255, 0.1);
    border: 2px solid rgba(35, 61, 255, 0.3);
    border-radius: 15px;
    min-width: 100px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 800;
    color: #00d4ff;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notify-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 4rem;
}

.notify-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(35, 61, 255, 0.1);
    border: 2px solid rgba(35, 61, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
}

.notify-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.notify-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #233dff, #00d4ff);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.notify-form button:hover {
    transform: translateY(-2px);
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem;
    background: rgba(35, 61, 255, 0.05);
    border: 2px solid rgba(35, 61, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(35, 61, 255, 0.1);
    border-color: #00d4ff;
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    /* Header */
    .main-header {
        padding: 1rem 5%;
    }
    
    /* Hero buttons */
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        min-width: unset;
    }
    
    /* Búsqueda */
    .search-container {
        max-width: 100%;
    }
    
    /* Grids */
    .solutions-grid,
    .blog-grid,
    .ebooks-grid {
        grid-template-columns: 1fr;
    }
    
    /* Glosario */
    .alphabet-nav {
        gap: 0.35rem;
        padding: 1rem;
    }
    
    .alphabet-letter {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    /* Ebooks */
    .ebook-cover {
        height: 300px;
    }
    
    .ebook-cover-title {
        font-size: 1.5rem;
    }
    
    /* Coming soon */
    .coming-soon-container h1 {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .features-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .coming-soon-icon {
        font-size: 3rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
}
