/* Variables Globales / Sistema de Diseño */
:root {
    --bg-dark: #000000;
    --bg-surface: #0a0a0a;
    --gold: #D4AF37;
    --gold-dim: rgba(212, 175, 55, 0.4);
    --gold-glow: rgba(212, 175, 55, 0.7);
    --neon-yellow: #FFFF00;
    --neon-glow: rgba(255, 255, 0, 0.5);
    --gray-metal: #848482;
    --bg-glass: rgba(132, 132, 130, 0.05);
    --border-glass: rgba(212, 175, 55, 0.2);
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selección */
::selection {
    background: var(--gold);
    color: var(--bg-dark);
}

/* Canvas Neural Background */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Tipografía Básica */
h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 600;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Componente Glassmorphism */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(8px);
}

/* Header & Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Contenedor central para el menú */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    cursor: pointer;
}

.logo span {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-dim);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.7rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-dim);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}



.lang-switch-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--gold);
}

.lang-separator {
    color: var(--gray-metal);
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile dropdown */
.mobile-menu-container {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 101;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    transform-origin: left center;
}

.hamburger-btn.open span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 1rem 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.mobile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown a {
    color: var(--text-main);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.mobile-dropdown a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

/* Botones Primary */
.btn-primary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.8rem 2rem;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gold);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--gold-glow);
    border-color: var(--neon-yellow);
}

.glow-effect {
    box-shadow: 0 0 15px var(--gold-dim);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.02em;
    z-index: 2;
}

.hero-title span {
    background: linear-gradient(135deg, var(--gold) 0%, var(--neon-yellow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 10px var(--neon-glow));
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-metal);
    max-width: 650px;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    z-index: 2;
}

.cta-hero {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    z-index: 2;
}

/* Sección Servicios */
.services {
    padding: 8rem 5%;
    position: relative;
    z-index: 2;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
    padding: 3rem 2.5rem;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    background: rgba(212, 175, 55, 0.05);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px var(--gold));
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Visualización de Flujos n8n */
.flow-visualization {
    padding: 6rem 5%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.n8n-nodes-container {
    height: 500px;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(132, 132, 130, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.node {
    position: absolute;
    background: #111;
    border: 1px solid var(--border-glass);
    padding: 1rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-head);
    z-index: 2;
    transition: all 0.4s ease;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.node .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.node .gold {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

.node .neon-yellow {
    background: var(--neon-yellow);
    box-shadow: 0 0 12px var(--neon-yellow);
}

.node:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: scale(1.05) translateY(-5px);
    background: #1a1a1a;
}

.node-connections {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.node-connections path {
    fill: none;
    stroke: var(--gray-metal);
    stroke-width: 2.5;
    stroke-dasharray: 8;
    animation: dashLine 30s linear infinite;
    transition: all 0.5s ease;
}

.n8n-nodes-container:hover .node-connections path {
    stroke: url(#goldGradient);
    filter: drop-shadow(0 0 8px var(--gold));
    stroke-width: 3;
}

@keyframes dashLine {
    to {
        stroke-dashoffset: -2000;
    }
}

/* Métricas */
.metrics {
    padding: 8rem 5%;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.03), transparent);
    position: relative;
    z-index: 2;
}

.metrics-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6rem;
    text-align: center;
}

.metric-number {
    font-size: 5rem;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.metric-number span {
    color: var(--gold);
    font-size: 3rem;
}

.metric-label {
    color: var(--gray-metal);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.95rem;
    margin-top: 1rem;
    font-weight: 600;
}

/* FAQ Acordeón */
.faq {
    padding: 8rem 5%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1.5rem;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.3rem;
    font-family: var(--font-head);
    font-weight: 500;
    text-align: left;
    padding: 1.8rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question .icon {
    font-size: 1.8rem;
    color: var(--gold);
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    color: var(--text-muted);
}

.faq-answer p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 2rem;
}

.faq-item.active .icon {
    transform: rotate(45deg);
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-glow);
}

/* Footer & Final CTA */
footer {
    padding: 8rem 5% 3rem;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    background: radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.15), transparent 60%);
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-content p {
    color: var(--gray-metal);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.cta-large {
    font-size: 1.3rem;
    padding: 1.2rem 3.5rem;
    border-width: 2px;
}

.footer-bottom {
    margin-top: 8rem;
    color: var(--gray-metal);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* Utilidades de Animación en Scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .metric-number {
        font-size: 4rem;
    }

    .n8n-nodes-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.8rem 5%;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .nav-right {
        gap: 1.5rem;
    }

    .nav-left .logo {
        font-size: 1.8rem;
    }

    .nav-logo-img {
        height: 38px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .metrics-grid {
        gap: 3rem;
        flex-direction: column;
    }

    .cta-title {
        font-size: 2.6rem;
    }

    .n8n-nodes-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .metric-number {
        font-size: 3.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}
/* Spotlight Hover Effect para Cards Minimalistas */
.spotlight-card {
    position: relative;
    overflow: hidden;
    cursor: default;
    background: var(--bg-surface);
    transition: transform 0.4s ease;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-dim);
}

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.1), transparent 40%);
}
.spotlight-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(132, 132, 130, 0.08);
}

