:root {
    --azul-noche: #0D1B2A;
    --dorado-elite: #D4AF37;
    --blanco-espectral: #F0F0F0;
    --gris-neutro: #495057;
    --verde-exito: #28A745;
    --rojo-peligro: #DC3545;
    --amarillo-advertencia: #FFC107;
    --font-principal: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    background-color: var(--azul-noche);
    color: var(--blanco-espectral);
    line-height: 1.6;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dorado-elite);
    color: var(--azul-noche);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header y Navbar --- */
.header {
    background-color: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--gris-neutro);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--blanco-espectral);
    font-weight: 600;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--blanco-espectral);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--dorado-elite);
}

.cta-button {
    text-decoration: none;
    color: var(--azul-noche);
    background-color: var(--dorado-elite);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.9)), url('https://www.transparenttextures.com/patterns/dark-matter.png');
    min-height: auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--blanco-espectral);
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    color: rgba(240, 240, 240, 0.8);
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-group .cta-button.primary {
    background: none;
    padding: 0;
    border: none;
    cursor: pointer;
}

.cta-group .cta-button.primary img {
    height: 75px;
    width: 250px;
    transition: transform 0.3s ease;
}

.cta-group .cta-button.primary:hover img {
    transform: scale(1.05);
}

/* --- Browser Demo Section --- */
.browser-demo-section {
    margin-top: 2rem;
    text-align: center;
}

.demo-description {
    font-size: 1rem;
    color: rgba(240, 240, 240, 0.7);
    margin-bottom: 1rem;
    font-weight: 400;
}

.cta-button.browser-demo {
    background: linear-gradient(135deg, var(--dorado-elite) 0%, #B8860B 100%);
    color: var(--azul-noche);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.cta-button.browser-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #E6C547 0%, var(--dorado-elite) 100%);
}

.demo-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* --- Secciones Generales --- */
section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dorado-elite);
    line-height: 1.2;
}

/* --- Beneficios/Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #1A2A3A;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--gris-neutro);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: auto;
    min-height: 200px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--dorado-elite);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Benefits Section --- */
.benefits-section {
    background-color: var(--azul-noche);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: #1A2A3A;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 3px solid var(--dorado-elite);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    min-height: 220px;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--dorado-elite);
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--blanco-espectral);
}

.benefit-card p {
    color: rgba(240, 240, 240, 0.8);
}

/* --- How It Works Section --- */
.how-it-works {
    background-color: #1A2A3A;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.step:nth-child(odd) .step-text {
    order: 2;
}

.step-text {
    flex: 1;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 2rem;
    color: var(--dorado-elite);
    margin-bottom: 10px;
}

.step-img {
    flex: 1;
    flex-shrink: 0;
    max-width: 50%;
}

.step-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
}

.step-icon {
    font-size: 8rem;
    color: var(--dorado-elite);
    text-align: center;
}

/* --- Testimonios Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: #1A2A3A;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--dorado-elite);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
    text-align: right;
    color: var(--dorado-elite);
}

/* --- Final CTA Section --- */
.final-cta {
    background-color: var(--dorado-elite);
    text-align: center;
    color: var(--azul-noche);
}

.final-cta h2 {
    color: var(--azul-noche);
}

/* --- Footer --- */
.footer {
    background-color: #081018;
    padding: 50px 0 20px 0;
    border-top: 1px solid var(--gris-neutro);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo .logo {
    font-size: 1.8rem;
}

.footer-links h4, .footer-legal h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dorado-elite);
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links a, .footer-legal a {
    text-decoration: none;
    color: var(--blanco-espectral);
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--dorado-elite);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gris-neutro);
    font-size: 0.9rem;
    color: rgba(240, 240, 240, 0.6);
}

/* Estilos para el modal de aplicación no disponible */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgb(25, 55, 102);
    color:#D4AF37;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 24px;
    text-align: center;
    flex: 1;
    overflow-y: auto;
}

.modal-body p {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.5;
}

.modal-subtitle {
    font-size: 0.9rem !important;
    color: #569fff !important;
    margin: 0 !important;
}

.modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

