:root {
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --brand-blue: #0A1931;
    --brand-orange: #FF5722;
    --soft-orange: #FFF0EB;
    /* Colores para el Mesh Gradient */
    --mesh-1: #ffffff;
    --mesh-2: #fff0eb;
    --mesh-3: #eef2f7;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Animación Mesh Gradient de Fondo OPTIMIZADA --- */
.mesh-bg {
    background: linear-gradient(-45deg, var(--mesh-1), var(--mesh-2), var(--mesh-3));
}

/* --- Animaciones base --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.orange-text {
    color: var(--brand-orange);
    font-weight: 600;
}

.brand-inline {
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: -0.5px;
}

.brand-inline span {
    color: var(--brand-orange);
}

/* --- Navegación --- */
nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 8%;
    align-items: center;
    background: transparent;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 8%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -1px;
    color: var(--brand-blue);
    text-decoration: none;
}

.nav-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--brand-orange);
}

ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    align-items: center;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
    font-size: 0.85rem;
}

a:hover {
    color: var(--brand-orange);
}

.btn-nav-contacto {
    background: var(--brand-blue);
    color: white !important;
    padding: 8px 18px;
    border-radius: 15px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--brand-blue);
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.menu-toggle .material-symbols-outlined {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 10% 100px 10%;
}

h1 {
    font-size: 3.8rem;
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--brand-blue);
}

.gradient {
    background: linear-gradient(90deg, var(--brand-orange), #ff9800);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.btn-primario {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primario:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 25, 49, 0.2);
}

.btn-secundario {
    background: var(--soft-orange);
    color: var(--brand-orange);
    border: none;
    padding: 14px 30px;
    border-radius: 35px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secundario:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.2);
}

/* --- Títulos de Sección --- */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--brand-blue);
    line-height: 1.1;
    text-align: center;
    width: 100%;
    display: block;
}

/* --- Secciones --- */
.services, .about-section {
    padding: 80px 5%;
    text-align: center;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto 30px auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 0 50px;
    height: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    gap: 30px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-row:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 60px rgba(10, 25, 49, 0.1);
    }
}

.centered-row {
    justify-content: center;
    height: auto;
    padding: 60px 80px;
}

.service-row.row-reverse {
    flex-direction: row-reverse;
}

.text-block {
    flex: 1;
    text-align: left;
}

.centered-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.text-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-blue);
}

.text-block p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* --- Contenedores de Imagen Base --- */
.image-block {
    flex: 1.2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.img-step {
    display: flex;
    align-items: center;
}

.row-reverse .img-step {
    justify-content: flex-start;
    padding-left: 8%;
}

.service-row:not(.row-reverse) .img-step {
    justify-content: flex-end;
    padding-right: 8%;
}

/* --- Simulador Móvil UI --- */
.mobile-mockup {
    width: 130px;
    height: 260px;
    border: 8px solid var(--text-main);
    border-radius: 25px;
    background: #ffffff;
    position: relative;
    transform: translateY(15px);
    animation: floatMobile 9s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
    contain: strict;
}

.mobile-screen {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-sizing: border-box;
}

.mock-header-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-align: center;
    margin-bottom: 2px;
}

.mock-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: auto;
}

.mock-icon-box {
    background: var(--soft-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    animation: simulateTap 4s infinite;
}

.mock-icon {
    font-size: 1.4rem;
    color: var(--brand-orange);
}

.mock-icon-box:nth-child(1) { animation-delay: 0s; }
.mock-icon-box:nth-child(2) { animation-delay: 1s; }
.mock-icon-box:nth-child(3) { animation-delay: 2s; }
.mock-icon-box:nth-child(4) { animation-delay: 3s; }

.mock-cart-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--brand-blue);
    border-bottom: 2px dashed var(--bg-secondary);
    padding-bottom: 5px;
}

.mock-cart-icon {
    font-size: 1.1rem;
    color: var(--brand-orange);
}

.mock-order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: auto;
    padding-top: 5px;
}

.mock-order-line {
    height: 12px;
    background: var(--soft-orange);
    border-radius: 4px;
    width: 100%;
    animation: pulseLine 3s infinite;
}

.mock-order-line:nth-child(1) { width: 90%; animation-delay: 0s; }
.mock-order-line:nth-child(2) { width: 75%; animation-delay: 0.5s; }

