/**
 * Estilos para la Web Pública
 * Diseño profesional con tema oscuro y color lima de contraste
 * 100% Responsive y optimizado para móviles
 */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: white;
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.hero-video.loaded {
    opacity: 1;
}

.hero-video.error {
    display: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-background-video {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(205, 220, 57, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(205, 220, 57, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(205, 220, 57, 0.08) 0%, transparent 40%);
    animation: gradientShift 15s ease infinite;
    z-index: 1;
    will-change: transform;
    pointer-events: none;
}

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

.hero-overlay {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(205, 220, 57, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(205, 220, 57, 0.04) 0%, transparent 60%);
    z-index: 1;
    animation: overlayPulse 8s ease-in-out infinite;
    will-change: transform;
    pointer-events: none;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(205, 220, 57, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(205, 220, 57, 0.15) 0%, transparent 50%);
    opacity: 1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    will-change: transform, opacity;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(205, 220, 57, 0.2);
    border: 1px solid rgba(205, 220, 57, 0.5);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #CDDC39;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-feature-icon {
    width: 24px;
    height: 24px;
    background: #CDDC39;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #121212;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 160px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hero-buttons .btn-primary {
    background: #CDDC39;
    color: #121212;
    border: 2px solid #CDDC39;
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus {
    background: #D4E157;
    border-color: #D4E157;
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 220, 57, 0.4);
}

.hero-buttons .btn-secondary {
    background: transparent;
    border: 2px solid rgba(205, 220, 57, 0.5);
    color: #CDDC39;
}

.hero-buttons .btn-secondary:hover,
.hero-buttons .btn-secondary:focus {
    background: rgba(205, 220, 57, 0.15);
    border-color: #CDDC39;
    color: #CDDC39;
    transform: translateY(-2px);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(205, 220, 57, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(205, 220, 57, 0.8), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        height: 40px;
        opacity: 0.8;
    }
    50% {
        height: 20px;
        opacity: 0.4;
    }
    100% {
        height: 40px;
        opacity: 0.8;
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(205, 220, 57, 0.3) 50%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: #CDDC39;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #CDDC39 0%, #D4E157 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Public */
.header-public {
    background-color: #1e1e1e;
    border-bottom: 2px solid rgba(205, 220, 57, 0.3);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(30, 30, 30, 0.98);
}

.header-public .header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 2rem;
    position: relative;
    z-index: 1001;
}

.header-public .header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.header-public .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    min-height: 64px;
    justify-content: flex-start;
}

.header-public .logo:hover {
    opacity: 0.85;
}

.header-public .logo-image {
    height: 64px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.header-public .logo:hover .logo-image {
    transform: scale(1.05);
}

.header-public .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #CDDC39;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: none; /* Ocultar texto si hay imagen */
}

.header-public .logo:not(:has(.logo-image)) .logo-text {
    display: block; /* Mostrar texto solo si no hay imagen */
}

.header-public .logo-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0.15rem;
    line-height: 1;
    display: none; /* Ocultar subtítulo si hay imagen */
}

.header-public .logo:not(:has(.logo-image)) .logo-subtitle {
    display: block; /* Mostrar subtítulo solo si no hay imagen */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-public {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
    transition: right 0.3s ease;
}

.nav-public .nav-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-public .nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
}

.nav-public .nav-menu a:hover,
.nav-public .nav-menu a:focus {
    background-color: rgba(205, 220, 57, 0.15);
    color: #CDDC39;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(205, 220, 57, 0.3);
}

.header-actions .btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(205, 220, 57, 0.15);
    color: #CDDC39;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: #121212;
    position: relative;
}

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

.feature-card {
    background-color: #1e1e1e;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    border: 1px solid #333333;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(205, 220, 57, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(205, 220, 57, 0.2);
    border-color: #CDDC39;
}

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

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(205, 220, 57, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.feature-card:hover .feature-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

.feature-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #CDDC39;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 2rem;
    background: #1a1a1a;
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.step-card {
    background-color: #1e1e1e;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: left;
    border: 1px solid #333333;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 220, 57, 0.1), transparent);
    transition: left 0.6s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(205, 220, 57, 0.15);
    border-color: #CDDC39;
}

.step-card:hover::after {
    left: 100%;
}

.step-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #CDDC39;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.step-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.step-description {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.step-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.step-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #CDDC39;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.step-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333333;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Objective Section */
.objective-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #121212 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.objective-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.objective-video.loaded {
    opacity: 1;
}

.objective-video.error {
    display: none;
}

.objective-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.objective-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(205, 220, 57, 0.3) 50%, transparent 100%);
}

