/** 
 * Nevora AI Consulting - Main Stylesheet
 * Estética "Cyber-Professional" - Regla 60-30-10
 */

:root {
    /* Regla 60-30-10 */
    --color-bg: #0B0E14;
    /* 60% Fondo: Negro Profundo / Gris Carbono */
    --color-secundario: #00D1FF;
    /* 30% Secundario: Azul Eléctrico */
    --color-acento: #8A2BE2;
    /* 10% Acento: Violeta Neón */

    /* Otros colores */
    --color-whatsapp: #25D366;
    --color-text: #E0E0E0;
    --color-text-muted: #A0AAB5;
    --color-white: #FFFFFF;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(0, 209, 255, 0.2);
    --glass-blur: blur(12px);

    /* Tipografía */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Espaciado */
    --section-padding: 2.5rem 0;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ================= Reset & Base ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 209, 255, 0.05) 0%, transparent 50%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #D1D5DB;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-secundario), var(--color-acento));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.text-highlight {
    color: #faf089;
    font-weight: 600;
}

/* ================= Utilitarios y Clases Extras ================= */
.text-clarification {
    color: #c0c8d0;
}

.infra-audit-banner {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.infra-audit-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ================= Botones ================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-acento);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #6a1baf;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-secundario);
    border: 1px solid var(--color-secundario);
}

.btn-outline:hover {
    background: rgba(0, 209, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.glow-effect {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6), 0 0 40px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

@keyframes breathing {
    0% {
        box-shadow: 0 0 5px rgba(0, 242, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 242, 255, 0.2);
    }
}

.btn-primary.glow-effect {
    animation: breathing 4s infinite ease-in-out;
}

/* ================= Specific Hero Styles ================= */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

/* ================= Utilitarios Glassmorphism ================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.4rem 0;
    z-index: 1000;
    transition: var(--transition-normal);
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
    padding: 0.1rem 0;
    background: rgba(11, 14, 20, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 105px;
    width: auto;
    transform: scale(1.3);
    transform-origin: left center;
    transition: var(--transition-normal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--color-secundario);
    border: 2px solid var(--color-secundario);
    background: transparent;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-fast);
}

/* ================= Hero Section ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(11, 14, 20, 0.75), rgba(11, 14, 20, 0.85)),
        url('hero_bg_pattern.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.trust-signal {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0.8;
}

/* ================= Tech Stack Banner ================= */
.tech-stack {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border-top: 1px solid rgba(0, 209, 255, 0.1);
    border-bottom: 1px solid rgba(0, 209, 255, 0.1);
    padding: 1.2rem 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.tech-stack::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.tech-stack-label {
    opacity: 0.5;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: var(--color-secundario);
    font-weight: 600;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.tech-stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition-normal);
    cursor: default;
}

.tech-stack-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}


/* ================= WhatsApp Mockup ================= */
.whatsapp-mockup {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

/* Cabecera del Chat */
.chat-header {
    background: rgba(37, 211, 102, 0.2);
    /* Color verde WhatsApp suave */
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.chat-info strong {
    font-size: 0.9rem;
    color: var(--color-white);
}

.chat-info small {
    font-size: 0.7rem;
    color: #25D366;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 10px #25D366;
    margin-right: 2px;
}

/* Cuerpo del Chat */
.chat-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Burbujas de Mensaje */
.msg-in,
.msg-out {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.msg-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.msg-in {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-bottom-left-radius: 2px;
}

.msg-out {
    align-self: flex-end;
    background: rgba(37, 211, 102, 0.15);
    color: #ffffff;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-bottom-right-radius: 2px;
}

.whatsapp-mockup.no-margin {
    margin: 0;
    max-width: 100%;
}

/* --- Utilities --- */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- WhatsApp Header Fixes --- */
#whatsappModal .chat-header {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background-color: #8a2be2 !important;
    /* Color violeta Nevora */
    border-radius: 12px 12px 0 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 10px !important;
    height: 70px !important;
    /* Altura fija para asegurar espacio */
}

#whatsappModal .status-dot {
    width: 10px !important;
    height: 10px !important;
    background-color: #25D366 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    /* Alineación manual sutil */
}

#whatsappModal .chat-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

#whatsappModal .chat-info strong {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    display: block !important;
}

#whatsappModal .chat-info small {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    display: block !important;
}

