/* landing.css - Estilos para la pagina de inicio SecureSab */

/* ===== Variables CSS ===== */
:root {
    --primary-green: #006400;
    --primary-green-light: #008000;
    --accent-green: #6abf4b;
    --dark-green: #004d00;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 8px 30px rgba(0, 100, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset y Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Scroll Reveal Animations ===== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-left"] {
    transform: translateX(-40px);
}

[data-animate="fade-right"] {
    transform: translateX(40px);
}

[data-animate="fade-in"] {
    transform: none;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(106, 191, 75, 0.3); }
    50% { box-shadow: 0 0 40px rgba(106, 191, 75, 0.6); }
}

.stagger-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo .secure {
    color: var(--white);
    transition: var(--transition);
}

.nav-logo .sab {
    color: var(--accent-green);
}

.navbar.scrolled .nav-logo .secure {
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--dark);
}

.nav-link:hover {
    color: var(--accent-green);
}

.nav-btn {
    background: var(--white);
    color: var(--primary-green);
    padding: 10px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.nav-btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.navbar.scrolled .nav-btn {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.navbar.scrolled .nav-btn:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--dark);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    border-radius: 0 0 15px 15px;
    transform: translateY(-10px);
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-link:hover {
    background: var(--light-gray);
    color: var(--primary-green);
    padding-left: 20px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 40%, var(--primary-green-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(106, 191, 75, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-title .highlight {
    color: var(--accent-green);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-green);
    padding: 15px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background: var(--accent-green);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 15px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* Hero Card */
.hero-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.card-header i {
    font-size: 1.5rem;
    color: var(--accent-green);
}

.card-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.stat {
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    transition: var(--transition);
}

.stat:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
}

.stat i {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 12px;
    display: block;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    display: block;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 20px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 100, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(106, 191, 75, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 100, 0, 0.3);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Roles Section ===== */
.roles {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
}

.roles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 100, 0, 0.1), transparent);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.role-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.role-card.aprendiz::before { background: linear-gradient(90deg, #3498db, #5dade2); }
.role-card.instructor::before { background: linear-gradient(90deg, #e74c3c, #ec7063); }
.role-card.coordinador::before { background: linear-gradient(90deg, #f39c12, #f5b041); }
.role-card.vigilante::before { background: linear-gradient(90deg, #27ae60, #52be80); }
.role-card.gestor::before { background: linear-gradient(90deg, #8e44ad, #a569bd); }

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.role-card:hover::before {
    height: 5px;
}

.role-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.role-card:hover .role-icon {
    transform: scale(1.1);
}

.role-card.aprendiz .role-icon { background: rgba(52, 152, 219, 0.12); color: #3498db; }
.role-card.instructor .role-icon { background: rgba(231, 76, 60, 0.12); color: #e74c3c; }
.role-card.coordinador .role-icon { background: rgba(243, 156, 18, 0.12); color: #f39c12; }
.role-card.vigilante .role-icon { background: rgba(39, 174, 96, 0.12); color: #27ae60; }
.role-card.gestor .role-icon { background: rgba(142, 68, 173, 0.12); color: #8e44ad; }

.role-icon i {
    font-size: 1.8rem;
}

.role-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.role-features {
    list-style: none;
    text-align: left;
}

.role-features li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.role-features li:last-child {
    border-bottom: none;
}

.role-features li:hover {
    padding-left: 5px;
    color: var(--primary-green);
}

.role-features li i {
    color: var(--accent-green);
    font-size: 0.85rem;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 25px;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    border-radius: 2px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-gray);
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--primary-green);
    transition: var(--transition);
    border: 1px solid rgba(0, 100, 0, 0.08);
}

.about-stat:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.about-stat i {
    font-size: 1.2rem;
}

.sena-badge {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sena-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: glow 3s ease-in-out infinite;
}

.sena-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 100, 0, 0.3);
}

.sena-badge i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.sena-badge span {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
}

.sena-badge small {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 50%, var(--primary-green-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
}

.btn-cta {
    background: var(--white);
    color: var(--primary-green);
    padding: 18px 42px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    background: var(--accent-green);
    color: var(--white);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.footer-brand .secure {
    color: var(--white);
}

.footer-brand .sab {
    color: var(--accent-green);
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 5px;
    font-weight: normal;
    font-family: 'Inter', sans-serif;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-green);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 191, 75, 0.3);
    border-color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-stats {
        justify-content: center;
    }

    .sena-badge {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .roles-grid {
        grid-template-columns: 1fr;
    }

    .features,
    .roles,
    .about,
    .cta {
        padding: 60px 0;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .feature-card,
    .role-card {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .features,
    .roles,
    .about,
    .cta {
        padding: 40px 0;
    }

    .about-text h2 {
        font-size: 1.7rem;
    }

    .sena-badge {
        padding: 40px 25px;
    }

    .footer-brand {
        font-size: 22px;
    }

    .cta h2 {
        font-size: 1.6rem;
    }
}
