/* CSS Variables & Reset */
:root {
    --primary: #FF6600; /* Orange Autofy */
    --primary-dark: #cc5200;
    --primary-light: #fff0e5;
    
    --secondary-blue: #1E3A8A; /* Professional Navy Blue */
    --secondary-violet: #2563EB; /* Bright Royal Blue */
    
    --text-dark: #1E293B;
    --text-body: #475569;
    --text-light: #94A3B8;
    
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A; /* For footer */
    
    --dian-purple: #1E3A8A; /* Swapped to Navy for consistency */
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #1cad52;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Animations */
@keyframes fadeInView {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

.spin-slow {
    animation: spinSlow 8s linear infinite;
    display: inline-block;
}

@keyframes spinDynamic {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.spin-dynamic {
    animation: spinDynamic 4s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    display: inline-block;
}

/* SPA VISUAL CLASSES */
.view {
    display: none;
    animation: fadeInView 0.4s ease forwards;
}

.view-active {
    display: block;
}

.nav-active {
    color: var(--primary) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-white h2, .text-white h3, .text-white p, .text-white {
    color: #fff;
}

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

.text-blue-highlight {
    color: var(--secondary-violet);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.45rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;       /* base font size — prevents wrapping */
    white-space: nowrap;      /* single line always */
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-light);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-whatsapp-large {
    background-color: var(--whatsapp-green);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}
.btn-whatsapp-large:hover {
    background-color: var(--whatsapp-green-dark);
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;          /* never shrink the logo */
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.25rem;             /* tighter gap so items fit naturally */
    flex: 1;                  /* take available space between logo & actions */
    justify-content: center;  /* centre the nav */
}

.nav-links a {
    font-size: 0.875rem;      /* slightly smaller so 6 items fit on one line */
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    padding-bottom: 3px;
    white-space: nowrap;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;           /* never shrink the action buttons */
}

/* Header action buttons — extra compact so they fit in the header row */
.nav-actions .btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.83rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
    padding: 1rem 2rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-link {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-gradients {
    position: absolute;
    /* Extend 150px beyond all edges so the blur fades naturally
       before reaching the overflow:hidden clip on .hero */
    top: -150px;
    left: -150px;
    right: -150px;
    bottom: -150px;
    z-index: -1;
    /* No overflow:hidden here — .hero already clips the section */
}

.hero-bg-gradients::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg-main));
    pointer-events: none;
}

.gradient-blob {
    position: absolute;
    filter: blur(100px);   /* more blur = softer edge, fades before the clip */
    opacity: 0.18;
    border-radius: 50%;
    animation: floatBlob 10s ease-in-out infinite alternate;
}

.blue-blob {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--secondary-blue);
}

.violet-blob {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--secondary-violet);
    animation-delay: 2s;
}

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

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-body);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;           /* wrap on very small screens only */
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-body);
}

.hero-trust i {
    color: var(--secondary-blue);
}

.hero-visual {
    flex: 1;
    position: relative;
}

.video-container {
    background: transparent;
    border-radius: var(--border-radius-lg);
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
    transform: scale(1.03); /* Elimina marcos o bordes negros grabados en el video */
}



/* Sections Header */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Benefits */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.benefit-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: calc(33.333% - 2rem);
    min-width: 280px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Products */
.products-grid {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    flex: 1;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 150px;
    background: linear-gradient(135deg, var(--bg-light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-features {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.product-features i {
    color: var(--primary);
    margin-top: 0.3rem;
}

/* Facturación */
.billing-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.billing-content {
    flex: 1;
}

.billing-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.billing-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.b-feature {
    display: flex;
    gap: 1rem;
}

.b-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.billing-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-invoice {
    background: #fff;
    width: 350px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    animation: floatUpDown 6s ease-in-out infinite;
    border: 1px solid #eee;
}

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.logo-mini {
    font-family: 'Outfit';
    font-weight: 700;
    font-size: 1.2rem;
}

.status.valid {
    background: #dcfce7;
    color: #166534;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Differentiators & MV */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.diff-item {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.diff-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.diff-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.mv-grid {
    display: flex;
    gap: 2rem;
}

.mv-card {
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    flex: 1;
    text-align: left;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary);
}

.mv-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.mv-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Pricing Section */
.pricing-tabs {
    display: inline-flex;
    background: #fff;
    padding: 0.4rem;
    border-radius: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.pricing-tab {
    padding: 0.8rem 2rem;
    border: none;
    background: transparent;
    border-radius: 2rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.pricing-tab.active {
    background: var(--primary);
    color: #fff;
}

.pricing-content.hidden {
    display: none;
}

.pricing-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch; /* Cards equal height */
}

.price-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    flex: 1;
    max-width: 380px;
    position: relative;
    border: 1px solid #efefef;
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-desc {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items:baseline;
}

.currency {
    font-size: 1.5rem;
    margin-right: 0.2rem;
}

.period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.price-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start; /* For wrapping text */
    gap: 0.8rem;
    font-size: 0.95rem;
}

.price-features i {
    color: var(--primary);
    margin-top: 0.3rem;
}

.price-card .btn {
    width: 100%;
}


/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 100000;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}
.modal-close:hover {
    color: var(--text-dark);
}

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

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

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Plan picker modal */
.plan-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.plan-option {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    text-align: left;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1.05rem 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.plan-option:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.plan-option:active {
    transform: translateY(-1px);
}

.plan-option:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.14), 0 18px 40px rgba(0,0,0,0.10);
    border-color: rgba(255, 102, 0, 0.55);
}

.plan-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    color: var(--primary);
    flex-shrink: 0;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 102, 0, 0.18);
}

.plan-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.plan-option-text strong {
    color: var(--text-dark);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.plan-option-text small {
    color: var(--text-body);
    font-size: 0.92rem;
}

.plan-option.plan-option-neutral .plan-option-icon {
    background: rgba(30, 58, 138, 0.10);
    color: var(--secondary-blue);
    border-color: rgba(30, 58, 138, 0.18);
}

/* Slightly wider + more “premium” for this modal */
#modal-planes .modal-content {
    max-width: 560px;
}

#modal-planes h3 {
    letter-spacing: -0.02em;
}

/* FLOATING WHATSAPP */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-green-dark);
}

/* MEGA FOOTER */
.footer {
    background: linear-gradient(135deg, var(--bg-dark), var(--secondary-blue));
    color: #cbd5e1;
    padding: 4rem 0 2rem 0;
    border-top: none;
}

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

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer .text-blue-highlight {
    color: var(--primary); /* Switch highlight to orange for dark background */
}

.footer h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    color: #cbd5e1;
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .pricing-grid { flex-direction: column; }
    .price-card { max-width: 100%; }
    .price-card.popular { transform: scale(1); }
    .diff-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .benefit-card { width: 100%; }
    .billing-container { flex-direction: column; text-align: center; }
    .billing-features { grid-template-columns: 1fr; text-align: left; }
    .b-feature { flex-direction: column; align-items: center; text-align: center; }
    .mv-grid { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