/* WhatsApp Trigger Button */
.whatsapp-trigger-btn {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.2);
    animation: flow-pulse-whatsapp 2s infinite ease-in-out;
}

.whatsapp-trigger-btn svg {
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 2px rgba(37, 211, 102, 0.5));
}

.whatsapp-trigger-btn:hover {
    transform: scale(1.4) rotate(10deg);
    background: rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.8);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.card-trigger-container {
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Tooltip design */
.whatsapp-trigger-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-secundario);
    color: var(--color-bg);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.whatsapp-trigger-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes flow-pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        border-color: rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px 10px rgba(37, 211, 102, 0);
        border-color: rgba(37, 211, 102, 1);
        background: rgba(37, 211, 102, 0.25);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        border-color: rgba(37, 211, 102, 0.4);
    }
}

@keyframes pulse-violet {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.6));
        opacity: 0.8;
    }

    50% {
        transform: scale(1.4);
        filter: drop-shadow(0 0 25px rgba(138, 43, 226, 1));
        opacity: 1;
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.6));
        opacity: 0.8;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 100;
}

.close-modal:hover {
    color: var(--color-secundario);
}

/* ================= Services Section ================= */
.services {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}

.services-cta {
    margin-top: 1.8rem;
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 209, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 209, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-cyan {
    width: 30px;
    height: 30px;
    color: var(--color-secundario);
}

.icon-violet {
    width: 30px;
    height: 30px;
    color: var(--color-acento);
}

.icon-whatsapp {
    vertical-align: middle;
    margin-left: 5px;
}

.service-card h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-list {
    margin-bottom: 0;
    min-height: 220px;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secundario);
}

.feature-list strong {
    color: var(--color-white);
}

.metric-box {
    background: rgba(138, 43, 226, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--color-acento);
    margin-top: 0;
}

.metric-value {
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.9rem;
}

