/* =====================================================
   XMLGratis.mx - Estilos Principales
   Powered by IAudita
   ===================================================== */

/* Variables */
:root {
    /* Colores principales */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --primary-glow: rgba(16, 185, 129, 0.4);

    /* Colores secundarios */
    --secondary: #3B82F6;
    --secondary-dark: #2563EB;

    /* Colores de acento */
    --accent: #F59E0B;
    --accent-light: #FBBF24;

    /* Colores de estado */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Fondos */
    --bg-dark: #0A0F1C;
    --bg-darker: #060912;
    --bg-card: #111827;
    --bg-card-hover: #1F2937;

    /* Textos */
    --text-white: #FFFFFF;
    --text-light: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-dark: #6B7280;

    /* Bordes */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.2);

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Espaciado */
    --container-width: 1200px;
    --section-padding: 100px;

    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav > .btn,
    .nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   Header / Navigation
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-xml {
    color: var(--text-white);
}

.logo-gratis {
    color: var(--primary);
}

.logo-mx {
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Overlay verde oscuro con gradiente para legibilidad */
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.85) 0%,      /* Verde oscuro */
        rgba(10, 15, 28, 0.9) 50%,      /* Azul oscuro del tema */
        rgba(5, 46, 22, 0.8) 100%       /* Verde muy oscuro */
    );
    z-index: 1;
}

/* Efecto de brillo sutil verde */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(
        ellipse at top right,
        rgba(16, 185, 129, 0.15) 0%,
        transparent 60%
    );
    z-index: 2;
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.hero-blur-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    opacity: 0.15;
}

.hero-blur-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--primary);
}

/* Hero Visual Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--text-light);
    font-weight: 600;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

/* =====================================================
   Partners / Aliados Section
   ===================================================== */
