/* Landing Manifiesto — estilos de mockup_nueva_version/index2.html */
@font-face {
    font-family: 'ITC Avant Garde';
    src: url('../ITCAvantGardeStd-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'ITC Avant Garde';
    src: url('../ITCAvantGardeStd-Md.ttf') format('truetype');
    font-weight: 500;
}

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

:root {
    --cyan: rgba(0, 200, 220, 0.25);
    --magenta: rgba(200, 50, 180, 0.2);
    --purple: rgba(140, 60, 220, 0.25);
    --blue: rgba(40, 100, 240, 0.25);
    --green: rgba(40, 200, 120, 0.2);
    --bg-dark: #0a0a1a;
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.65);
    --accent-cyan: #00c8dc;
    --accent-purple: #8c3cdc;
    --accent-blue: #2864f0;
    --accent-green: #28c878;
}

html {
    background: var(--bg-dark);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    overscroll-behavior: none;
}

body {
    font-family: 'ITC Avant Garde', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ───── Animated Background: WebGL Shader ───── */
#bg-shader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.animated-bg {
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 3;
}

.section-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}

/* ───── 1. INTRO ───── */
#intro {
    position: relative;
    z-index: 2;
    height: 300vh;
    background: transparent;
}

.intro-fade-layer {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

.intro-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.intro-logo {
    width: 260px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    opacity: 0;
}

.intro-logo-glow {
    position: absolute;
    width: 320px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(0, 200, 220, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -70%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -70%) scale(1.15);
    }
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
}

.scroll-arrow i {
    font-size: 32px;
    color: var(--text-secondary);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ───── 2. MANIFIESTO (scroll-sequence) ───── */
.manifiesto-fixed-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
}

#manifiesto {
    position: relative;
    z-index: 3;
    height: 600vh;
    background: transparent;
    pointer-events: none;
}

.manifiesto-canvas-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.manifiesto-canvas-wrap canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.manifiesto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.manifiesto-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.manifiesto-text .text-block {
    position: absolute;
    opacity: 0;
    max-width: 800px;
    padding: 0 40px;
}

.manifiesto-text .text-block h2 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.manifiesto-text .text-block p {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 16px auto 0;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.manifiesto-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.manifiesto-scroll-hint i {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
}

.manifiesto-scroll-hint span {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ───── 3. HUB ───── */
#hub {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    --glow-1: rgba(0, 200, 220, 0.12);
    --glow-2: rgba(200, 50, 180, 0.1);
}

.hub-title {
    text-align: center;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    margin-bottom: 60px;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    align-items: stretch;
}

.hub-card {
    position: relative;
    padding: 40px 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    margin: 0;
    min-height: 0;
}

.hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hub-card[data-color="cyan"]::before {
    background: radial-gradient(ellipse at 30% 80%, rgba(0, 200, 220, 0.15), transparent 70%);
}

.hub-card[data-color="purple"]::before {
    background: radial-gradient(ellipse at 70% 80%, rgba(140, 60, 220, 0.15), transparent 70%);
}

.hub-card[data-color="blue"]::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(40, 100, 240, 0.15), transparent 70%);
}

.hub-card[data-color="green"]::before {
    background: radial-gradient(ellipse at 70% 20%, rgba(40, 200, 120, 0.15), transparent 70%);
}

.hub-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.hub-card:hover::before {
    opacity: 1;
}

.hub-card[data-color="cyan"]:hover { box-shadow: 0 0 40px rgba(0, 200, 220, 0.15); }
.hub-card[data-color="purple"]:hover { box-shadow: 0 0 40px rgba(140, 60, 220, 0.15); }
.hub-card[data-color="blue"]:hover { box-shadow: 0 0 40px rgba(40, 100, 240, 0.15); }
.hub-card[data-color="green"]:hover { box-shadow: 0 0 40px rgba(40, 200, 120, 0.15); }

.hub-card i {
    font-size: 36px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    min-height: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.hub-card[data-color="cyan"] i { color: var(--accent-cyan); }
.hub-card[data-color="purple"] i { color: var(--accent-purple); }
.hub-card[data-color="blue"] i { color: var(--accent-blue); }
.hub-card[data-color="green"] i { color: var(--accent-green); }

.hub-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    min-height: 2.5em;
    line-height: 1.25;
    flex-shrink: 0;
}

.hub-card p {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    margin-top: auto;
}

/* ───── Content Sections Common ───── */
.content-section {
    padding: 0;
    display: none;
}

.content-section.active-section {
    display: block;
}

.content-section .section-inner {
    padding: 120px 40px;
}