.mock-order-line.short {
    width: 60%;
    background: var(--brand-blue);
    opacity: 0.8;
    margin-top: 5px;
    margin-left: auto;
}

.mock-btn {
    background: var(--brand-blue);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border-radius: 15px;
    margin-top: auto;
    animation: simulateClick 4s infinite 3.5s;
    text-align: center;
}

/* --- Simulación Multi-Dispositivo --- */
.multi-device-mockup {
    position: relative;
    width: 240px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(10px);
}

.monitor-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatMobile 9s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
    contain: paint layout;
}

.monitor-screen {
    width: 160px;
    height: 100px;
    border: 8px solid var(--text-main);
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.m-stand {
    width: 20px;
    height: 15px;
    background: var(--text-main);
}

.m-base {
    width: 60px;
    height: 6px;
    background: var(--text-main);
    border-radius: 3px;
}

.tablet-device {
    position: absolute;
    bottom: 20px;
    left: -10px;
    z-index: 2;
    width: 85px;
    height: 65px;
    border: 6px solid var(--text-main);
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: floatMobile 9s ease-in-out infinite 1.5s;
    will-change: transform;
    backface-visibility: hidden;
    contain: strict;
}

.mobile-device {
    position: absolute;
    bottom: 10px;
    right: 0px;
    z-index: 3;
    width: 40px;
    height: 80px;
    border: 5px solid var(--text-main);
    border-radius: 10px;
    background: #ffffff;
    padding: 8px 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: floatMobile 9s ease-in-out infinite 3s;
    will-change: transform;
    backface-visibility: hidden;
    contain: strict;
}

.sync-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 4px;
}

.icon-sync {
    font-size: 0.8rem;
    color: var(--brand-orange);
    animation: spinSync 4s linear infinite;
}

.order-blocks {
    display: flex;
    gap: 6px;
    flex: 1;
}

.o-block {
    background: var(--soft-orange);
    border-radius: 3px;
    flex: 1;
    height: 100%;
    animation: pulseLine 4s infinite;
}

.o-block-line {
    width: 100%;
    height: 12px;
    background: var(--soft-orange);
    border-radius: 3px;
    animation: pulseLine 4s infinite;
}

.o-block-line.short {
    width: 60%;
    background: var(--brand-blue);
}

/* --- Cubilete 3D Puro --- */
.img-stand {
    perspective: 1200px;
    align-items: center;
    justify-content: center;
}

.cubilete-3d {
    position: relative;
    width: 140px;
    height: 210px;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-35deg);
    animation: floatCubilete 6s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.cubilete-face {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    background: #fdfdfd;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.cubilete-front {
    width: 140px;
    height: 210px;
    transform: translateZ(70px);
    background: #ffffff;
    padding: 22px 0;
}

.cubilete-right {
    width: 140px;
    height: 210px;
    transform: rotateY(90deg) translateZ(70px);
    background: #f4f4f4;
    gap: 6px;
}

.cubilete-top {
    width: 140px;
    height: 140px;
    transform: rotateX(90deg) translateZ(70px);
    background: #ffffff;
    padding: 14px;
}

.cutout-icon {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 5px;
}

.cutout-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--brand-orange);
}

.cutout-text-small {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--brand-orange);
    margin-bottom: -5px;
}

.cutout-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-orange);
}

.cubilete-logo {
    position: absolute;
    bottom: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #c0c0c0;
    letter-spacing: 0.5px;
}

.cubilete-logo span {
    color: #b0b0b0;
}

