/* CVE Security Hub - Estilos */
/* Autor: Byron Lainez */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
}

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

/* ========================================
   HEADER
   ======================================== */

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.header-nav a:hover {
    opacity: 0.8;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    margin-top: 80px;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero .description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), transparent);
}

.features h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.features-subtitle {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 70px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 45px 35px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    transition: all 0.4s ease;
    position: relative;
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.35);
}

.feature-icon {
    font-size: 40px;
    filter: brightness(0) invert(1);
}

/* SVG Icons */
.feature-icon svg {
    width: 40px;
    height: 40px;
    filter: none;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: bold;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================================
   CTA SECTION (FORMULARIO)
   ======================================== */

.cta-section {
    background: white;
    padding: 100px 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #667eea;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.6;
}

.form-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.about h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 18px;
}

.author-name {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    display: block;
}

.author-title {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .features h2,
    .cta-content h2,
    .about h2 {
        font-size: 32px;
    }

    .form-container {
        padding: 30px 20px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .header-nav {
        flex-direction: column;
        gap: 10px;
    }

    .header-nav a {
        font-size: 14px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-svg {
        width: 32px;
        height: 32px;
    }

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