.mini-icon svg { width: 20px; height: 20px; }
.neon-yellow-icon { color: var(--neon-yellow); border: 1px solid rgba(255,255,0,0.25); }
.gold-icon { color: var(--gold); border: 1px solid rgba(212,175,55,0.25); }

/* Ventana emergente (Tooltip) */
.info-tooltip-container {
    position: relative;
}

.info-btn {
    background: rgba(132, 132, 130, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.05);
    width: 26px; height: 26px;
    border-radius: 50%;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.info-btn:hover { background: var(--gold); color: var(--bg-dark); }

.tooltip-window {
    position: absolute;
    top: 35px; right: 0;
    width: 250px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold-dim);
    padding: 1.2rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: var(--font-body);
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    pointer-events: none;
    text-align: left;
}

.info-tooltip-container:hover .tooltip-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.modal-overlay.active {
    opacity: 1; visibility: visible;
}
.modal-content {
    background: var(--bg-surface);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0,0,0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 2.2rem;
    cursor: pointer; transition: color 0.3s;
    line-height: 1;
}
.close-btn:hover { color: var(--gold); }
#modal-title { color: var(--gold); margin-bottom: 1.2rem; font-size: 1.8rem; font-family: var(--font-head); }
#modal-desc { color: var(--text-main); font-size: 1.15rem; line-height: 1.7; font-family: var(--font-body); }


/* ---- MODAL PRO DESDE SCRIPTS ---- */
.modal-wrapper {
    display: flex;
    flex-direction: row;
    width: 950px;
    max-width: 95%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
}
.modal-overlay.active .modal-wrapper {
    transform: translateY(0) scale(1);
}
.modal-left {
    flex: 1;
    background: linear-gradient(135deg, #1f1635 0%, #0a0a0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.modal-left svg {
    width: 130px;
    height: 130px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
}
.modal-right {
    flex: 1.2;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    background: #141414;
}
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}
.modal-close-btn:hover { color: #fff; }
.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
#modal-title {
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    font-family: var(--font-head);
    font-weight: 800;
}
.badge-workflow {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.modal-subtitle {
    color: #a0a0a0;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.modal-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.mf-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.mf-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--gold);
}
.mf-text h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-family: var(--font-body);
}
.mf-text p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}
.btn-primary-solid {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 1.2rem 2rem;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: 100%;
    margin-top: auto;
}
.btn-primary-solid:hover {
    background: #f7d66a;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .modal-wrapper {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-left {
        padding: 3rem;
        min-height: 200px;
    }
    .modal-left svg {
        width: 90px;
        height: 90px;
    }
    .modal-right {
        padding: 2.5rem 1.5rem;
    }
    #modal-title {
        font-size: 1.8rem;
    }
}


