/* =========================================================
   1. RESET GENERAL & BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #071524;
    color: #e2e8f0;
    line-height: 1.6;
}

.hidden { 
    display: none !important; 
}

/* =========================================================
   2. NAV BAR & NAVEGACIÓN
   ========================================================= */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #040d17;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.logo span {
    font-size: 0.85rem;
    color: #00cfff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #00cfff;
}

.login-link {
    color: #cbd5e1;
    background: transparent;
    border: 1px solid #1e293b;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.login-link:hover {
    border-color: #00cfff;
    color: #00cfff;
}

.btn-logout {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #dc2626;
}

/* =========================================================
   3. HERO SECTION
   ========================================================= */
.hero {
    min-height: 85vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle, #0d2236 0%, #071524 100%);
    padding: 40px 20px;
}

.overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(7, 21, 36, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.tag {
    background: #00cfff;
    color: #071524;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 3rem;
    margin-top: 10px;
    color: #ffffff;
    line-height: 1.2;
}

.highlight {
    color: #00cfff;
}

.hero p {
    font-size: 1.2rem;
    margin: 20px 0 30px;
    color: #cbd5e1;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   4. COMPONENTES: BOTONES
   ========================================================= */
.btn {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary { 
    background: #00cfff; 
    color: #071524; 
}
.btn-primary:hover { 
    background: #38bdf8; 
}

.btn-secondary { 
    background: #1e293b; 
    color: #ffffff; 
    width: 100%; 
}
.btn-secondary:hover { 
    background: #334155; 
}

.btn-outline { 
    background: transparent; 
    color: #00cfff; 
    border: 1px solid #00cfff; 
}
.btn-outline:hover { 
    background: rgba(0, 207, 255, 0.1); 
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b38728 100%);
    color: #0b0f19;
    font-weight: 700;
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: #000000;
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    font-weight: 600;
    padding: 16px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-whatsapp:hover {
    background: #1eb857;
}

.btn-block { 
    width: 100%; 
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* =========================================================
   5. SECCIÓN DE CARDS DE CAPACIDADES
   ========================================================= */
.capabilities-section {
    padding: 70px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.section-title p {
    color: #a0aec0;
    font-size: 1.05rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.capability-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 207, 255, 0.15);
    border-color: #00cfff;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #1f2937;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.capability-card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 207, 255, 0.9);
    color: #0b0f19;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-body p {
    font-size: 0.92rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-btn {
    color: #00cfff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.card-btn:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* =========================================================
   6. SECCIÓN DE CAPACITACIÓN & CERTIFICACIÓN (PROMOCIONAL)
   ========================================================= */
.promo-banner-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #0b0f19 0%, #111827 50%, #0b0f19 100%);
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

.promo-container {
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.promo-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.12);
    color: #f1c40f;
    border: 1px solid rgba(212, 175, 55, 0.4);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.promo-container h2.gold-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffe082 0%, #d4af37 50%, #b38728 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0px 4px 15px rgba(212, 175, 55, 0.2);
}

.promo-dates {
    font-size: 1.35rem;
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.promo-subtitle {
    color: #d1d5db;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.promo-art-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
    border: 2px solid rgba(212, 175, 55, 0.6);
    margin: 0 auto 40px auto;
    max-width: 950px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-art-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.35);
}

.promo-art-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.promo-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* =========================================================
   7. FORMULARIOS, MODAL Y PORTAL DE TALENTOS
   ========================================================= */
.auth-container {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.auth-card {
    background: #0d2236;
    border: 1px solid #1e293b;
    padding: 35px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px; 
    right: 20px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

.info-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.portal-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.upload-card, 
.profile-card, 
.contacto form {
    background: #0d2236;
    border: 1px solid #1e293b;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

input, textarea {
    padding: 12px;
    background: #071524;
    border: 1px solid #1e293b;
    color: #ffffff;
    border-radius: 6px;
    outline: none;
    width: 100%;
}

input:focus, textarea:focus { 
    border-color: #00cfff; 
}

.optin-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.loading-spinner {
    margin-top: 15px;
    color: #00cfff;
    font-weight: bold;
    text-align: center;
}

/* =========================================================
   8. SECCIÓN CONTACTO Y ELEMENTOS FLOTANTES
   ========================================================= */
.contacto {
    padding: 80px 8%;
    text-align: center;
    background: #071524;
}

.contacto form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp {
    position: fixed;
    right: 25px; 
    bottom: 25px;
    background: #25D366;
    width: 55px; 
    height: 55px;
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 26px; 
    border-radius: 50%;
    text-decoration: none; 
    color: white;
    z-index: 90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================= */
@media (max-width: 768px) {
    .top-bar {
        padding: 15px 5%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .promo-container h2.gold-text {
        font-size: 2.1rem;
    }
    
    .promo-dates {
        font-size: 1.1rem;
    }
    
    .promo-subtitle {
        font-size: 1rem;
    }

    .btn-large {
        width: 100%;
    }
    
    .btn-whatsapp {
        width: 100%;
        text-align: center;
    }
}