.qr-svg-clean {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* --- IA Upselling Mockup --- */
.badge-proximamente {
    font-size: 0.65rem;
    font-weight: 700;
    background-color: var(--soft-orange);
    color: var(--brand-orange);
    padding: 5px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
    margin-left: 12px;
    display: inline-block;
    transform: translateY(-4px);
}

.mock-ai-suggestion {
    background: rgba(255, 240, 235, 0.8);
    border: 1px solid var(--brand-orange);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    margin-bottom: auto;
    animation: pulseAiSuggestion 3s infinite;
}

.mock-ai-icon {
    font-size: 1.2rem;
    color: var(--brand-orange);
    animation: spinAi 4s ease-in-out infinite;
}

.mock-ai-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.mock-ai-line {
    height: 6px;
    background: var(--text-muted);
    opacity: 0.3;
    border-radius: 3px;
    width: 90%;
}

.mock-ai-line.short {
    width: 60%;
}

/* --- Animaciones Keyframes --- */
@keyframes spinSync {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes simulateTap {
    0%, 100% { transform: scale(1); opacity: 1; }
    10% { transform: scale(0.96); opacity: 0.6; }
    20%, 90% { transform: scale(1); opacity: 1; }
}

@keyframes simulateClick {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    5% { transform: scale(0.92); opacity: 1; }
    15%, 90% { transform: scale(1); opacity: 0.9; }
}

@keyframes pulseLine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes floatCubilete {
    0%, 100% { transform: rotateX(-20deg) rotateY(-35deg) translate3d(0, 5px, 0); }
    50% { transform: rotateX(-20deg) rotateY(-35deg) translate3d(0, -5px, 0); }
}

@keyframes floatMobile {
    0%, 100% { transform: translate3d(0, 15px, 0); }
    50% { transform: translate3d(0, 0px, 0); }
}

@keyframes pulseAiSuggestion {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes spinAi {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(15deg); }
}

/* --- Chat IA UI --- */
.chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    height: 480px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
    display: flex;
    animation: scaleUp 0.3s forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.chat-header {
    background: var(--brand-blue);
    color: white;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-status {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
}

.chat-header span {
    font-weight: 700;
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg.bot {
    background: var(--bg-secondary);
    align-self: flex-start;
    color: var(--brand-blue);
    border-bottom-left-radius: 4px;
}

.msg.user {
    background: var(--brand-orange);
    align-self: flex-end;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.chat-input-area input {
    flex: 1;
    border: none;
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
}

.btn-send-chat {
    background: var(--brand-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-send-chat:hover {
    background: var(--brand-orange);
    transform: scale(1.05);
}

/* --- Botón Flotante Chatbot --- */
.btn-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--brand-orange);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.3);
    z-index: 2001;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-flotante:hover {
    transform: scale(1.1);
}

/* --- Estilos BLINDADOS para el bocadillo de atención de Ramón --- */
.chat-bubble-attention {
    position: absolute !important;
    bottom: calc(100% + 15px) !important;
    right: 0 !important;
    width: max-content !important; 
    background-color: var(--brand-orange) !important; /* Cambio a naranja corporativo */
    color: #ffffff !important; /* Texto en blanco para legibilidad óptima */
    border: none !important; /* Eliminamos el borde */
    padding: 10px 16px !important;
    border-radius: 16px 16px 0px 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    pointer-events: none !important;
    z-index: 2005 !important; 
    margin: 0 !important;
    display: block !important;
}

/* Puntero del bocadillo */
.chat-bubble-attention::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important; /* Modificado al retirar el borde */
    right: 0px !important; /* Alineado directamente con el canto derecho */
    border-width: 10px 10px 0 0 !important;
    border-style: solid !important;
    border-color: var(--brand-orange) transparent transparent transparent !important; /* Color naranja */
}

/* Puntero interior oculto (ya no hay necesidad de simular borde) */
.chat-bubble-attention::before {
    display: none !important;
}

/* Clase dinámica para mostrar el bocadillo */
.chat-bubble-attention.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* --- Secciones Comunes --- */
.testimonials-section {
    padding: 80px 5%;
    background: var(--bg-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(245, 245, 247, 0.8);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(245, 245, 247, 1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--soft-orange);
    margin-bottom: 15px;
    display: block;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: var(--brand-blue);
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
}

.faq-section {
    padding: 80px 5%;
    background: transparent;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}

.faq-question:hover {
    background: var(--soft-orange);
}

.faq-question span {
    transition: transform 0.3s ease;
    color: var(--brand-orange);
}

.faq-question.active span {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: transparent;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-section {
    padding: 100px 10%;
    background: var(--bg-color);
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header h2 {
    font-size: 2.8rem;
    color: var(--brand-blue);
    margin-bottom: 15px;
}

.email-branded {
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    letter-spacing: -0.5px;
}

.email-branded span {
    color: var(--brand-orange);
}

.contact-form {
    background: rgba(245, 245, 247, 0.8);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 40px;
    border-radius: 30px;
    margin-top: 40px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--brand-blue);
    padding-left: 5px;
}

.form-group input, .form-group textarea {
    padding: 15px 20px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}

.btn-enviar {
    width: 100%;
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-enviar:disabled {
    background: #ccc;
    cursor: not-allowed;
}

footer {
    padding: 50px 8% 25px 8%;
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-footer {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin: 0;
    letter-spacing: -1px;
}

.logo-footer span {
    color: var(--brand-orange);
}

.footer-brand p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 5px 0;
}

.email-branded-small {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

.email-branded-small span {
    color: var(--brand-orange);
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

/* --- BANNER DE COOKIES (TECH THEME) --- */
.cookie-banner-legal.tech-theme {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 900px;
    background: var(--brand-blue);
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(10, 25, 49, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 9999;
    padding: 24px 30px;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    opacity: 0;
}

.cookie-banner-legal.tech-theme.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-legal-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.cookie-icon-wrapper {
    background: rgba(255, 87, 34, 0.15);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-pulse {
    font-size: 2.2rem;
    color: var(--brand-orange);
    animation: pulseAiSuggestion 3s infinite alternate;
}

.cookie-legal-content {
    flex: 1;
}

.cookie-legal-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cookie-legal-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.cookie-legal-content a {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.cookie-legal-content a:hover {
    text-decoration: underline;
}

.cookie-legal-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    min-width: 160px;
}

.btn-cookie-legal {
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    width: 100%;
}

.btn-cookie-legal.accept {
    background: var(--brand-orange);
    color: white;
}

.btn-cookie-legal.reject {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-cookie-legal.config {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-legal:hover {
    transform: translateY(-2px);
}

.btn-cookie-legal.accept:hover {
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.btn-cookie-legal.reject:hover, .btn-cookie-legal.config:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --- MODAL CONFIGURACIÓN COOKIES --- */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 49, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-content {
    background: var(--brand-blue);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal-overlay.active .cookie-modal-content {
    transform: translateY(0);
}

.cookie-modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cookie-modal-header span {
    cursor: pointer;
    transition: 0.2s;
    color: rgba(255,255,255,0.7);
}

.cookie-modal-header span:hover {
    color: var(--brand-orange);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-modal-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cookie-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-cat-info {
    flex: 1;
    padding-right: 15px;
}

.cookie-cat-info h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: white;
}

.cookie-cat-info p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.cookie-modal-footer {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    text-align: center;
}

/* Toggles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--brand-orange);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-switch.disabled .slider {
    cursor: not-allowed;
    background-color: rgba(255,87,34,0.5);
}

/* --- RESPONSIVO MÓVIL --- */
@media (max-width: 768px) {
    /* Ajustes Generales Sitio */
    .section-title {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 2.1rem;
    }

    .hero {
        padding: 100px 16px 80px 16px;
    }

    nav {
        padding: 15px 5%;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 15px;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    nav ul.active {
        max-height: 350px;
        opacity: 1;
        padding: 20px 0 30px 0;
        pointer-events: auto;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    /* FIX: Mantener el orden Texto Arriba, Imagen Abajo en TODAS las filas */
    .service-row {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
    }

    .service-row.row-reverse {
        flex-direction: column;
    }

    .image-block {
        height: 280px;
        width: 100%;
        justify-content: center !important;
        align-items: center !important; 
        padding: 0 !important;
    }

    .mobile-mockup, .multi-device-mockup, .cubilete-3d {
        margin: 0 auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .chat-window {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 75px;
        height: 400px;
    }

    /* Ajustes Banner Cookies Tech Móvil (Optimizado) */
    .cookie-banner-legal.tech-theme {
        width: calc(100% - 20px);
        bottom: 10px;
        padding: 15px;
    }

    .cookie-legal-container {
        flex-direction: column;
        text-align: left;
        gap: 12px;
    }

    .cookie-icon-wrapper {
        display: none;
    }

    .cookie-legal-content h4 {
        font-size: 1rem;
        margin-bottom: 4px;
        text-align: center;
    }

    .cookie-legal-content p {
        font-size: 0.75rem;
        line-height: 1.35;
        text-align: center;
    }

    .cookie-legal-btns {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-cookie-legal {
        flex: 1;
        min-width: 45%;
        padding: 10px;
        font-size: 0.8rem;
    }

    .btn-cookie-legal.config {
        width: 100%;
        flex: 100%;
        padding: 8px;
    }
}