/* Reset y variables CSS */
:root {
    --primary-color: #E53E3E;
    --primary-dark: #C53030;
    --secondary-color: #A855F7;
    --accent-color: #EC4899;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-light: #718096;
    --background-light: #1A1A1A;
    --background-dark: #0F0F0F;
    --background-gray: #2D2D2D;
    --border-color: #3A3A3A;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-hero: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Breakpoints */
    --mobile: 768px;
    --tablet: 1024px;
    --desktop: 1200px;
    
    /* Dimensiones responsive */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 3rem;
    --font-5xl: 4rem;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevenir overflow horizontal */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(var(--font-3xl), 5vw, var(--font-5xl)); }
h2 { font-size: clamp(var(--font-2xl), 4vw, var(--font-4xl)); }
h3 { font-size: clamp(var(--font-xl), 3vw, var(--font-3xl)); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-gray);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(15, 15, 15, 0.98);
    box-shadow: var(--shadow-light);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

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

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 2rem;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

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

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background: var(--background-dark);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--background-gray);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-card:hover::before {
    left: 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* App Preview Section */
.app-preview {
    padding: 6rem 0;
    background: var(--background-light);
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.preview-title {
    margin-bottom: 2rem;
}

.preview-description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.preview-features {
    margin-bottom: 3rem;
}

.preview-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.preview-feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.preview-mockup {
    display: flex;
    justify-content: center;
}

.app-screenshots {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.screenshot-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 8px;
    border: 1px solid #333;
}

.screenshot-container::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    z-index: 1;
}

.screenshot-container:hover {
    transform: translateY(-10px) scale(1.02);
}

.app-screenshot {
    /* iPhone 16 dimensions: 393×852 points, aspect ratio ~1:2.17 */
    width: 280px;
    height: 607px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
    background: #0F0F0F;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0F0F0F;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    color: white;
}

.mockup-content {
    padding: 1rem 0.75rem;
    height: 100%;
    overflow-y: auto;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.mockup-header .mockup-battery {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.mockup-leagues {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.league-tab {
    background: #3A3A3A;
    color: #A0AEC0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.league-tab.active {
    background: var(--primary-color);
    color: white;
}

.mockup-section {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.match-card {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.match-card.highlighted {
    border: 1px solid #3A3A3A;
}

.league-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.league-name {
    color: #A855F7;
    font-size: 0.75rem;
    font-weight: 500;
}

.match-time {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 0.25rem;
    background-size: cover;
    background-position: center;
}

.team-logo.manchester-city {
    background: linear-gradient(45deg, #6CABDD, #87CEEB);
}

.team-logo.liverpool {
    background: linear-gradient(45deg, #C8102E, #F6EB61);
}

.team-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.match-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 1rem;
}

.users-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #A0AEC0;
    font-size: 0.75rem;
}

.mockup-chat {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 0.75rem;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.users-online {
    color: #A0AEC0;
    font-size: 0.75rem;
}

.chat-messages {
    max-height: 120px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #2D2D2D;
    border-radius: 8px;
}

.chat-message .username {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.chat-message .timestamp {
    font-size: 0.625rem;
    color: #718096;
    margin-left: 0.5rem;
}

.chat-message p {
    margin: 0.25rem 0;
    font-size: 0.75rem;
    color: white;
    line-height: 1.4;
}

.reactions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.reaction {
    background: #3A3A3A;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-size: 0.625rem;
    color: #A0AEC0;
}

/* Community Section */
.community {
    padding: 6rem 0;
    background: var(--background-dark);
}

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

.community-feature {
    background: var(--background-gray);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.community-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.community-feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.community-feature:hover::before {
    left: 0;
}

.community-feature .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.community-feature h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.community-feature p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Download Section */
.download {
    padding: var(--spacing-xxl) 0;
    background: var(--background-dark);
    color: white;
    text-align: center;
}

.download-title {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.download-description {
    font-size: var(--font-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.download-btn .btn-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

.download-btn i {
    font-size: 2rem;
    color: var(--primary-color);
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-btn .btn-subtitle {
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.download-btn .btn-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: white;
}

.ios-btn .btn-content i {
    color: #007AFF;
}

.android-btn .btn-content i {
    color: #34A853;
}

.android-btn {
    opacity: 0.7;
    cursor: not-allowed;
}

.android-btn:hover {
    transform: none;
    opacity: 0.7;
}

.download-cta {
    font-size: var(--font-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-input {
    flex: 1;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-gray);
    color: var(--text-primary);
    font-size: var(--font-base);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    font-weight: 500;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xxl) 0;
    background: var(--background-light);
    color: white;
    text-align: center;
}

.contact-title {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.contact-description {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-gray);
    color: var(--text-primary);
    font-size: var(--font-base);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-textarea::placeholder {
    color: var(--text-light);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .preview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .app-screenshots {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: center;
        padding: 0 10px;
    }
    
    .app-screenshot {
        width: min(220px, 90vw);
        height: auto;
        max-width: 100%;
    }
    
    .screenshot-container {
        max-width: 100%;
        width: min(220px, 90vw);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
        /* Asegurar que no hay overflow horizontal */
        body {
            overflow-x: hidden !important;
            width: 100vw;
            max-width: 100vw;
        }
        
        .container {
            padding: 0 15px;
            max-width: 100%;
            overflow: hidden;
        }
        
        .nav-menu {
            position: fixed;
            top: 70px;
            left: -100%;
            width: 100%;
            height: calc(100vh - 70px);
            background: rgba(15, 15, 15, 0.98);
            backdrop-filter: blur(10px);
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding: 2rem;
            transition: var(--transition);
        }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .download-btn {
        min-width: 280px;
        max-width: 320px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .app-screenshot {
        width: 180px;
        height: 391px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 70px;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .community-feature {
        padding: 2rem 1.5rem;
    }
    
    .app-screenshot {
        width: min(160px, 85vw);
        height: auto;
        max-width: 100%;
    }
    
    .screenshot-container {
        width: min(160px, 85vw);
        max-width: 100%;
    }
}

/* Prevenir overflow horizontal global */
section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero, .features, .app-preview, .community, .download, .footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Asegurar que todos los elementos flex no se salgan */
.hero-buttons, .download-buttons, .download-stats {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
}

/* Animaciones y efectos adicionales */

/* Scroll suave para navegación */
html {
    scroll-padding-top: 70px;
}

/* Estados de carga */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus states para accesibilidad */
.btn:focus,
.nav-menu a:focus,
.social-link:focus,
.footer-column a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Estilos para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background::before {
        background-size: 50px 50px;
    }
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 4px;
    margin-left: 20px;
}

.language-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    font-family: inherit;
}

.language-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(229, 62, 62, 0.1);
}

.language-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .language-switcher {
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(15, 15, 15, 0.95);
        padding: 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active ~ .language-switcher {
        display: flex;
    }
}