.objective-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(42, 42, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(205, 220, 57, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    z-index: 2;
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(205, 220, 57, 0.2);
    border-color: rgba(205, 220, 57, 0.4);
}

.objective-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(205, 220, 57, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
    animation: objectiveGlow 3s ease-in-out infinite;
}

.objective-card:hover .objective-glow {
    opacity: 1;
}

@keyframes objectiveGlow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1) rotate(180deg);
    }
}

.objective-card h2 {
    font-size: 2.5rem;
    color: #CDDC39;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #CDDC39 0%, #D4E157 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.objective-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

.objective-text strong {
    color: #CDDC39;
    font-weight: 700;
    position: relative;
}

.objective-text strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #CDDC39, transparent);
    opacity: 0.5;
}

/* Animation Classes */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

[data-animate="fade-up"].animate-in {
    transform: translateY(0);
}

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

[data-animate="fade-left"].animate-in {
    transform: translateX(0);
}

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

[data-animate="fade-right"].animate-in {
    transform: translateX(0);
}

[data-animate="scale"] {
    transform: scale(0.9);
}

[data-animate="scale"].animate-in {
    transform: scale(1);
}

/* Apply delay */
[data-delay="100"] {
    transition-delay: 0.1s;
}

[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="300"] {
    transition-delay: 0.3s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

[data-delay="500"] {
    transition-delay: 0.5s;
}

/* Parallax elements */
[data-parallax] {
    will-change: transform;
}

/* Custom Cursor (opcional) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(205, 220, 57, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    transform: scale(1.5);
    border-color: rgba(205, 220, 57, 0.8);
    background: rgba(205, 220, 57, 0.1);
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 2rem;
    background: #121212;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background-color: #1e1e1e;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #333333;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(205, 220, 57, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.benefit-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7), 0 0 25px rgba(205, 220, 57, 0.15);
    border-color: #CDDC39;
}

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

.benefit-card > * {
    position: relative;
    z-index: 1;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    border-color: #CDDC39;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.875rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #CDDC39;
    border-radius: 50%;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(205, 220, 57, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(205, 220, 57, 0.2) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1.2;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 160px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cta-buttons .btn-primary {
    background: #CDDC39;
    color: #121212;
    border: 2px solid #CDDC39;
}

.cta-buttons .btn-primary:hover,
.cta-buttons .btn-primary:focus {
    background: #D4E157;
    border-color: #D4E157;
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 220, 57, 0.4);
}

.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid rgba(205, 220, 57, 0.5);
    color: #CDDC39;
}

.cta-buttons .btn-secondary:hover,
.cta-buttons .btn-secondary:focus {
    background: rgba(205, 220, 57, 0.15);
    border-color: #CDDC39;
    color: #CDDC39;
}

/* Footer Public */
.footer-public {
    background: linear-gradient(135deg, #0a0a0a 0%, #121212 50%, #0a0a0a 100%);
    color: var(--text-secondary);
    padding: 4rem 2.5rem 2rem;
    border-top: 2px solid rgba(205, 220, 57, 0.15);
    position: relative;
    overflow: hidden;
}

.footer-public::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(205, 220, 57, 0.3) 50%, transparent 100%);
}

.footer-public .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
}

.footer-logo-image {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
    filter: brightness(1.05);
    transition: filter 0.3s ease;
}

.footer-logo-image:hover {
    filter: brightness(1.15);
}

.footer-section p {
    line-height: 1.6;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.85;
}

.footer-section p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-section p a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0;
    position: relative;
    opacity: 0.85;
    touch-action: manipulation;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: all 0.2s ease;
    opacity: 0;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
    padding-left: 0.75rem;
    opacity: 1;
}