.micro-copy {
    text-align: center;
    font-style: italic;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* ================= About Section ================= */
.secondary-bg {
    background-color: #0d1117;
    /* Ligeramente diferente para contraste */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h3 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text h3:not(:first-child) {
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.value-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.value-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-whatsapp);
    /* Usar como acento positivo */
    font-weight: bold;
}

.highlight {
    color: var(--color-white);
    font-weight: 600;
}

.numbered-list {
    list-style: none;
    counter-reset: custom-counter;
}

.numbered-list li {
    counter-increment: custom-counter;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.numbered-list li::before {
    content: "0" counter(custom-counter) ".";
    position: absolute;
    left: 0;
    color: var(--color-acento);
    font-weight: bold;
    font-size: 0.9rem;
}

.glass-img-container {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
}

.stat-sm {
    font-size: 1rem;
    font-weight: 500;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= Methodology Section ================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-step {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-normal);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.step-content h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.social-proof-banner {
    background: linear-gradient(90deg, rgba(0, 209, 255, 0.1), rgba(138, 43, 226, 0.1));
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--color-secundario);
    margin-bottom: -3rem;
    /* Compensa el padding inferior de la sección para acercarlo al FAQ */
}

.social-proof-banner strong {
    color: var(--color-white);
}

/* ================= ROI Comparison Table ================= */
.roi-comparison {
    margin: 3rem 0;
}

.roi-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.roi-col {
    padding: 2rem;
}

.roi-col.before {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid #EF4444;
}

.roi-col.after {
    background: rgba(0, 255, 128, 0.1);
    border-left: 1px solid rgba(0, 209, 255, 0.2);
    border: 1px solid #00ff88;
}

.roi-col h4 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: center;
}

.roi-col.before h4 {
    color: #D1D5DB;
}

.roi-col.after h4 {
    color: var(--color-secundario);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roi-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.roi-item .icon {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 2px;
}

.roi-item.bad .icon {
    color: #EF4444;
}

.roi-item.good .icon {
    color: var(--color-secundario);
}

.roi-item .text {
    line-height: 1.5;
    font-size: 0.95rem;
}

.roi-item.bad .text {
    color: #D1D5DB;
}

.roi-item.good .text {
    color: var(--color-white);
    font-weight: 500;
}

@media (max-width: 768px) {
    .roi-table {
        grid-template-columns: 1fr;
    }

    .roi-col.after {
        border-left: none;
        border-top: 1px solid rgba(0, 209, 255, 0.2);
    }
}

/* ================= FAQ Section ================= */
.faq-container {
    max-width: 800px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    text-align: left;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
    font-family: inherit;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header .icon {
    color: var(--color-secundario);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
    color: var(--color-acento);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
}

.accordion-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ================= Contact Section ================= */
.contact-box {
    padding: 3rem;
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 209, 255, 0.3);
    border-radius: 8px;
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group select option {
    background-color: #0B0E14;
    color: var(--color-white);
}

.form-group select {
    height: auto;
    padding-right: 2.5rem;
    /* Space for the dropdown arrow */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00f2ff !important;
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-acento);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.checkbox-group a {
    color: var(--color-secundario);
    text-decoration: underline;
}

.legal-text-sm {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.hidden {
    display: none !important;
}

.form-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    z-index: 10;
}

.success-icon-animated {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px #00f2ff);
}

.form-success h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lead-magnet-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 242, 255, 0.05);
}

.lead-magnet-box .small {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #8a2be2;
    color: white;
    margin-top: 10px;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* ================= Pre-Footer CTA ================= */
.pre-footer {
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(0, 209, 255, 0.2);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.pre-footer-title {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.pre-footer-text {
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ================= Footer ================= */
.footer {
    background-color: var(--color-bg);
    position: relative;
    padding-top: 4rem;
}

/* Footer Glow effect top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-secundario);
    box-shadow: 0 0 15px 1px var(--color-secundario);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 110px;
    margin-bottom: 1rem;
}

.footer-slogan {
    color: rgba(250, 240, 137, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--color-secundario);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.instagram-icon-colored {
    width: 24px;
    height: 24px;
    display: block;
    transition: var(--transition-normal);
}

.social-links a:has(.instagram-icon-colored) {
    background: transparent;
}

.social-links a:has(.instagram-icon-colored):hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.1);
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-secundario);
    padding-left: 5px;
}

.footer-col li {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Trust Seals */
.trust-seals {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.seal-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 209, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.seal-badge:hover {
    border-color: var(--color-secundario);
    background: rgba(0, 209, 255, 0.05);
    color: var(--color-white);
}

.seal-badge svg {
    width: 14px;
    height: 14px;
    color: var(--color-secundario);
}

/* ================= Legal Pages (Glassmorphism layout) ================= */
.legal-page {
    padding-top: 160px;
    padding-bottom: 60px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 209, 255, 0.2);
    border-radius: 12px;
}

.legal-content {
    color: #E0E0E0;
    /* Baja fatiga visual */
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content h1 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.legal-content h2 {
    color: var(--color-secundario);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    margin-bottom: 1.2rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ================= Automation Workflow ================= */
.automation-workflow {
    margin-top: 0;
    border-radius: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(138, 43, 226, 0.4);
    backdrop-filter: blur(10px);
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 25px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge {
    color: #00f2ff;
    text-shadow: 0 0 5px #00f2ff;
    font-weight: 700;
}

.workflow-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.node {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.75rem;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.node.highlight {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

.node-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.connector {
    height: 2px;
    flex: 0.5;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.connector.pulse-connector {
    background: linear-gradient(90deg, #8a2be2, #00f2ff);
    animation: flow-shimmer 2s infinite linear;
    background-size: 200% 100%;
}

@keyframes flow-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.workflow-footer {
    margin-top: 20px;
    text-align: center;
    opacity: 0.7;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--color-text);
}

/* Workflow Trigger Button - Rediseñado para visibilidad máxima */
.workflow-trigger-btn {
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
    animation: flow-pulse-intense 2s infinite ease-in-out;
}

.workflow-trigger-btn svg {
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 2px rgba(138, 43, 226, 0.5));
}

.workflow-trigger-btn:hover {
    transform: scale(1.4) rotate(-15deg);
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

@keyframes flow-pulse-intense {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
        border-color: rgba(138, 43, 226, 0.4);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px 10px rgba(138, 43, 226, 0);
        border-color: rgba(138, 43, 226, 1);
        background: rgba(138, 43, 226, 0.25);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
        border-color: rgba(138, 43, 226, 0.4);
    }
}

/* Tooltip for workflow btn */
.workflow-trigger-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #8a2be2;
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.workflow-trigger-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes pulse-violet {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(138, 43, 226, 0.4));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.9));
        opacity: 1;
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(138, 43, 226, 0.4));
    }
}

/* ================= Web Audit Popup ================= */
.web-audit-popup {
    padding: 25px;
    border-radius: 20px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.audit-badge {
    font-size: 0.8rem;
    color: #00f2ff;
    font-family: 'Courier New', monospace;
}

.audit-status {
    font-size: 0.7rem;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* Grid de contenido */
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .audit-grid {
        grid-template-columns: 1fr;
    }
}

/* Gráficos Lighthouse */
.lighthouse-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
}

.chart-svg {
    width: 70px;
    margin-bottom: 10px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke: #00ff88;
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px #00ff88);
    animation: progress-audit 1.5s ease-out forwards;
}

@keyframes progress-audit {
    0% {
        stroke-dasharray: 0 100;
    }
}

.percentage {
    fill: #fff;
    font-size: 0.5rem;
    text-anchor: middle;
    font-weight: 800;
}

/* Ventana de Código (IA Readiness) */
.code-window {
    background: #000;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.code-header {
    font-size: 0.6rem;
    color: #666;
    margin-bottom: 8px;
    border-bottom: 1px solid #222;
}

.code-window pre {
    color: #00f2ff;
    font-size: 0.7rem;
    margin: 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.code-desc {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
}

/* Footer del Pop-up */
.audit-footer {
    margin-top: 20px;
    text-align: center;
}

.guarantee-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 700;
}

.icon-check {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 3;
}

.tech-tag-cloud {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tag {
    font-size: 0.65rem;
    padding: 3px 10px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 6px;
    color: #00f2ff;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
}

/* Perf Trigger Button */
.perf-trigger-btn {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
    animation: perf-pulse-intense 2s infinite ease-in-out;
}

.perf-trigger-btn svg {
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 2px rgba(0, 242, 255, 0.5));
}

.perf-trigger-btn:hover {
    transform: scale(1.4) rotate(15deg);
    background: rgba(0, 242, 255, 0.3);
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

/* Tooltip for perf btn */
.perf-trigger-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #00f2ff;
    color: var(--color-bg);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.perf-trigger-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes perf-pulse-intense {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7);
        border-color: rgba(0, 242, 255, 0.4);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px 10px rgba(0, 242, 255, 0);
        border-color: rgba(0, 242, 255, 1);
        background: rgba(0, 242, 255, 0.25);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
        border-color: rgba(0, 242, 255, 0.4);
    }
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .glass-img-container {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(11, 14, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 2rem 1.5rem;
    }

    .legal-container {
        padding: 2rem 1.5rem;
    }
}

/* ============================= */
/* AI INFRASTRUCTURE SECTION */
/* ============================= */

.ai-infrastructure {
    padding: 70px 20px 40px 20px;
    text-align: center;
}

.infra-header {
    margin-bottom: 45px;
}

.infra-label {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00d2ff;
    font-weight: 600;
    margin-bottom: 16px;
}

.infra-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 720px;
    margin: 0 auto;
}

.infra-title {
    background: linear-gradient(90deg, #ffffff, #cfd9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logos grid */

.infra-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* Logo container */

.infra-logo {
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;

    transition: all 0.35s ease;
}

/* Logos */

.infra-logo img {
    max-width: 70px;
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.35s ease;
}

/* Hover effect */

.infra-logo:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 210, 255, 0.5);
    background: rgba(0, 210, 255, 0.05);
}

.infra-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* ============================= */
/* SCROLL REVEAL */
/* ============================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.infra-description {
    max-width: 640px;
    margin: 18px auto 0;
    opacity: 0.7;
    font-size: 16px;
    line-height: 1.6;
}

.infra-logo {
    animation: logoFade 0.8s ease forwards;
    opacity: 0;
}

.infra-logo:nth-child(1) {
    animation-delay: 0.1s
}

.infra-logo:nth-child(2) {
    animation-delay: 0.2s
}

.infra-logo:nth-child(3) {
    animation-delay: 0.3s
}

.infra-logo:nth-child(4) {
    animation-delay: 0.4s
}

.infra-logo:nth-child(5) {
    animation-delay: 0.5s
}

@keyframes logoFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.infra-logo:hover {
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.25);
}

.tech-stack {
    margin-bottom: 0;
}

.services {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}



/* Etiqueta para incentivar el clic en las demos */
.btn-label-demo {
    font-size: 0.75rem;
    color: var(--color-secundario);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-right: 10px;
    opacity: 0.8;
}

/* Resalte del CTA en el Navbar */
.nav-cta {
    border: 1px solid var(--color-secundario) !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: rgba(0, 209, 255, 0.1) !important;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.2) !important;
}

/* Estilos para el FAB móvil discreto */
.mobile-fab-discrete {
    display: none;
    /* Oculto en escritorio siempre */
}

@media (max-width: 768px) {
    .mobile-fab-discrete {
        display: flex;
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
        background-color: var(--color-secundario);
        color: var(--color-bg);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 998;
        box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);

        /* Estado inicial: oculto para la animación */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        pointer-events: none;
    }

    /* Clase que activará el JS */
    .mobile-fab-discrete.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-fab-discrete:active {
        transform: scale(0.9);
    }
}

/* ================= Efecto Formulario ================= */
.form-highlight {
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6), 0 0 10px rgba(138, 43, 226, 0.4) !important;
    border-color: var(--color-secundario) !important;
    transform: scale(1.02);
    transition: all 0.4s ease;
}

/* ================= Chat Greeting ================= */
.chat-greeting {
    position: fixed;
    bottom: 90px;
    /* Ajustar según la altura de tu icono de chat */
    right: 20px;
    padding: 12px 20px;
    border-radius: 18px 18px 0 18px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    z-index: 1001;
    white-space: normal;
    /* Permitir salto de línea en móviles */
    max-width: 280px;
    /* Limitar ancho según solicitud, legible en móviles */
    line-height: 1.4;
    border: 1px solid rgba(0, 242, 255, 0.3);

    /* Animación inicial oculta */
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.chat-greeting.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Triángulo del bocadillo */
.chat-greeting::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 15px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.1);
    /* Coincide con el estilo glass */
    backdrop-filter: blur(10px);
}

