/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling para toda la página */
html {
    scroll-behavior: smooth;
}

/* Mejoras para pantallas táctiles */
button, 
input, 
textarea, 
select, 
a {
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #6366f1;
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #6366f1;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #6366f1;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #e5e7eb;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/></g></svg>');
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.value-proposition {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.value-item i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #2d3748, #4a5568);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-area {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.upload-area i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rec-item {
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    animation: pulse 2s infinite;
}

.rec-item:nth-child(2) {
    animation-delay: 0.5s;
}

.rec-item:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8fafc;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* How it Works Section */
.how-it-works {
    padding: 5rem 0;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit i {
    color: #10b981;
    font-size: 1.2rem;
}

/* Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form input,
.form select,
.form textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form input::placeholder,
.form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form select {
    cursor: pointer;
}

.form select option {
    background: #374151;
    color: white;
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 0.5rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.modal-header {
    margin-bottom: 1rem;
}

.modal-header i {
    color: #10b981;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #1f2937;
}

.modal p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #5b5fcf, #7c3aed);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(0.98);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Animación de pulso sutil para llamar la atención */
.scroll-to-top.pulse {
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
        transform: translateY(0);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
        transform: translateY(-2px);
    }
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* Desktop/Laptop */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu {
        display: block;
        color: #6366f1;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu:hover {
        transform: scale(1.1);
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav {
        padding: 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 7rem 1rem 3rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .value-proposition {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .value-item {
        justify-content: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(5px);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 300px;
        padding: 1.2rem 2rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        margin: 0 auto;
    }
    
    /* Features */
    .features {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2.5rem 2rem;
    }
    
    /* How it Works */
    .how-it-works {
        padding: 4rem 0;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        padding: 2rem;
        background: #f8fafc;
        border-radius: 15px;
        margin-bottom: 1rem;
    }
    
    /* Contact */
    .contact {
        padding: 4rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .benefits {
        justify-content: center;
        align-items: center;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile Large */
@media (max-width: 480px) {
    .container,
    .nav {
        padding: 0 1rem;
    }
    
    /* Scroll to Top Button - Mobile */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    /* Header */
    .logo {
        font-size: 1.3rem;
    }
    
    .nav {
        padding: 0.8rem 1rem;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 1rem 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .value-proposition {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .value-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .value-item i {
        font-size: 1rem;
    }
    
    .cta-buttons {
        gap: 0.8rem;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    /* Sections */
    .features,
    .how-it-works,
    .contact {
        padding: 3rem 0;
    }
    
    .features h2,
    .how-it-works h2,
    .contact-info h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
    
    .step {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form input,
    .form select,
    .form textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-header i {
        font-size: 2.5rem;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
    
    .features h2,
    .how-it-works h2,
    .contact-info h2 {
        font-size: 1.6rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-icon,
    .step-number {
        transform: scale(0.95);
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 5rem 1rem 2rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 150px;
        height: 300px;
    }
    
    .value-proposition {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .value-item {
        flex: 1;
        min-width: 200px;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Scroll to Top Button - Touch optimizado */
    .scroll-to-top {
        width: 56px;
        height: 56px;
        bottom: 25px;
        right: 25px;
    }
    
    .scroll-to-top:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
    
    .mobile-menu {
        padding: 0.5rem;
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu:active {
        background-color: rgba(99, 102, 241, 0.1);
    }
    
    .form input,
    .form select,
    .form textarea {
        min-height: 48px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .nav-links a {
        padding: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .nav-links a:active {
        background-color: rgba(99, 102, 241, 0.1);
    }
    
    /* Mejorar el área de toque para elementos pequeños */
    .value-item {
        padding: 1.2rem;
    }
    
    .feature-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
}

/* Optimizaciones adicionales para móvil */
@media (max-width: 768px) {
    /* Mejorar legibilidad del texto */
    body {
        font-size: 16px;
    }
    
    /* Espaciado optimizado para móvil */
    section {
        scroll-margin-top: 80px;
    }
    
    /* Mejor contraste en fondos */
    .hero::before {
        opacity: 0.7;
    }
    
    /* Optimizar formulario para móvil */
    .form {
        gap: 1.2rem;
    }
    
    /* Mejorar interacciones táctiles */
    .btn-primary:active,
    .btn-outline:active {
        transform: scale(0.95);
    }
}