:root {
    --bg: #0b0f14;
    --bg2: #111820;
    --bg3: #182030;
    --border: rgba(77, 159, 219, 0.15);
    --primary: #4d9fdb;
    --secondary: #72c741;
    --warn: #f0a500;
    --danger: #e05252;
    --purple: #a855f7;
    --text: #e8edf4;
    --muted: #8ea5bc;
    --glass: rgba(17, 24, 32, 0.7);
    --header-h: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    background-image: 
        radial-gradient(ellipse at 15% 25%, rgba(77, 159, 219, .15) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(114, 199, 65, .10) 0%, transparent 55%),
        linear-gradient(160deg, #0e1520 0%, #0b0f14 60%, #0c1318 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .outfit {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

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

/* Header & Nav */
header {
    height: var(--header-h);
    background: rgba(11, 15, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-nav-login {
    background: rgba(77, 159, 219, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-nav-login:hover {
    background: var(--primary);
    color: #fff;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-h) + 120px);
    padding-bottom: 120px;
    text-align: center;
}

.hero .badge {
    display: inline-block;
    background: rgba(77, 159, 219, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

/* Common Section */
section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-num {
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
}

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    border-color: var(--primary);
}

/* Pricing */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.8rem;
}

.pricing-card .price-tag {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 1.2rem 0;
}

.pricing-card .subtext {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.pricing-card .list-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-card li {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 800;
}

.pricing-card li.excluded {
    color: rgba(142, 165, 188, 0.4);
    text-decoration: line-through;
}

.pricing-card li.excluded::before {
    content: '×';
    color: var(--danger);
}

.pricing-card .footer-label {
    margin-top: auto;
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.pricing-card.featured {
    border: 2px solid var(--purple);
    background: linear-gradient(135deg, rgba(168, 85, 247, .1), rgba(17, 24, 32, 0.8));
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 10px;
    letter-spacing: 1px;
}

/* Benefits (How we help) */
.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #3b9df0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Case Study / Example */
.case-study {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--warn);
    padding: 1.5rem;
    border-radius: 0 15px 15px 0;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.modal.show { display: flex; }

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.btn-close:hover {
    background: rgba(224, 82, 82, 0.2);
    color: var(--danger);
    transform: rotate(90deg);
}

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

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(77, 159, 219, 0.1);
}

.input-group i {
    color: var(--muted);
    transition: all 0.3s;
}

.input-group input:focus + i {
    color: var(--primary);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #3b9df0);
    color: #fff;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(77, 159, 219, 0.3);
}

.btn-block { width: 100%; }

/* Differentiator Section */
.diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 3rem;
}

.diff-box {
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.diff-box.not {
    background: rgba(224, 82, 82, 0.05);
    border: 1px solid rgba(224, 82, 82, 0.2);
}

.diff-box.is {
    background: rgba(114, 199, 65, 0.05);
    border: 1px solid rgba(114, 199, 65, 0.2);
    box-shadow: 0 10px 30px rgba(114, 199, 65, 0.05);
}

.diff-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.diff-box ul {
    list-style: none;
}

.diff-box li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.diff-box.not li { color: var(--muted); opacity: 0.7; }
.diff-box.is li { color: #fff; }

/* Frases de Impacto y Casos de Éxito */
.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.success-card {
    transition: transform 0.3s ease;
    border: 1px solid rgba(114, 199, 65, 0.2);
}

.success-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.success-kpi {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
}

.success-label {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Manifiesto de Eficiencia - Ticker Vertical */
.manifesto-ticker {
    height: 120px;
    overflow: hidden;
    position: relative;
    margin: 40px 0;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.ticker-track {
    display: flex;
    flex-direction: column;
    animation: tickerVertical 35s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.ticker-item p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
    margin: 0;
}

@keyframes tickerVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-720px); } /* 120px * 6 unique items = -720px to loop back to start */
}

.text-gradient {
    background: linear-gradient(45deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.promise-card {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.promise-card blockquote {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    font-style: italic;
    letter-spacing: -1px;
}

.promise-card blockquote span {
    color: var(--primary);
}

/* Footer Premium */
footer {
    background: linear-gradient(to bottom, rgba(17, 24, 32, 0) 0%, rgba(17, 24, 32, 0.8) 100%);
    padding: 5rem 0 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-bottom strong {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Pricing Carousel */
.carousel-wrapper {
    position: relative;
    padding: 0 50px;
    margin-top: 2rem;
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 60px 0; /* Vertical padding for scale/badge, 0 for horizontal */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.carousel-track .pricing-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 320px;
    scroll-snap-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

/* Responsive */
@media (max-width: 1200px) {
    .carousel-track .pricing-card { flex: 0 0 calc(50% - 15px); }
}

@media (max-width: 768px) {
    .carousel-wrapper { padding: 0; }
    .carousel-track .pricing-card { flex: 0 0 85%; }
    .carousel-btn { display: none; }
}

/* Responsive */
@media (max-width: 1100px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: scale(1); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    header nav ul li:not(.login-item) { display: none; }
}