/* ============================================================
   OPTIMIZACIONES FINALES: SEO, MOBILE & CONVERSIÓN
   ============================================================ */

/* 1. Ajuste de legibilidad para el nuevo texto SEO del Footer */
.footer-seo-text {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 1.2rem;
    line-height: 1.6;
    max-width: 450px;
}

/* 2. Ajustes específicos para pantallas pequeñas (Móviles) */
@media (max-width: 480px) {
    /* Redimensionar el nuevo título largo del Hero */
    .hero-title {
        font-size: 1.85rem !important; 
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
    }

    /* Centrar el texto SEO en el móvil */
    .footer-seo-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
    }

    /* Experiencia de Chat Nova en pantalla completa para móviles */
    .chat-widget-container {
        width: 100% !important;
        height: 100% !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .chat-widget-header {
        padding: 20px !important;
    }

    .chat-widget-body {
        padding: 20px !important;
    }
}

/* 3. Efecto visual suave para los enlaces del Footer */
.footer-col a:hover {
    text-shadow: 0 0 8px rgba(0, 209, 255, 0.4);
    transition: all 0.3s ease;
}
/* ============================================================
   ESTILOS PARA CASOS DE ÉXITO
   ============================================================ */
#casos .service-card {
    border: 1px solid rgba(0, 209, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#casos .service-card:hover {
    border-color: var(--color-secundario);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.1);
}

#casos .metric-box {
    border-left: 3px solid var(--color-secundario) !important;
    background: rgba(0, 209, 255, 0.05) !important;
}

#casos .metric-value {
    color: var(--color-secundario);
}