.modal-btn {
    background:#D4AF37;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 226, 74, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive para el modal */
@media (max-width: 480px) {
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px 16px 12px;
        flex-shrink: 0;
    }
    
    .modal-body {
        padding: 16px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-footer {
        padding: 12px 16px 16px;
        flex-shrink: 0;
    }
    
    .notification-modal {
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .notification-options {
        gap: 15px;
    }
    
    .notification-option {
        padding: 15px;
    }
    
    .form-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .whatsapp-btn {
        padding: 14px 20px;
    }
    
    .option-header h4 {
        font-size: 1rem;
    }
    
    .modal-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links, .header .cta-button {
        display: none; /* Simple approach for this example */
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 40px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .step:nth-child(odd) .step-text,
    .step:nth-child(even) .step-text {
        order: 2; /* El texto siempre va después */
    }

    .step-img {
        order: 1; /* El icono siempre va primero */
        margin-bottom: 20px; /* Espacio entre icono y texto */
        max-width: 100%;
    }

    .step-icon {
        font-size: 5rem; /* Iconos más pequeños en móvil */
    }

    .step-text {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    section {
        padding: 30px 0;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .features-grid,
    .benefits-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card,
    .benefit-card {
        padding: 20px;
        min-height: auto;
    }

    .step {
        gap: 15px;
        margin-bottom: 25px;
    }

/* --- Coming Soon Badge Styles --- */
.app-store-container {
    position: relative;
    display: inline-block;
}

.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    white-space: nowrap;
    z-index: 10;
    animation: pulse-glow 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
    }
}

.app-store-container:hover .coming-soon-badge {
    animation-duration: 1s;
}

/* Desktop specific adjustments for coming soon badge */
@media (min-width: 769px) {
    .coming-soon-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
        top: -10px;
        right: -12px;
        border-radius: 14px;
        font-weight: 700;
    }
    
    .app-store-container:hover .coming-soon-badge {
        transform: scale(1.1);
        animation-duration: 0.8s;
    }
}

/* Responsive adjustments for coming soon badge */
@media (max-width: 480px) {
    .coming-soon-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        top: -6px;
        right: -8px;
    }
}
}

/* ===== BANNER DE NOTIFICACIÓN FIJO ===== */
.notification-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--dorado-elite), #B8860B);
    color: var(--azul-noche);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
    z-index: 1000;
    max-width: 350px;
    animation: slideInUp 0.6s ease-out;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.banner-text {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
}

.banner-btn {
    background: var(--azul-noche);
    color: var(--dorado-elite);
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.banner-btn:hover {
    background: #1a2332;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.4);
}

/* ===== MODAL DE NOTIFICACIÓN ===== */
.notification-modal {
    max-width: 500px;
    width: 90%;
}

.modal-description {
    text-align: center;
    margin-bottom: 25px;
    color: var(--gris-neutro);
    font-size: 1rem;
}

.notification-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-option {
    background: rgba(240, 240, 240, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.notification-option:hover {
    border-color: var(--dorado-elite);
    background: rgba(212, 175, 55, 0.05);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.option-icon {
    font-size: 1.5rem;
}

.option-header h4 {
    color: var(--dorado-elite);
    font-size: 1.1rem;
    margin: 0;
}

.option-description {
    color: var(--gris-neutro);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* ===== SEPARADOR ===== */
.option-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 0;
    position: relative;
}

.option-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
}

.option-separator span {
    background: rgb(25, 55, 102);
    padding: 0 15px;
    color: var(--gris-neutro);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== FORMULARIO DE EMAIL ===== */
.email-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

#notificationEmail {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(240, 240, 240, 0.1);
    color: var(--blanco-espectral);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#notificationEmail:focus {
    outline: none;
    border-color: var(--dorado-elite);
    background: rgba(212, 175, 55, 0.1);
}

#notificationEmail::placeholder {
    color: var(--gris-neutro);
}

.submit-btn {
    background: var(--dorado-elite);
    color: var(--azul-noche);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background: #B8860B;
    transform: translateY(-2px);
}

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

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.whatsapp-icon {
    font-size: 1.2rem;
}

/* ===== SEPARADOR ===== */
.option-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative;
}

.option-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
}

.option-separator span {
    background: rgb(25, 55, 102);
    padding: 0 15px;
    color: var(--gris-neutro);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== MENSAJE DE ESTADO ===== */
.status-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.status-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: var(--verde-exito);
    border: 1px solid var(--verde-exito);
}

.status-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: var(--rojo-peligro);
    border: 1px solid var(--rojo-peligro);
}

/* ===== ANIMACIONES ===== */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== RESPONSIVE DESIGN PARA NOTIFICACIONES ===== */
@media (max-width: 768px) {
    .notification-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        border-radius: 12px;
    }
    
    .banner-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
    
    .banner-text {
        font-size: 0.85rem;
        min-width: auto;
        width: 100%;
        order: 1;
    }
    
    .banner-icon {
        order: 0;
        align-self: center;
    }
    
    .banner-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        order: 2;
        align-self: center;
    }
    
    .notification-modal {
        width: 95%;
        margin: 20px auto;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .notification-banner {
        padding: 10px 15px;
    }
    
    .banner-content {
        gap: 8px;
    }
    
    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .option-icon {
        font-size: 1.3rem;
    }
}