/* ========================================
   RESET Y VARIABLES
   ======================================== */
:root {
    --primary-color: #0d0d0d;
    --secondary-color: #555;
    --background-color: #FFFFFF;
    --surface-color: #fdfdfb;
    --border-color: #e5e5e5;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --header-height: 70px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    background: transparent;
}

/* ========================================
   HEADER
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 5px 10px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    margin-right: -10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Header CTA */
.header-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ========================================
   BOTONES DE DESCARGA
   ======================================== */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    min-height: 48px;
}

.btn-download:hover {
    transform: translateY(-2px);
    background-color: #1a1a1a;
    box-shadow: var(--shadow-md);
}

.btn-download i {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-text span {
    font-size: 0.65rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-text strong {
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================
   SELECTOR DE IDIOMA
   ======================================== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lang-switch:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.flag-alt {
    opacity: 0.4;
    transition: opacity var(--transition-fast);
}

.lang-switch:hover .flag-alt {
    opacity: 0.7;
}

.lang-text {
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background: #ffffff;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--surface-color);
    padding: 8px 15px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.social-proof .fa-star {
    color: #ffc107;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Images */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    position: absolute;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    background: transparent;
}

.phone-1 {
    transform: rotate(-10deg) translateX(-30%);
    z-index: 1;
}

.phone-2 {
    transform: rotate(5deg) translateX(30%);
    z-index: 2;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 60px;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.features-image-column {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.feature-mockup {
    width: 100%;
    height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
    background: transparent;
    transition: opacity 0.3s ease;
}

.feature-dots {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.feature-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d1d1;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.feature-dots .dot.active {
    width: 24px;
    border-radius: 5px;
    background-color: var(--primary-color);
}

.swipe-hint {
    display: none;
}

/* Feature Items */
.features-list-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    padding: 25px;
    border: 2px solid transparent;
    border-radius: 16px;
    background-color: #fff;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: -40px;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f6f2ff;
    border-radius: 12px;
    margin-bottom: 20px;
}

.benefit-icon-wrapper i {
    font-size: 1.8rem;
    color: #8A63D2;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* ========================================
   DARK MODE SECTION
   ======================================== */
.dark-mode-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.dark-mode-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dark-mode-text {
    padding-right: 20px;
}

.feature-tag {
    color: #f7a2a2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.gradient-text {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #e7c7ff, #c4b5fd, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
}

.dark-mode-image {
    text-align: center;
}

.dark-mode-mockup {
    height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    background: transparent;
}

/* Stars */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.star1 { width: 2px; height: 2px; top: 10%; left: 15%; animation-delay: 0s; }
.star2 { width: 1px; height: 1px; top: 20%; left: 80%; animation-delay: 1s; }
.star3 { width: 2px; height: 2px; top: 60%; left: 25%; animation-delay: 2s; }
.star4 { width: 1px; height: 1px; top: 35%; left: 70%; animation-delay: 0.5s; }
.star5 { width: 2px; height: 2px; top: 80%; left: 40%; animation-delay: 1.5s; }
.star6 { width: 1px; height: 1px; top: 15%; left: 60%; animation-delay: 2.5s; }
.star7 { width: 2px; height: 2px; top: 45%; left: 85%; animation-delay: 0.3s; }
.star8 { width: 1px; height: 1px; top: 70%; left: 10%; animation-delay: 1.8s; }
.star9 { width: 2px; height: 2px; top: 25%; left: 45%; animation-delay: 2.2s; }
.star10 { width: 1px; height: 1px; top: 90%; left: 65%; animation-delay: 0.8s; }
.star11 { width: 2px; height: 2px; top: 50%; left: 20%; animation-delay: 1.3s; }
.star12 { width: 1px; height: 1px; top: 5%; left: 90%; animation-delay: 2.8s; }

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    padding: 60px 0 30px;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-downloads {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Asegurar que los botones del footer mantengan su proporción */
.footer-downloads .btn-download {
    min-width: 140px;
    flex: 0 0 auto;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* ========================================
   PÁGINAS LEGALES
   ======================================== */
.legal-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 20px 40px;
    background-color: #fff;
}

.legal-page-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.legal-page-container h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.legal-page-container p,
.legal-page-container li {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-page-container ul {
    list-style: disc;
    margin-left: 30px;
}

.critical-notice {
    background-color: #fffbe6;
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

/* ========================================
   SOPORTE SECTION
   ======================================== */
.support-section {
    padding: calc(var(--header-height) + 60px) 0 80px;
}

.support-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.faq-column h3,
.contact-column h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-question i {
    transition: transform var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--secondary-color);
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Contact Form */
.contact-column p {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.05);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Form Messages */
.form-message {
    display: none;
    padding: 15px 20px;
    background-color: #f0fdf4;
    border-left: 5px solid #4ade80;
    border-radius: 8px;
    margin-top: 20px;
}

.form-message.show {
    display: block;
}

.form-message h4 {
    font-size: 1.1rem;
    color: #166534;
    margin-bottom: 5px;
}

.form-message p {
    color: #15803d;
    margin: 0;
}

.form-message.error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
}

.form-message.error h4 {
    color: #991b1b;
}

.form-message.error p {
    color: #dc2626;
}

/* ========================================
   ANIMACIONES
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.is-visible .fade-in {
    animation-play-state: running;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 992px) {
    .hero-container,
    .features-content,
    .dark-mode-content,
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .social-proof {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        margin-top: 40px;
        height: 400px;
    }
    
    .features-image-column {
        position: static;
        margin-bottom: 40px;
    }
    
    .dark-mode-text {
        text-align: center;
        padding-right: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-downloads {
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */
@media (max-width: 768px) {
    /* Variables móvil */
    :root {
        --header-height: 60px;
    }
    
    /* Header móvil */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 20px;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .main-header.nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-header.nav-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .main-header.nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    body.nav-open {
        overflow: hidden;
    }
    
    /* Header CTA móvil */
    .header-cta {
        display: none;
    }
    
    /* Hero móvil */
    .hero {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-text .description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-download {
        justify-content: center;
        width: 100%;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .phone-1 {
        display: none;
    }
    
    .phone-2 {
        position: relative;
        transform: none;
        height: 100%;
    }
    
    /* Features móvil */
    .section-title {
        font-size: 2rem;
    }
    
    .feature-mockup {
        height: 400px;
    }
    
    .swipe-hint {
        display: block;
        text-align: center;
        margin-top: 15px;
        font-size: 0.85rem;
        color: var(--secondary-color);
        opacity: 0.7;
    }
    
    /* Benefits móvil */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 25px;
    }
    
    /* Dark mode móvil */
    .gradient-text {
        font-size: 2.2rem;
    }
    
    .dark-mode-mockup {
        height: 350px;
    }
    
    /* Footer móvil */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-downloads {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-downloads .btn-download {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
    
    /* Páginas legales móvil */
    .legal-page-container {
        padding-top: calc(var(--header-height) + 20px);
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .legal-page-container h1 {
        font-size: 2rem;
    }
    
    /* Soporte móvil */
    .support-section {
        padding-top: calc(var(--header-height) + 40px);
    }
    
    .support-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .faq-column h3,
    .contact-column h3 {
        font-size: 1.5rem;
    }
    
    /* Selector de idioma móvil */
    .lang-switch {
        padding: 6px 10px;
    }
    
    .flag-alt {
        display: none;
    }
}

/* ========================================
   OPTIMIZACIONES FINALES
   ======================================== */

/* Prevenir scroll horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mejorar tap targets en móvil */
@media (max-width: 768px) {
    button, a, .btn-download {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print styles */
@media print {
    .main-header,
    .hero-cta,
    .footer-downloads,
    .social-icons,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Asegurar transparencia en imágenes */
img {
    background-color: transparent !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Fix específico para mockups */
.phone-mockup,
.feature-mockup,
.dark-mode-mockup {
    background: transparent !important;
}

/* Smooth scrolling para anchor links con offset del header */
html {
    scroll-padding-top: var(--header-height);
}