/* 
   OMNIA App - Premium Landing Page Styles 
   Based on assets/styleguide.md
*/

:root {
    /* Brand Colors */
    --color-bg: #050508;
    /* Black deep */
    --color-text: #ffffff;
    --color-text-muted: #a0a0b0;

    --color-primary: #56167d;
    /* Morado OMNIA */
    --color-primary-glow: rgba(86, 22, 125, 0.5);

    --color-secondary: #005b85;
    /* Azul */
    --color-accent-red: #c8003b;
    --color-accent-yellow: #fcbf4a;

    --color-surface: rgba(255, 255, 255, 0.05);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Effects */
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --glow-text: 0 0 20px rgba(86, 22, 125, 0.4);
    --backdrop-blur: blur(12px);
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(86, 22, 125, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 91, 133, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #7a22ad);
    color: white;
    box-shadow: 0 4px 15px rgba(86, 22, 125, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(86, 22, 125, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-outline:hover {
    background: rgba(86, 22, 125, 0.1);
}

.btn-text {
    background: none;
    padding: 0;
    color: var(--color-primary);
    text-decoration: underline;
}

.btn-text:hover {
    color: white;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.navbar-links {
    display: flex;
    gap: 30px;
}

.navbar-links a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.navbar-links a:hover {
    color: var(--color-text);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.navbar-actions {
    display: flex;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
}

/* HERO SECTION */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.highlight {
    color: transparent;
    background: linear-gradient(to right, #9d4edd, #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
    display: block;
}

.subheadline {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-bullets {
    margin-bottom: 40px;
}

.hero-bullets li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-bullets li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: bold;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.trust-line {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    height: 500px;
    background: radial-gradient(circle, rgba(86, 22, 125, 0.2) 0%, transparent 70%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Subtle hover effect for the container */
    transition: transform 0.5s ease;
}

.hero-visual:hover {
    transform: scale(1.02);
}

.app-mockup {
    position: relative;
    width: 80%;
    height: 80%;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker */
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Floating effect */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mockup-card {
    background: var(--color-surface);
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Internal stagger for visual intrigue */
    animation: slideIn 0.8s ease-out forwards;
    opacity: 0;
}

.mockup-card:nth-child(1) {
    animation-delay: 0.2s;
}

.mockup-card:nth-child(2) {
    animation-delay: 0.6s;
}

.mockup-card:nth-child(3) {
    animation-delay: 1.0s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

/* SECTIONS GENERAL */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

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

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* CARDS WITH GLOW & ANIMATION */
.card {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 20px rgba(86, 22, 125, 0);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::after {
    box-shadow: inset 0 0 40px rgba(86, 22, 125, 0.25);
    /* Enhanced Purple Glow */
}

/* PROBLEM SECTION */
.grid-problema {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-problema {
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-problema h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffcccb;
    /* Subtle red tint for problem */
}

.arrow {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin: 10px 0;
}

.solution {
    color: #b0ffc0;
    /* Subtle green tint for solution */
    font-weight: 600;
}

/* PRODUCT MODULES */
.grid-modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.module-card h3::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

/* BENEFITS (Premium Upgrade) */
.section-beneficios {
    background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.8), transparent);
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    /* Increased spacing */
    max-width: 1000px;
    /* Wider container */
    margin: 0 auto 50px;
}

/* Benefit Items as Premium Cards */
.benefits-list li {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.benefits-list li::before {
    content: "✦";
    /* Premium Icon */
    display: block;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    background: rgba(0, 91, 133, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.benefits-list li:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Strong text larger, normal text muted */
.benefits-list li strong {
    display: block;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 8px;
}

.benefits-footer {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 40px;
}

/* DEPARTMENTS / TARGET (SaaS Repositioning) */
.grid-departamentos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dept-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    /* Ensure consistent height */
}

.dept-card h3 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-size: 1.4rem;
    background: linear-gradient(to right, white 50%, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Needed for background-clip */
}

.dept-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* TIMELINE (Interactive Upgrade) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    padding-left: 20px;
    /* Space for items to not overlap line */
}

/* Background Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    /* Center with Step Numbers */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

/* Progress Line (Animated via JS) */
.timeline-progress {
    position: absolute;
    left: 40px;
    top: 0;
    width: 2px;
    height: 0%;
    /* JS will animate this */
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    z-index: 0;
    transition: height 0.3s ease-out;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    /* Align top for card */
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0.6;
    /* Dim inactive items */
}

.timeline-item:hover,
.timeline-item.is-active {
    opacity: 1;
}

.timeline-item.is-active {
    transform: translateX(10px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    margin-right: 30px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--color-text-muted);
}

/* Active State for Number */
.timeline-item.is-active .step-number {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px var(--color-primary-glow);
    transform: scale(1.1);
}

/* Timeline Card */
.timeline-content {
    background: var(--color-surface);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 30px;
    flex: 1;
    transition: all 0.3s ease;
}

.timeline-item.is-active .timeline-content {
    border-color: rgba(86, 22, 125, 0.4);
    background: linear-gradient(90deg, rgba(86, 22, 125, 0.1) 0%, transparent 100%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

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

/* PLANS */
.grid-planes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.plan-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 45px;
}

.plan-features {
    text-align: left;
    margin: 0 auto 20px;
    font-size: 0.9rem;
    color: #ddd;
    list-style: none;
    /* Custom bullet */
}

.plan-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.plan-features li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
}

.highlight-plan {
    background: rgba(86, 22, 125, 0.15);
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(86, 22, 125, 0.2);
}

.highlight-plan:hover {
    transform: scale(1.08);
    /* Slightly more pop */
    border-color: #9d4edd;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin-top: auto;
    /* Push to bottom */
    margin-bottom: 20px;
    color: white;
}

/* SOCIAL PROOF */
.section-social {
    background: var(--color-surface);
    padding: 60px 0;
}

.social-bullets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    list-style: disc;
    padding-left: 20px;
}

.social-bullets li {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

details[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* CTA FINAL */
.section-cta-final {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(86, 22, 125, 0.2) 0%, transparent 60%);
    z-index: -1;
    animation: pulseGlow 5s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.container-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.cta-content {
    max-width: 600px;
    text-align: left;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.cta-qr {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: var(--radius-md);
    color: black;
}

.qr-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* SECTION PROYECTOS (NEW) */
.section-proyectos {
    background: linear-gradient(180deg, var(--color-bg), #080810);
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}

.container-proyectos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.proyectos-content {
    max-width: 600px;
}

.proyectos-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub-proj {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.proyectos-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.proyectos-list li {
    position: relative;
    padding-left: 20px;
    color: #ccc;
    font-size: 0.95rem;
}

.proyectos-list li::before {
    content: "▹";
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

.proyectos-qr {
    display: flex;
    justify-content: center;
}

.qr-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    color: black;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.qr-card:hover {
    transform: rotate(0) scale(1.05);
}

.qr-actions {
    margin-top: 20px;
}

.qr-actions .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 60px 0;
    font-size: 0.9rem;
    background: black;
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

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

.footer-copy {
    color: var(--color-text-muted);
}

/* STAGGER ANIMATIONS ON SCROLL */
/* These classes are applied via JS (.revealed) or default state */

.grid-problema>.card:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-problema>.card:nth-child(2) {
    transition-delay: 0.2s;
}

.grid-problema>.card:nth-child(3) {
    transition-delay: 0.3s;
}

.grid-problema>.card:nth-child(4) {
    transition-delay: 0.4s;
}

.grid-modules>.card:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-modules>.card:nth-child(2) {
    transition-delay: 0.2s;
}

.grid-modules>.card:nth-child(3) {
    transition-delay: 0.3s;
}

.grid-modules>.card:nth-child(4) {
    transition-delay: 0.4s;
}

.grid-modules>.card:nth-child(5) {
    transition-delay: 0.5s;
}

.grid-modules>.card:nth-child(6) {
    transition-delay: 0.6s;
}

.grid-departamentos>.card:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-departamentos>.card:nth-child(2) {
    transition-delay: 0.2s;
}

.grid-departamentos>.card:nth-child(3) {
    transition-delay: 0.3s;
}

.grid-departamentos>.card:nth-child(4) {
    transition-delay: 0.4s;
}

/* MODAL STYLES (PREMIUM UPGRADE) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker */
    backdrop-filter: blur(12px);
    /* Higher blur for focus */
}

.modal-dialog {
    position: relative;
    width: 95%;
    /* Better mobile */
    max-width: 600px;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.95), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Inner border */
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2001;
}

.modal.is-open .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: radial-gradient(circle at top, rgba(86, 22, 125, 0.15), transparent 70%);
}

.header-texts h3 {
    font-size: 1.4rem;
    margin: 0 0 4px 0;
    color: white;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Premium Video Placeholder */
.premium-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 10px);
    pointer-events: none;
}

.play-btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(4px);
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.premium-video:hover .play-btn-circle {
    transform: scale(1.1);
    background: rgba(86, 22, 125, 0.6);
    border-color: var(--color-primary);
}

/* Countdown Chips */
.launch-countdown {
    text-align: center;
    padding: 10px;
}

.launch-text {
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.time-card .number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    line-height: 1.2;
}

.time-card .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* FooterStart */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-bullets {
        display: inline-block;
        text-align: left;
    }

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

    .grid-problema,
    .grid-modules,
    .grid-departamentos,
    .grid-planes,
    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .dept-card {
        text-align: center;
        /* Center again on tablet/mobile if needed, but left is fine */
    }
}

@media (max-width: 600px) {

    .navbar-links,
    .navbar-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Menu Active State */
    .navbar.active .navbar-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: black;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.active .navbar-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 20px 20px;
        background: black;
        position: absolute;
        top: calc(var(--header-height) + 260px);
        left: 0;
    }

    .grid-problema,
    .grid-modules,
    .grid-departamentos,
    .grid-planes,
    .benefits-list {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .container-cta {
        flex-direction: column;
        text-align: center;
    }

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

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

    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .timeline::before,
    .timeline-progress {
        left: 20px;
    }

    .step-number {
        margin-right: 20px;
    }
}

/* =========================================================================
   8. VISUAL POLISH (AURA & FIXES)
   ========================================================================= */

/* Fix for Project Contact Button visibility */
.project-contact-btn {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
    background: var(--color-bg) !important;
    /* Dark background */
    color: var(--color-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    width: 100%;
}

.project-contact-btn:hover {
    background: var(--color-bg) !important;
    border-color: var(--color-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 91, 133, 0.4);
    /* Glow instead of background change */
}

/* Center last benefit item (Confianza) */
.benefits-list li:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 500px;
    /* Keep it balanced with others */
    width: 100%;
}

/* Global Aura Effect */
.aura,
.aura-soft,
.aura-strong {
    position: relative;
    isolation: isolate;
    /* Create stacking context */
}

.aura::before,
.aura-soft::before,
.aura-strong::before {
    content: "";
    position: absolute;
    inset: -20px;
    /* Bleed out */
    border-radius: inherit;
    /* Follow parent radius */
    background: radial-gradient(circle at center, rgba(120, 119, 198, 0.25), transparent 70%);
    filter: blur(25px);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Modifier: Soft Aura (default visible) */
.aura-soft::before {
    opacity: 0.35;
    background: radial-gradient(circle at center, rgba(88, 86, 214, 0.2), transparent 70%);
}

/* Modifier: Strong Aura */
.aura-strong::before {
    opacity: 0.5;
    background: radial-gradient(circle at center, rgba(88, 86, 214, 0.3), transparent 70%);
}

/* Hover Effect */
.aura:hover::before,
.aura-soft:hover::before,
.aura-strong:hover::before {
    opacity: 0.6;
    filter: blur(30px);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {

    .aura::before,
    .aura-soft::before,
    .aura-strong::before {
        display: none;
        animation: none;
    }
}