:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #4dabff;
    --accent: #00d2ff;
    --dark: #0f172a;
    --gray-light: #f8faff;
    --gray-medium: #cbd5e1;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --gradient: linear-gradient(135deg, #007bff 0%, #00d2ff 100%);
    --gradient-surface: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 10px;
    border: 3px solid var(--gray-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Hide only if JS is confirmed to be running */
.js-ready .reveal:not(.active) {
    opacity: 0;
    transform: translateY(20px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero should always be visible and animate regardless of JS detection speed */
.hero-content.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: fadeInUp 1s ease-out forwards;
}

/* Navbar */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    padding: 0.8rem 2rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 140px 10% 100px;
    background:
        radial-gradient(circle at 70% 30%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 10% 70%, rgba(0, 210, 255, 0.1) 0%, transparent 50%),
        linear-gradient(to right, rgba(248, 250, 255, 1) 40%, rgba(248, 250, 255, 0.6) 100%),
        url('images/hero_hands.png') no-repeat center center / cover;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    margin-top: -10px;
    /* Bajado un poco */
}

.badge-new {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-store {
    transition: var(--transition);
    display: inline-block;
}

.btn-store:hover {
    transform: translateY(-8px) scale(1.05);
}

.store-badge {
    height: 60px;
    width: auto;
    filter: drop-shadow(var(--shadow-md));
}

/* Features Section */
.features {
    padding: 100px 10%;
    background: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: block;
    font-size: 0.85rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card-premium {
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    border-radius: var(--radius-lg);
}

.card-premium:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card-premium:hover h3,
.card-premium:hover p {
    color: var(--white);
}

.card-premium:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin-bottom: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.icon-wrapper img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.card-premium:hover .icon-wrapper {
    background: var(--white);
    transform: rotate(5deg) scale(1.1);
}

.card-premium h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card-premium p {
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: var(--transition);
}

/* Security Section */
.security-section {
    padding: 100px 10%;
    background: var(--gray-light);
}

.security-box {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.security-box::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary);
    opacity: 0.03;
    border-radius: 50%;
}

.security-content {
    flex: 1;
}

.security-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.security-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.local-processing {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.local-processing i {
    font-size: 2rem;
    color: var(--primary);
}

.local-processing h4 {
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.local-processing p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.security-image {
    flex: 0.4;
    display: flex;
    justify-content: center;
}

.security-image i {
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.15;
    animation: float 4s ease-in-out infinite;
}

/* Contact Section */
.contact-section {
    padding: 100px 10%;
    background: var(--white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1rem;
}

.contact-info {
    padding: 3rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon-wrapper {
    width: 60px;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info-text h4 {
    font-weight: 700;
}

.info-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--gray-light);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1.5px solid var(--gray-medium);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    padding: 80px 10% 40px;
    background: var(--dark);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 350px;
    font-size: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Legal Page Overrides */
.legal-wrapper {
    padding: 160px 10% 100px;
    background: var(--gray-light);
    min-height: 100vh;
}

.legal-card {
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.legal-card h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.legal-card h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.legal-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    transform: translateX(-5px);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .security-box {
        flex-direction: column;
        padding: 3rem;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1.2rem;
    }

    .nav-links {
        display: none;
        /* Add a toggle menu in a real production app */
    }

    .hero {
        padding: 140px 5% 80px;
        text-align: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .btn-group {
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .legal-card {
        padding: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Modern Modal / Toast Notification */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.premium-modal {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .premium-modal {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: pulse 2s infinite;
}

.premium-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.premium-modal p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-modal-close {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* Help Center Specific */
.help-hero {
    background: var(--gradient-surface);
    padding: 160px 10% 80px;
    text-align: center;
}

.search-box-wrapper {
    max-width: 700px;
    margin: 2rem auto 0;
    position: relative;
}

.search-box-wrapper input {
    width: 100%;
    padding: 1.5rem 2rem 1.5rem 4rem;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-size: 1.1rem;
    outline: none;
}

.search-box-wrapper i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.3rem;
}

.faq-section {
    padding: 80px 10%;
    background: var(--white);
}

.faq-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.faq-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
    border-color: var(--primary-light);
}

.faq-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.faq-card p {
    color: var(--text-muted);
    margin: 0;
}