/* ---- MOBILE AESTHETICS FIX ---- */
@media (max-width: 768px) {
    .service-card {
        text-align: center;
        align-items: center;
        padding: 3rem 1.5rem;
    }
    
    .card-header {
        justify-content: center;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .service-card h3 {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
}


/* ---- NUEVAS SECCIONES (VENTAJAS Y OFERTA) ---- */
.advantages {
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.advantage-item.reverse {
    flex-direction: row-reverse;
}

.advantage-img {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.advantage-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.advantage-img:hover img {
    transform: scale(1.05);
}

.advantage-text {
    flex: 1;
}

.advantage-text h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-head);
}

.advantage-text p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 30px;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 15px;
}

.check-icon {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Oferta Irresistible */
.irresistible-offer {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.offer-card {
    max-width: 900px;
    padding: 60px 40px;
    text-align: center;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.1), transparent), 
                rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.offer-badge {
    background: var(--gold);
    color: #000;
    padding: 6px 15px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: inline-block;
}

.offer-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 25px;
    font-family: var(--font-head);
    line-height: 1.1;
}

.offer-desc {
    font-size: 1.3rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.no-cost {
    color: var(--gold);
    text-decoration: underline wavy rgba(212, 175, 55, 0.4);
    font-weight: 700;
}

.cta-offer {
    padding: 20px 45px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.offer-legal {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.highlight {
    color: var(--gold);
}

@media (max-width: 768px) {
    .advantage-item, .advantage-item.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .offer-title {
        font-size: 2.2rem;
    }
    
    .offer-desc {
        font-size: 1.1rem;
    }
}

/* --- REDES HEADER ICON --- */
.header-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.header-social-icon:hover {
    color: var(--neon-yellow);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--gold-dim));
}

/* --- FOOTER REDISEÑO --- */
.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-col-title {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--gray-metal);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-mini-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.footer-slogan {
    color: var(--gray-metal);
    font-size: 1.1rem;
    max-width: 400px;
    text-align: center;
    line-height: 1.6;
}

.footer-bottom-line {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--gray-metal);
    font-size: 0.95rem;
}

.footer-social-icons {
    display: flex;
    gap: 1.5rem;
}

.footer-social-icons a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-top-grid {
        text-align: center;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-col {
        align-items: center;
    }
    
    .footer-bottom-line {
        flex-direction: column;
        text-align: center;
    }
}

/* --- LEGAL MODAL --- */
.legal-modal-wrapper {
    position: relative;
    background: #0a0a0a;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.legal-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-header h3 {
    color: var(--gold);
    font-size: 2rem;
    margin: 0;
}

.legal-content {
    overflow-y: auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    padding-right: 1.5rem; /* Space for scrollbar */
}

.legal-content::-webkit-scrollbar {
    width: 6px;
}
.legal-content::-webkit-scrollbar-track {
    background: transparent;
}
.legal-content::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

.legal-content h4 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .legal-modal-wrapper {
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }
    .legal-header h3 {
        font-size: 1.5rem;
    }
    .legal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .legal-content {
        padding-right: 0.5rem;
        font-size: 0.95rem;
    }
}

/* --- LEGAL SCROLL CONTENT --- */
.legal-scroll-content {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 1.5rem;
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: left;
    font-family: var(--font-body);
}

.legal-scroll-content::-webkit-scrollbar {
    width: 6px;
}
.legal-scroll-content::-webkit-scrollbar-track {
    background: transparent;
}
.legal-scroll-content::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

.legal-scroll-content h4 {
    color: #fff;
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}
.legal-scroll-content h4:first-child {
    margin-top: 0;
}

.legal-scroll-content p {
    margin-bottom: 1.2rem;
}

.legal-scroll-content ul {
    margin: 0.5rem 0 1.5rem 1.5rem;
    list-style-type: disc;
}
.legal-scroll-content li {
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .legal-scroll-content {
        max-height: 40vh;
        padding-right: 0.5rem;
        font-size: 0.95rem;
    }
}