.section-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-label.cyan { color: var(--accent-cyan); }
.section-label.purple { color: var(--accent-purple); }
.section-label.blue { color: var(--accent-blue); }
.section-label.green { color: var(--accent-green); }

.section-heading {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.product-row {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.product-row.reverse { flex-direction: row-reverse; }

.product-text, .product-visual {
    flex: 1;
    min-width: 0;
}

.product-visual img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-name {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 700;
    margin-bottom: 16px;
}

.product-desc-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 28px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
}

.feature-list li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 20px;
}

.feature-list.cyan li i { color: var(--accent-cyan); }
.feature-list.purple li i { color: var(--accent-purple); }
.feature-list.blue li i { color: var(--accent-blue); }
.feature-list.green li i { color: var(--accent-green); }

.feature-list li span { color: var(--text-secondary); }
.feature-list li strong { color: var(--text-primary); font-weight: 700; }

.price-tag {
    display: inline-block;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 20px;
    font-weight: 700;
}

.price-tag.cyan { background: rgba(0, 200, 220, 0.12); color: var(--accent-cyan); }
.price-tag.purple { background: rgba(140, 60, 220, 0.12); color: var(--accent-purple); }
.price-tag.blue { background: rgba(40, 100, 240, 0.12); color: var(--accent-blue); }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.cta-btn:hover { transform: translateY(-2px); }

