@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-light: #ffffff;
    --primary: #1e3a8a;
    --primary-hover: #172554;
    --secondary: #800020;
    --secondary-hover: #5d0017;
    --accent: #b91c1c;
    --text: #0f172a;
    --text-muted: #57657a;
    --success: #059669;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.w-full {
    width: 100%;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition: opacity 0.8s, transform 0.8s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ========== NAVBAR ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)), url('../img/hero-bg-2.png');
    background-size: cover;
    background-position: center;
}

.hero h1,
.hero p {
    color: #ffffff;
}

.hero h1 span {
    color: var(--secondary);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ========== PROBLEM SECTION ========== */
.problem {
    position: relative;
    padding: 120px 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.problem-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.problem-card i {
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.problem-footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2.5rem;
    background: transparent;
    border-radius: 1.5rem;
    border: 3px solid var(--primary);
}

.problem-footer p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* ========== VALUE PROP SECTION (WITH BACKGROUND) ========== */
.value-prop {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../img/value-prop-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.value-prop .section-title h2 {
    color: white;
}

.value-prop .section-title p {
    color: rgba(255, 255, 255, 0.85);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    width: 80px;
    height: 80px;
}

.value-card h3 {
    color: white;
}

.value-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== PROCESS ========== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.process-step {
    position: relative;
    padding: 2.5rem;
    background: var(--surface);
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* ========== COMPARISON SECTION (WITH BACKGROUND) ========== */
.comparison {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.9)), url('../img/comparison-bg-final.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.comparison .section-title h2 {
    color: white;
}

.comparison .section-title p {
    color: rgba(255, 255, 255, 0.85);
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-box {
    position: relative;
    z-index: 1;
    padding: 3rem;
    border-radius: 2rem;
}

.box-web {
    position: relative;
    overflow: hidden;
    background: rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.box-web::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 58, 138, 0.15)), url('../img/comparison-bg-final.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.box-social {
    position: relative;
    overflow: hidden;
    background: rgba(128, 0, 32, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
}

.box-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(128, 0, 32, 0.15)), url('../img/social-media-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.comparison-box h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.comparison-list {
    position: relative;
    z-index: 2;
}

.comparison-list li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.comparison-list i.check {
    color: #10b981;
}

.comparison-list i.x {
    color: #ef4444;
}

.comparison .problem-footer {
    border: none !important;
    background: transparent !important;
    margin-top: 2.5rem;
}

.comparison .problem-footer p {
    color: white !important;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== PRICING ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.pricing-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.pricing-card .btn {
    margin-top: 7px;
}

.pricing-card:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.pricing-card.popular {
    border-color: var(--secondary);
}

.pricing-card.popular:hover {
    transform: scale(1.1);
}

.pricing-card.popular::before {
    content: 'Recomendado';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

/* ========== STATS ========== */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
}

/* ========== SECURITY ========== */
.security-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.security-image {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========== CTA FINAL ========== */
.cta-final {
    text-align: center;
}

.cta-final h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.cta-final .hero-btns {
    gap: 3rem !important;
    margin-top: 2rem;
    justify-content: center;
}

/* ========== FLOATING BUTTONS ========== */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.btn-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.btn-float:hover {
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-backtotop {
    background-color: var(--primary);
    opacity: 0;
    pointer-events: none;
}

.btn-backtotop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ========== FOOTER ========== */
footer {
    background: #ffffff;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer .logo {
    color: var(--primary) !important;
}

footer .logo span {
    color: var(--secondary) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-grid h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

/* ========== MODALS ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    border-radius: 2rem;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .security-content {
        flex-direction: column;
        gap: 2rem;
    }

    .security-image {
        width: 100%;
    }

    .comparison-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-grid>div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }

    .nav-content {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        transition: right 0.3s ease;
        z-index: 999;
        flex-direction: column;
        gap: 0;
        height: calc(100vh - 70px);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        display: none;
    }

    /* Hide value icons on mobile */
    .value-icon {
        display: none;
    }

    .value-card {
        padding: 1rem;
    }

    /* General Mobile Adjustments */
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: 100vh;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .problem-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Step numbers centered on mobile */
    .process-step {
        padding-top: 3rem;
    }

    .step-number {
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card:hover {
        transform: scale(1.02);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid>div:first-child {
        grid-column: 1;
    }

    .cta-final h2 {
        font-size: 1.75rem;
    }

    .cta-final .hero-btns {
        gap: 1rem !important;
    }

    .floating-btns {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .btn-float {
        width: 50px;
        height: 50px;
    }

    .comparison-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .pricing-card,
    .problem-card,
    .process-step {
        padding: 2rem;
    }

    .comparison-box {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 2.5rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}