/* --- APPLE GLASS BUTTONS OVERRIDES --- */
.btn-primary, .btn-primary-solid {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--gold) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-primary::before, .btn-primary-solid::before {
    display: none !important; /* Hide old solid backgrounds */
}

.btn-primary:hover, .btn-primary-solid:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Glass effect for close modal buttons */
.modal-close-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05) !important;
}

/* --- Añadidos Automáticos: Refinamiento Visual Dorado --- */

/* 1. Botones CTA Dorados y Animados en Loop */
@keyframes shinyGold {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlowGold {
    0% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 0 20px rgba(255, 245, 177, 0.2); }
    100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.8), 0 0 45px rgba(255, 245, 177, 0.5); }
}

.btn-primary, .btn-primary-solid, .nav-cta, .cta-hero, .cta-offer, .cta-modal, .info-btn {
    position: relative !important;
    background: linear-gradient(90deg, #D4AF37, #FFF5B1, #D4AF37, #B8860B, #D4AF37) !important;
    background-size: 300% 300% !important;
    animation: shinyGold 3s ease infinite, pulseGlowGold 2s infinite alternate !important;
    color: #111 !important; /* Texto oscuro para destacar en fondo dorado claro */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    z-index: 2 !important;
    overflow: hidden !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border-radius: 999px !important; /* Estilo Cápsula */
}

/* Selector de idioma: solo texto dorado, sin fondo ni borde */
.lang-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: var(--text-muted) !important;
    font-family: var(--font-head) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: color 0.3s !important;
    text-shadow: none !important;
    letter-spacing: 0.05em !important;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--gold) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

/* Borrar pseudo-elementos conflictivos previos */
.btn-primary::before, .btn-primary-solid::before, .btn-primary::after, .btn-primary-solid::after {
    display: none !important;
}

.btn-primary:hover, .btn-primary-solid:hover, .cta-hero:hover {
    transform: scale(1.08) translateY(-3px) !important;
    filter: brightness(1.15) !important;
    color: #000 !important;
}

/* 2. Tarjetas de Servicios y Controles translúcidos (Cristal Gris Claro) */
.glass, .service-card, .offer-card, .advantage-item, .mobile-dropdown, .n8n-nodes-container, .modal-wrapper {
    background: rgba(200, 200, 200, 0.08) !important; /* Gris clarito, menos oscuro */
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important; /* Efecto bisel cristal superior */
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.04) !important;
    border-radius: 28px !important;
    transition: all 0.4s ease !important;
}

.service-card:hover, .offer-card:hover, .advantage-item:hover {
    background: rgba(220, 220, 220, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.08) !important;
}

/* 3. Animación de Luz Circulante para Imágenes */
@keyframes borderSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.advantage-img {
    position: relative !important;
    border-radius: 28px !important;
    padding: 3px !important; /* El grosor del marco luminoso */
    overflow: hidden !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3) !important; /* Glow general exterior */
}

/* Base negra o del sitio debajo de todo */
.advantage-img {
    background: var(--bg-surface) !important; 
}

/* Animación de la luz rotando (Conic Gradient animado) */
.advantage-img::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 200% !important;
    height: 200% !important;
    background: conic-gradient(transparent, transparent, transparent, #D4AF37, #FFFF00, transparent) !important;
    animation: borderSpin 3s linear infinite !important;
    z-index: 0 !important;
}

/* La propia imagen posada sobre la capa de luz, con radio justo menor para que parezca borde */
.advantage-img img {
    position: relative !important;
    z-index: 2 !important;
    border-radius: 26px !important;
    background: #000 !important; /* Fondo interior sólido si hay png transp. */
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: none !important; /* Cancelamos shadow vieja de img, la pusimos en contenedor */
}

.advantage-img:hover img {
    transform: scale(1.02) !important;
    filter: brightness(1.1) !important;
}