.cta-btn.cyan { background: var(--accent-cyan); color: #0a0a1a; }
.cta-btn.cyan:hover { box-shadow: 0 8px 30px rgba(0, 200, 220, 0.3); }
.cta-btn.purple { background: var(--accent-purple); color: #fff; }
.cta-btn.purple:hover { box-shadow: 0 8px 30px rgba(140, 60, 220, 0.3); }
.cta-btn.blue { background: var(--accent-blue); color: #fff; }
.cta-btn.blue:hover { box-shadow: 0 8px 30px rgba(40, 100, 240, 0.3); }
.cta-btn.green { background: var(--accent-green); color: #0a0a1a; }
.cta-btn.green:hover { box-shadow: 0 8px 30px rgba(40, 200, 120, 0.3); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.feature-card {
    padding: 28px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.3s ease;
}

.feature-card:hover { border-color: rgba(255, 255, 255, 0.15); }

.feature-card i {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.stats-bar {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-value { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

.project-showcase {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 60px;
}

.project-showcase-header { padding: 40px; }

.project-showcase-header .project-logo {
    height: 36px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.project-showcase-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-showcase-header p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.project-images img {
    width: 100%;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 60px 0;
}

.process-step { text-align: center; position: relative; }

.process-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 16px;
}

.process-step-num.blue {
    background: rgba(40, 100, 240, 0.15);
    color: var(--accent-blue);
}

.process-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-secondary); }

/* ───── CHAT ───── */
.chat-container {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    max-height: 85dvh;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-avatar i { font-size: 20px; color: #0a0a1a; }

.chat-header-info h4 { font-size: 15px; font-weight: 700; }

.chat-header-info span {
    font-size: 12px;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-header-info span::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    display: inline-block;
}

.chat-messages {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 160px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    flex-shrink: 0;
}

.chat-bubble.bot {
    background: rgba(255, 255, 255, 0.07);
    border-bottom-left-radius: 6px;
    align-self: flex-start;
}

.chat-bubble.user {
    background: var(--accent-blue);
    color: #fff;
    border-bottom-right-radius: 6px;
    align-self: flex-end;
}

.chat-bubble-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.chat-bubble-btn {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.chat-bubble-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input input::placeholder { color: var(--text-secondary); }
.chat-input input:focus { border-color: rgba(255, 255, 255, 0.25); }

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-green);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover { transform: scale(1.05); }
.chat-send-btn i { font-size: 20px; color: #0a0a1a; }

.chat-powered {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: chatTypingDot 1.4s infinite ease-in-out both;
}

.chat-typing span:nth-child(1) { animation-delay: 0s; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTypingDot {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-typing-bubble {
    padding: 12px 18px !important;
    min-width: 60px;
}

.chat-bubble.bot {
    animation: chatBubbleIn 0.3s ease-out;
}

.chat-bubble.user {
    animation: chatBubbleIn 0.3s ease-out;
}

@keyframes chatBubbleIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

#chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.contact-alt {
    text-align: center;
    margin-top: 48px;
    color: var(--text-secondary);
    font-size: 15px;
}

.contact-alt a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.contact-alt a:hover { opacity: 0.8; }

/* ───── Botón desplegar formulario de contacto ───── */
.contact-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--accent-green);
    background: rgba(40, 200, 120, 0.12);
    border: 1px solid rgba(40, 200, 120, 0.35);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-toggle-btn:hover {
    background: rgba(40, 200, 120, 0.2);
    border-color: var(--accent-green);
}

.contact-toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-toggle-btn[aria-expanded="true"] .contact-toggle-icon {
    transform: rotate(180deg);
}

/* ───── Formulario desplegable ───── */
.contact-form-expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.contact-form-expandable.is-expanded {
    max-height: 1200px;
    overflow: visible;
}

.contact-form-panel {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.contact-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(240,240,245,0.65)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.contact-form-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.contact-form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    color: var(--text-secondary);
}

.contact-form-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--accent-green);
}

.contact-form-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-captcha-row .contact-form-input {
    flex: 1;
    min-width: 0;
}

.contact-captcha-img {
    width: 120px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    flex-shrink: 0;
}

.contact-captcha-reload {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-captcha-reload:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-captcha-reload i { font-size: 18px; }

.cta-btn.compact {
    padding: 10px 24px;
    font-size: 14px;
    flex-shrink: 0;
}

.contact-form-footer .cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ───── Return Hub ───── */
.return-hub {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.return-hub h3 {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 700;
    margin-bottom: 40px;
}

.return-hub .hub-grid { max-width: 900px; }

.return-hub .hub-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.manifiesto-fadeout {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.content-section { position: relative; z-index: 3; }

.landing-footer {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 24px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-dark);
}

.glow-divider {
    position: relative;
    z-index: 3;
    height: 120px;
    overflow: hidden;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
}

.glow-divider:has(+ .active-section) { display: flex; }

.glow-divider::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 2px;
    border-radius: 2px;
    background: var(--divider-color, rgba(255, 255, 255, 0.15));
    box-shadow: 0 0 30px 8px var(--divider-glow, rgba(0, 200, 220, 0.2));
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.5); }
}

/* ───── Responsive ───── */
@media (max-width: 900px) {
    #intro { height: 200vh; }
    #manifiesto { height: 400vh; }
    .product-row, .product-row.reverse {
        flex-direction: column;
        gap: 40px;
    }
    .hub-grid, .return-hub .hub-grid.three-cols {
        grid-template-columns: 1fr;
    }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .project-images { grid-template-columns: 1fr; }
    .stats-bar { gap: 20px; }
    .section-inner { padding: 80px 24px; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .chat-container {
        border-radius: 16px;
        max-height: 88vh;
        max-height: 88dvh;
        margin: 0 12px;
    }
    .chat-header {
        padding: 12px 16px;
        gap: 10px;
    }
    .chat-avatar {
        width: 32px;
        height: 32px;
    }
    .chat-avatar i { font-size: 16px; }
    .chat-header-info h4 { font-size: 14px; }
    .chat-header-info span { font-size: 11px; }
    .chat-messages {
        padding: 12px 16px;
        gap: 10px;
        min-height: 100px;
    }
    .chat-bubble {
        padding: 10px 14px;
        font-size: 13px;
        line-height: 1.5;
    }
    .chat-bubble-buttons { gap: 6px; margin-top: 8px; }
    .chat-bubble-btn { padding: 6px 12px; font-size: 12px; }
    .chat-input {
        padding: 10px 12px;
        gap: 8px;
    }
    .chat-input input {
        padding: 10px 12px;
        font-size: 16px; /* evita zoom en iOS al enfocar */
    }
    .chat-send-btn {
        width: 40px;
        height: 40px;
    }
    .chat-send-btn i { font-size: 18px; }
    .chat-powered {
        padding: 8px 12px;
        font-size: 11px;
    }
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-panel {
        padding: 16px;
    }
    .contact-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .contact-form-footer .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .chat-container { margin: 0 8px; }
    .chat-messages { padding: 10px 12px; }
    .chat-bubble { padding: 8px 12px; font-size: 12px; }
}

/* ───── Página Contacto éxito (mismo diseño que landing) ───── */
.contacto-exito-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.contacto-exito-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 520px;
    width: 100%;
}

.contacto-exito-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 200, 120, 0.12);
    border: 1px solid rgba(40, 200, 120, 0.3);
    color: var(--accent-green);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contacto-exito-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    background: rgba(40, 200, 120, 0.2);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-exito-icon i {
    font-size: 2.5rem;
    color: var(--accent-green);
}

.contacto-exito-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.contacto-exito-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contacto-exito-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contacto-exito-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .contacto-exito-page { padding: 1.5rem; }
    .contacto-exito-icon { width: 72px; height: 72px; }
    .contacto-exito-icon i { font-size: 2rem; }
    .contacto-exito-text { font-size: 15px; }
}