.partners {
    padding: 30px 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.partners-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    height: 35px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.partner-item img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.partner-placeholder {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.partners-subtitle {
    text-align: center;
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .partners-logos {
        gap: 30px;
    }

    .partner-item img {
        max-height: 40px;
        max-width: 140px;
    }
}

/* =====================================================
   Features Section
   ===================================================== */
.features {
    padding: var(--section-padding) 0;
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =====================================================
   Why Free Section
   ===================================================== */
.why-free {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.why-free-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-free-text .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.why-free-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.why-list {
    margin: 32px 0;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1.1rem;
}

.why-item i {
    font-size: 1.25rem;
}

.why-item-no i {
    color: var(--error);
}

.why-item-no {
    color: var(--text-muted);
}

.why-item-yes i {
    color: var(--success);
}

.why-item-yes {
    color: var(--text-light);
}

.why-conclusion {
    padding: 24px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Proof Card */
.proof-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.proof-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.proof-logo {
    height: 40px;
}

.proof-badge {
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.proof-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.proof-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.proof-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 4px;
}

.proof-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.proof-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-weight: 500;
}

/* =====================================================
   How It Works
   ===================================================== */
.how-it-works {
    padding: var(--section-padding) 0;
    background: var(--bg-darker);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-muted);
}

.step-connector {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    margin-top: 40px;
    opacity: 0.3;
}

.steps-cta {
    text-align: center;
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-color-hover);
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.faq-item h3 i {
    color: var(--primary);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =====================================================
   CTA Register Section
   ===================================================== */
.cta-register {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content > p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.register-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group input {
    width: 100%;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-note i {
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* Centrar botón submit */
.form-row-submit {
    justify-content: center;
}

.form-row-submit .btn {
    max-width: 320px;
    flex: none;
}

/* Password toggle button */
.form-group-password {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group-password input {
    padding-right: 50px;
    flex: 1;
}

.btn-toggle-pass {
    position: absolute;
    right: 16px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
    z-index: 2;
}

.btn-toggle-pass:hover {
    color: var(--primary);
}

/* Terms checkbox */
.form-row-terms {
    justify-content: center;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
}

.terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-check a {
    color: var(--primary);
    text-decoration: underline;
}

.terms-check a:hover {
    color: var(--primary-light);
}

/* Security badges in form */
.form-security-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-security-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-security-badges i {
    color: var(--primary);
}

/* Login link */
.form-login-link {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-login-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.form-login-link a:hover {
    text-decoration: underline;
}

/* Input validation states */
.form-group input.is-invalid {
    border: 2px solid var(--error) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    animation: slideIn 0.4s ease forwards;
    max-width: 380px;
    border-left: 4px solid;
}

.toast-notification.toast-error {
    border-left-color: var(--error);
}

.toast-notification.toast-success {
    border-left-color: var(--success);
}

.toast-notification.toast-warning {
    border-left-color: var(--warning);
}

.toast-notification .toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-title {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.toast-notification .toast-message {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.toast-notification .toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

.toast-notification.hiding {
    animation: slideOut 0.3s ease forwards;
}

/* Responsive form */
@media (max-width: 768px) {
    .form-security-badges {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast-notification {
        max-width: 100%;
    }
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.footer-powered a {
    color: var(--primary);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-free-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav > .btn,
    .nav-buttons {
        display: none;
    }


    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
        background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-trust {
        flex-direction: column;
        gap: 16px;
    }

    .card-stats {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.hero-visual {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

/* =====================================================
   Parallax Banner
   ===================================================== */
.parallax-banner {
    position: relative;
    height: 350px;
    background-image: url('../img/parallax-tech.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.9) 0%,
        rgba(10, 15, 28, 0.85) 50%,
        rgba(16, 185, 129, 0.7) 100%
    );
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.parallax-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.parallax-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Parallax responsive - desactivar fixed en móvil */
@media (max-width: 768px) {
    .parallax-banner {
        background-attachment: scroll;
        height: 280px;
    }
}

/* =====================================================
   Security Section
   ===================================================== */
.security {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.security-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.security-card:hover::before {
    opacity: 1;
}

.security-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.security-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.security-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.security-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 32px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-xl);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.badge-item:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

.badge-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* =====================================================
   Premium Features Section - IAudita Pro
   ===================================================== */
.features-premium {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.features-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.3) 50%, transparent 100%);
}

/* Badge Premium */
.section-badge-premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--accent);
}

/* Subsecciones */
.features-subsection {
    margin-bottom: 50px;
}

.features-subsection:last-of-type {
    margin-bottom: 60px;
}

.subsection-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

/* Iconos de subsección en sección gratis = verde */
.features .subsection-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Iconos de subsección en sección premium = dorado */
.features-premium .subsection-title i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Enlaces "Saber más" en subsecciones */
.subsection-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.subsection-link:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateX(3px);
}

.subsection-link i {
    font-size: 0.7rem;
    color: var(--primary) !important;
    transition: transform var(--transition-fast);
}

.subsection-link:hover i {
    transform: translateX(3px);
}

/* Iconos de riesgo en sección gratis */
.features .feature-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.features .feature-icon-danger i {
    color: var(--error);
}

.features .feature-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.features .feature-icon-warning i {
    color: var(--warning);
}

/* Grid Premium - 3 columnas */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Cards Premium */
.feature-card-premium {
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: all var(--transition-normal);
}

.feature-card-premium::before {
    content: 'PRO';
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 20px;
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-card-premium:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.2);
}

/* Iconos Premium */
.feature-icon-premium {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon-premium i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Iconos de peligro/warning */
.feature-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.feature-icon-danger i {
    color: var(--error);
}

.feature-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.feature-icon-warning i {
    color: var(--warning);
}

/* CTA Premium */
.premium-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-xl);
}

.premium-cta-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    color: var(--bg-dark);
}

/* Premium Section Responsive */
@media (max-width: 1024px) {
    .features-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid-premium {
        grid-template-columns: 1fr;
    }

    .premium-cta {
        padding: 30px 20px;
    }

    .subsection-title {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }

    .subsection-link {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

/* Security Section Responsive */
@media (max-width: 1024px) {
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .security-grid {
        grid-template-columns: 1fr;
    }

    .security-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .badge-item {
        justify-content: center;
    }
}

/* Mobile Navigation Buttons */
.nav-mobile-buttons {
    display: none;
}

@media (max-width: 768px) {
    .nav-mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
        margin-top: 8px;
    }
    
    .nav-mobile-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Login Banner */
.login-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--bg-darker) 0%, rgba(16, 185, 129, 0.1) 50%, var(--bg-darker) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    z-index: 1001;
}

.login-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.login-banner-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-banner .btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .login-banner {
        top: 70px;
        padding: 6px 0;
    }

    .login-banner-text {
        font-size: 0.8rem;
    }

    .login-banner .btn-sm {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

/* Feature Cards Clickable */
.features-subsection .feature-card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.features-subsection .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: var(--primary);
}

.features-subsection .feature-card::after {
    content: 'Ver más →';
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.features-subsection .feature-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}