/* Excepciones de Glass para evitar grises feos en textos etc */
.n8n-nodes-container {
    background: rgba(40, 40, 40, 0.4) !important; /* Un poco más oscuro por diagramas */
}

/* --- Añadidos Automáticos: Refinamiento Visual Dorado --- */

/* 1. Botones CTA Dorados y Animados en Loop */
@keyframes shinyGold {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlowGold {
    0% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 0 20px rgba(255, 245, 177, 0.2); }
    100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.8), 0 0 45px rgba(255, 245, 177, 0.5); }
}

.btn-primary, .btn-primary-solid, .nav-cta, .cta-hero, .cta-offer, .cta-modal {
    position: relative !important;
    background: linear-gradient(90deg, #D4AF37, #FFF5B1, #D4AF37, #B8860B, #D4AF37) !important;
    background-size: 300% 300% !important;
    animation: shinyGold 3s ease infinite, pulseGlowGold 2s infinite alternate !important;
    color: #111 !important; /* Texto oscuro para destacar en fondo dorado claro */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    z-index: 2 !important;
    overflow: hidden !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border-radius: 999px !important; /* Estilo Cápsula */
}

/* Borrar pseudo-elementos conflictivos previos */
.btn-primary::before, .btn-primary-solid::before, .btn-primary::after, .btn-primary-solid::after {
    display: none !important;
}

.btn-primary:hover, .btn-primary-solid:hover, .cta-hero:hover {
    transform: scale(1.08) translateY(-3px) !important;
    filter: brightness(1.25) !important;
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
}

/* 2. Tarjetas de Servicios y Controles translúcidos (Cristal Gris Claro) */
.glass, .service-card, .offer-card, .advantage-item, .mobile-dropdown, .n8n-nodes-container, .modal-wrapper {
    background: rgba(200, 200, 200, 0.08) !important; /* Gris clarito, menos oscuro */
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important; /* Efecto bisel cristal superior */
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.04) !important;
    border-radius: 28px !important;
    transition: all 0.4s ease !important;
}

.service-card:hover, .offer-card:hover, .advantage-item:hover {
    background: rgba(220, 220, 220, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.08) !important;
}

/* 3. Animación de Luz Circulante para Imágenes */
@keyframes borderSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.advantage-img {
    position: relative !important;
    border-radius: 28px !important;
    padding: 3px !important; /* El grosor del marco luminoso */
    overflow: hidden !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3) !important; /* Glow general exterior */
}

/* Base negra o del sitio debajo de todo */
.advantage-img {
    background: var(--bg-surface) !important; 
}

/* Animación de la luz rotando (Conic Gradient animado) */
.advantage-img::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 200% !important;
    height: 200% !important;
    background: conic-gradient(transparent, transparent, transparent, #D4AF37, #FFFF00, transparent) !important;
    animation: borderSpin 3s linear infinite !important;
    z-index: 0 !important;
}

/* La propia imagen posada sobre la capa de luz, con radio justo menor para que parezca borde */
.advantage-img img {
    position: relative !important;
    z-index: 2 !important;
    border-radius: 26px !important;
    background: #000 !important; /* Fondo interior sólido si hay png transp. */
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: none !important; /* Cancelamos shadow vieja de img, la pusimos en contenedor */
}

.advantage-img:hover img {
    transform: scale(1.02) !important;
    filter: brightness(1.1) !important;
}

/* Excepciones de Glass para evitar grises feos en textos etc */
.n8n-nodes-container {
    background: rgba(40, 40, 40, 0.4) !important; /* Un poco más oscuro por diagramas */
}


/* --- Añadidos Automáticos: Efectos iOS 26 Glass y Luz Color en Imágenes --- */

