/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #222F99;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --surface: #f9fafb;
    --border: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
    padding-top: 80px; /* Espacio para el header fijo */
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--surface) 0%, #e5e7eb 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    align-items: center;
}

/* App Preview */
.app-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 600px;
    background: linear-gradient(145deg, #1f2937, #111827);
    border-radius: 2rem;
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid #000000;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
}

/* Carrusel de imágenes dentro del teléfono */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #000;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

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

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.screen {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    position: relative;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.app-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.app-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.screen h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
}

.feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.feature span {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Download Section */
.download-section {
    text-align: center;
}

.download-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.app-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: translateY(-2px);
}

.download-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.download-btn.downloading .download-progress {
    animation: downloadAnimation 2s ease-in-out forwards;
}

@keyframes downloadAnimation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.install-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--surface);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 2rem;
}

.install-note i {
    color: var(--accent-color);
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section li:hover {
    color: var(--accent-color);
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Ajuste para header en móvil */
    }

    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .header {
        padding: 0.75rem 1rem;
        min-height: 70px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-btn.prev {
        left: 6px;
    }

    .carousel-btn.next {
        right: 6px;
    }

    .carousel-btn i {
        font-size: 0.8rem;
    }

    .carousel-indicators {
        bottom: 12px;
    }

    .download-section h2 {
        font-size: 2rem;
    }

    .app-info {
        flex-direction: column;
        gap: 1rem;
    }

    .info-item {
        justify-content: center;
    }

    .download-btn {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px; /* Ajuste para header en pantallas pequeñas */
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .header {
        padding: 0.5rem;
        min-height: 60px;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-img {
        height: 2rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 1rem;
    }

    .carousel-btn {
        width: 26px;
        height: 26px;
    }

    .carousel-btn.prev {
        left: 4px;
    }

    .carousel-btn.next {
        right: 4px;
    }

    .carousel-btn i {
        font-size: 0.7rem;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    .indicator.active {
        width: 16px;
    }

    .download-section h2 {
        font-size: 1.8rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 1rem;
    }

    .screen {
        padding: 1.5rem 1rem;
    }

    .app-icon {
        width: 60px;
        height: 60px;
    }

    .app-icon i {
        font-size: 1.5rem;
    }
}

/* Estilos para nota de autorización */
.install-note strong {
    color: var(--error);
    font-weight: 600;
}

.install-note:first-of-type {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    color: #92400e;
    border-left-color: var(--accent-color);
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.install-note:first-of-type i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Animaciones adicionales */
.header, .main-content > *, .footer {
    animation: fadeInUp 0.6s ease-out backwards;
}

.header {
    animation-delay: 0.1s;
}

.app-preview {
    animation-delay: 0.2s;
}

.download-section {
    animation-delay: 0.3s;
}

.footer {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}