.footer-links a:hover::before,
.footer-links a:focus::before {
    width: 4px;
    opacity: 1;
    left: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(205, 220, 57, 0.12);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.75;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.footer-bottom a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-public {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 0.9rem;
        margin-bottom: 0.875rem;
    }
    
    .footer-logo-image {
        height: 40px;
        margin-bottom: 0.875rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Public Page Body */
.public-page {
    background-color: #121212;
}

.public-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* About Page Styles */
.about-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #1e1e1e 0%, #121212 100%);
    min-height: 60vh;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.25rem;
    color: #CDDC39;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-left: 4px solid #CDDC39;
    padding-left: 1rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.about-text .feature-list li {
    font-size: 1.05rem;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .header-public .header-content {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        padding: 6rem 2rem;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-public .header-content {
        padding: 1rem;
        flex-wrap: nowrap;
        position: relative;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Asegurar que el botón hamburguesa sea visible y esté en la posición correcta */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2;
        margin-left: auto;
        z-index: 1003 !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
        padding: 0.5rem !important;
        cursor: pointer !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background: var(--text-primary) !important;
    }
    
    .header-public .header-left {
        order: 1;
        flex: 1;
        min-width: 0;
        margin-right: auto;
    }
    
    .header-public .logo-image {
        height: 56px;
        max-width: 240px;
    }
    
    .header-public .logo-text {
        font-size: 1.25rem;
    }
    
    .header-public .logo-subtitle {
        font-size: 0.65rem;
    }
    
    /* Ocultar el menú normal del flujo normal en móvil y convertirlo en menú lateral deslizante */
    .header-public .header-content .nav-public {
        /* Cuando está cerrado, no ocupa espacio en el header */
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 0 !important;
        max-width: 0 !important;
        min-width: 0 !important;
        height: 100vh !important;
        background: #1e1e1e !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 5rem 0 2rem 0 !important;
        box-shadow: none !important;
        transition: right 0.3s ease, width 0.3s ease, max-width 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease !important;
        overflow: hidden !important;
        z-index: 1002 !important;
        gap: 0 !important;
        flex: none !important;
        display: flex !important;
        margin: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .header-public .header-content .nav-public.nav-open {
        right: 0 !important;
        width: 80% !important;
        max-width: 320px !important;
        padding: 5rem 2rem 2rem !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.8) !important;
        overflow-y: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        border-left: 2px solid rgba(205, 220, 57, 0.4) !important;
    }
    
    .nav-public .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 2rem;
    }
    
    .nav-public .nav-menu li {
        width: 100%;
    }
    
    .nav-public .nav-menu a {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-bottom: 1px solid #333333;
        border-radius: 0;
    }
    
    .nav-public .nav-menu a:hover,
    .nav-public .nav-menu a:focus {
        background-color: rgba(205, 220, 57, 0.15);
        border-left: 4px solid #CDDC39;
        padding-left: calc(1rem - 4px);
        color: #CDDC39;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        border-left: none;
        border-top: 1px solid #333333;
        padding-top: 2rem;
        padding-left: 0;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Hero Mobile */
    .hero {
        padding: 5rem 1.5rem 4rem;
        min-height: auto;
        max-height: none;
    }
    
    .hero-video {
        min-height: 100%;
    }
    
    .hero-background-video,
    .hero-overlay {
        top: -10%;
        height: 120%;
    }
    
    .objective-section {
        min-height: 400px;
        padding: 3.5rem 1.5rem;
    }
    
    .objective-video {
        min-height: 100%;
    }
    
    .objective-card {
        padding: 3rem 2rem;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 1.5rem 0;
        align-items: flex-start;
    }
    
    .hero-feature-item {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    /* Stats Mobile */
    .stats-section {
        padding: 3rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Sections Mobile */
    .features-section,
    .how-it-works-section,
    .benefits-section,
    .objective-section,
    .cta-section {
        padding: 3.5rem 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .section-label {
        font-size: 0.7rem;
        padding: 0.35rem 0.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Grids Mobile */
    .features-grid,
    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-card,
    .step-card,
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-card h3,
    .step-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-card p,
    .step-card .step-description,
    .benefit-card p {
        font-size: 0.95rem;
    }
    
    .feature-number {
        font-size: 0.8rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* Objective Card Mobile */
    .objective-card {
        padding: 2rem 1.5rem;
    }
    
    .objective-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .objective-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* CTA Mobile */
    .cta-section {
        padding: 4rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .cta-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Footer Mobile */
    .footer-public {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
    
    /* About Page Mobile */
    .about-section {
        padding: 3rem 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .about-text .feature-list li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }
    
    /* Container Mobile */
    .public-page .container {
        padding: 2rem 1.5rem;
    }
    
    /* Step List Mobile */
    .step-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
    
    .step-result {
        font-size: 0.9rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .feature-card,
    .step-card,
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .objective-card {
        padding: 2.5rem 1.5rem;
    }
    
    .objective-card h2 {
        font-size: 1.75rem;
    }
    
    .objective-text {
        font-size: 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .header-public .logo-image {
        height: 52px;
        max-width: 220px;
    }
    
    .header-public .logo-text {
        font-size: 1.1rem;
    }
    
    .header-public .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .objective-card {
        padding: 2.5rem 1.5rem;
    }
    
    .objective-card h2 {
        font-size: 1.75rem;
    }
    
    .objective-text {
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .step-card:hover,
    .benefit-card:hover {
        transform: none;
    }
    
    .feature-card:active,
    .step-card:active,
    .benefit-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title,
    .cta-section h2 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Preferencia de movimiento reducido - Desactivar videos */
@media (prefers-reduced-motion: reduce) {
    .hero-video,
    .objective-video {
        display: none !important;
    }
    
    .hero-background-video,
    .hero-overlay {
        animation: none !important;
    }
}

/* Optimización para conexiones lentas y móviles */
@media (max-width: 768px) {
    .hero-video,
    .objective-video {
        /* Los videos se gestionarán dinámicamente por JavaScript */
        /* basado en la conexión del usuario */
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }
}