/* Efecto Luz Color en Bordes de Imágenes Principales */
.advantage-img img {
    border: 2px solid rgba(212, 175, 55, 0.4) !important; /* Gold dim */
    border-radius: 24px !important;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.3) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.advantage-img img:hover {
    border-color: rgba(255, 255, 0, 0.9) !important; /* Neon yellow */
    box-shadow: 0 0 60px rgba(255, 255, 0, 0.8), inset 0 0 30px rgba(255, 255, 0, 0.5) !important;
    transform: scale(1.03) !important;
    filter: brightness(1.2) contrast(1.1) !important;
}

/* Bordes Redondeados y Cristal Glass Elegante (Cuadros y Contenedores) - iOS 26 style */
.glass, .service-card, .offer-card, .advantage-item, .mobile-dropdown, .n8n-nodes-container, .modal-wrapper {
    background: rgba(30, 30, 30, 0.15) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5) !important;
    border-radius: 28px !important;
}

/* Estilo Cápsula PERFECTA Cristal Glass para Botones */
.btn-primary, .btn-primary-solid, .nav-cta, .cta-hero, .cta-offer, .cta-modal {
    border-radius: 999px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary::before, .btn-primary-solid::before {
    border-radius: 999px !important;
}


/* --- Añadidos Automáticos: Fix UI Header - Sidebar y Lang --- */

/* 1. Forzar Lang Button sin círculos ni fondos brillantes */
.lang-switch-container {
    background: transparent !important;
}

.lang-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: var(--text-muted) !important;
    font-family: var(--font-head) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: color 0.3s !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

.lang-btn.active, .lang-btn:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--gold) !important;
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

/* Ocultar pseudo-elementos del Lang Button por si algún script anterior los agregó */
.lang-btn::before, .lang-btn::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* 2. Menu hamburguesa lateral (Sidebar) en vez de ventana transparente flotante */

/* El botón de hamburguesa tiene que estar por encima del menú */
.hamburger-btn {
    position: relative !important;
    z-index: 101 !important;
}

/* Sobrescribir el Mobile Dropdown viejo a un Sidebar lateral puro */
.mobile-dropdown {
    position: fixed !important;
    top: 0 !important;
    right: -280px !important;
    width: 250px !important;
    height: 100vh !important;
    background: #050505 !important; /* Color sólido súper oscuro parecido al header, sin transparencia */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-left: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 0 !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.9) !important;
    padding-top: 100px !important;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2) !important;
    z-index: 100 !important; /* Un nivel bajo el hamburguesa */
    /* Anular viejo comportamiento (opacity) para que sea un slide duro */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Estado al mostrarse */
.mobile-dropdown.show {
    right: 0 !important;
}

/* Estilo para los links del sidebar */
.mobile-dropdown a {
    color: #fff !important;
    font-size: 1.2rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding: 15px 25px !important;
}

.mobile-dropdown a:last-child {
    border-bottom: none !important;
}

.mobile-dropdown a:hover {
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.1) !important;
}
/* Integraciones Section */
.integrations {
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-subtitle-center {
    color: var(--gray-metal);
    font-size: 1.2rem;
    max-width: 700px;
    margin: -3rem auto 4rem;
    line-height: 1.6;
}

.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    filter: grayscale(1) opacity(0.5);
}

.logo-item:hover {
    filter: grayscale(0) opacity(1);
    transform: translateY(-8px);
}

.logo-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    filter: brightness(0) invert(1); /* Fuerza a blanco minimalista */
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Colores sutiles de resplandor al hover para elegancia */
.logo-item[title="n8n"]:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(249, 76, 95, 0.6)); }
.logo-item[title="OpenAI"]:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)); }
.logo-item[title="Stripe"]:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(99, 91, 255, 0.6)); }
.logo-item[title="Slack"]:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(74, 21, 75, 0.6)); }
.logo-item[title="HubSpot"]:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 122, 89, 0.6)); }

.logo-item span {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}

.logo-item:hover span {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .logo-cloud {
        gap: 2.5rem;
    }
    .logo-item svg {
        width: 38px;
        height: 38px;
    }
}
