/* Custom Properties */
:root {
    --primary-color: #ff424a;
    --primary-hover: #da123b;
    --secondary-color: #0F172A;
    /* Slate 900 */
    --accent-color: #fac5d0;
    --text-main: #334155;
    --text-muted: #64748B;
    --bg-main: #FAFAF9;
    /* Stone 50 */
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 5%;
}

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

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 1rem;
}

/* Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-outline {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 66, 74, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 66, 74, 0.5);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-outline) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary-outline):hover {
    color: var(--primary-color);
}

.nav-links a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-outline):hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 1001;
}

/* Internationalization */
/* Custom Language Selector */
.custom-lang-selector {
    position: relative;
    cursor: pointer;
    user-select: none;
    min-width: 65px;
}

.lang-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.scrolled .lang-selected {
    background: rgba(0, 0, 0, 0.05);
}

.lang-selected i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.custom-lang-selector.active .lang-selected i {
    transform: rotate(180deg);
}

.lang-selected:hover {
    background: white;
    border-color: var(--primary-color);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    overflow: hidden;
    min-width: 80px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.8rem 1.2rem;
    transition: all 0.2s;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.lang-option:hover {
    background: var(--bg-main);
    color: var(--primary-color);
}

.nav-lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--text-main);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content>div {
    min-width: 0;
}

.hero-text h1 {
    margin-bottom: 0.5rem;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    min-height: 1.4em;
    vertical-align: bottom;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
}

.circle-1 {
    width: 800px;
    height: 800px;
    background: rgba(255, 66, 74, 0.3);
    top: -200px;
    right: -200px;
}

.circle-2 {
    width: 600px;
    height: 600px;
    background: rgba(250, 197, 208, 0.4);
    bottom: -150px;
    left: -150px;
}

/* Illustration Hover */
.illustration-container {
    padding: 1rem;
    position: relative;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
}

/* Sections */
section {
    padding: 4.5rem 0;
    position: relative;
    z-index: 10;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Responsive adjustments for features */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 66, 74, 0.1), rgba(250, 197, 208, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Responsive adjustments for pricing */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    background: white;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    margin-top: auto;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: bold;
    white-space: nowrap;
}

.plan-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 2rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 1rem;
}

.price span:first-child {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.price span:nth-child(3) {
    font-size: 1.5rem;
}

.period {
    font-size: 1rem !important;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.8rem !important;
    align-self: center;
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li i {
    color: #10B981;
}

.plan-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.plan-features li.disabled i {
    color: #EF4444;
}

/* CTA Section */
.cta-box {
    background: transparent;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.cta-text h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Clients Marquee */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
    /* Múltiples gradientes para suavizar el borde */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll 35s linear infinite;
    gap: 2.5rem;
    padding: 1rem 0; /* Espacio para que las sombras no se corten */
}

.marquee-content.reverse {
    animation-direction: reverse;
    animation-duration: 40s;
}

.logo-card {
    background: white;
    border-radius: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* Sombras rediseñadas más elegantes y limpias */
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.logo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene y no queden franjas blancas */
    border-radius: inherit;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-col.brand-col .logo {
    color: white;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-col.brand-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-security-text {
    font-size: 0.6875rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    width: 100%;
    margin: 0 auto 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
}

.social-links a i {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.footer-col i {
    width: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Animations & Responsive */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.contact-form-container,
.contact-info-container {
    padding: 3rem;
}

.contact-form-container h3,
.contact-info-container h3 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 66, 74, 0.2);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 66, 74, 0.1), rgba(250, 197, 208, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
    color: var(--secondary-color);
}

.info-text p {
    margin: 0;
    word-break: break-word;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--primary-color);
}
.modal-body h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.modal-body p {
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    h1 {
        font-size: clamp(2.25rem, 6vw, 3.5rem);
    }

    .hero-image {
        max-width: 600px;
        margin: 3rem auto 0;
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 15px);
        left: 5%;
        right: 5%;
        width: 90%;
        height: auto;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.5rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border-radius: 20px;
        transition: opacity 0.3s ease, visibility 0.3s;
        padding: 2.5rem 1.5rem;
        z-index: 1000;

        opacity: 0;
        visibility: hidden;
        display: flex;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding-top: 100px;
    }

    section {
        padding: 3.5rem 0;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .cta-box {
        padding: 2rem;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}