/* ============================================
   DYNTEC - Stylesheet principal
   Manual de identidad: Open Sauce One + Roboto
   Colores: #009481, #5ac3b7, #121a22, #606161
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    /* Colores corporativos según manual */
    --color-primary: #009481;
    --color-primary-light: #5ac3b7;
    --color-primary-glow: #5ac3b7;
    --color-dark: #0a0f14;
    --color-dark-2: #121a22;
    --color-dark-3: #1a242e;
    --color-gray: #606161;
    --color-gray-light: #8a8b8b;
    --color-white: #ffffff;
    --color-white-soft: #e8eef0;
    
    /* Tipografías según manual */
    --font-display: 'Open Sauce One', 'Helvetica Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Espaciado */
    --container-max: 1280px;
    --section-padding: 120px;
    --section-padding-mobile: 80px;
    
    /* Transiciones */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sombras */
    --shadow-glow: 0 0 80px rgba(0, 148, 129, 0.25);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 40px 120px rgba(0, 148, 129, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--color-dark);
    color: var(--color-white-soft);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, iframe {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

ul {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 148, 129, 0.1);
    border: 1px solid rgba(90, 195, 183, 0.3);
    border-radius: 100px;
    color: var(--color-primary-light);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-light);
    line-height: 1.7;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 148, 129, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 148, 129, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(90, 195, 183, 0.1);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
    background: rgba(10, 15, 20, 0);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(10, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.05em;
}

.nav-logo-icon {
    width: 32px;
    height: 38px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--color-white-soft);
    font-size: 15px;
    font-weight: 400;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-light);
    transition: width var(--transition);
}

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

.nav-links a:hover:not(.nav-cta)::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--color-primary);
    color: var(--color-white) !important;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--color-primary-light);
    color: var(--color-dark) !important;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(90, 195, 183, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 195, 183, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-glow-1 {
    background: var(--color-primary);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
    background: var(--color-primary-light);
    bottom: -200px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 148, 129, 0.1);
    border: 1px solid rgba(90, 195, 183, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--color-primary-light);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary-light);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(90, 195, 183, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-light);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero visual: code card */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-card {
    background: linear-gradient(135deg, rgba(18, 26, 34, 0.9) 0%, rgba(10, 15, 20, 0.9) 100%);
    border: 1px solid rgba(90, 195, 183, 0.15);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-elevated);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-card-header {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-card-dots {
    display: flex;
    gap: 6px;
}

.hero-card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.hero-card-dots span:nth-child(1) { background: #ff5f57; }
.hero-card-dots span:nth-child(2) { background: #ffbd2e; }
.hero-card-dots span:nth-child(3) { background: var(--color-primary-light); }

.hero-card-title {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--color-gray-light);
    margin-left: auto;
    margin-right: auto;
}

.hero-card-body {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    color: var(--color-white-soft);
    opacity: 0;
    animation: typeIn 0.5s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 0.8s; }
.code-line:nth-child(3) { animation-delay: 1.1s; }
.code-line:nth-child(4) { animation-delay: 1.4s; }
.code-line:nth-child(5) { animation-delay: 1.7s; }
.code-line:nth-child(6) { animation-delay: 2.1s; }

@keyframes typeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-string { color: var(--color-primary-light); }
.code-fn { color: #f78c6c; }
.code-indent { padding-left: 0; }
.code-output {
    color: var(--color-primary-light);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 148, 129, 0.1);
    border-left: 3px solid var(--color-primary-light);
    border-radius: 4px;
    font-weight: 500;
}

.hero-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    filter: blur(40px);
    bottom: -50px;
    right: -50px;
    z-index: 1;
    opacity: 0.5;
    animation: pulse-orb 4s ease-in-out infinite;
}

@keyframes pulse-orb {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll span {
    width: 4px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

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

/* ============================================
   SERVICIOS
   ============================================ */
.services {
    padding: var(--section-padding) 0;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 195, 183, 0.3), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 36px 32px;
    background: linear-gradient(135deg, rgba(18, 26, 34, 0.8) 0%, rgba(10, 15, 20, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(0, 148, 129, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 195, 183, 0.3);
    box-shadow: var(--shadow-card);
}

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

.service-card.service-featured {
    background: linear-gradient(135deg, rgba(0, 148, 129, 0.1) 0%, rgba(18, 26, 34, 0.8) 100%);
    border-color: rgba(90, 195, 183, 0.25);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 148, 129, 0.1);
    border: 1px solid rgba(90, 195, 183, 0.2);
    border-radius: 12px;
    color: var(--color-primary-light);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--color-gray-light);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-white-soft);
    padding-left: 0;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(90, 195, 183, 0.2);
    flex-shrink: 0;
}

/* ============================================
   DEMOS
   ============================================ */
.demos {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 148, 129, 0.03) 50%, transparent 100%);
    position: relative;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .demos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.demo-card {
    background: rgba(18, 26, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
}

.demo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 195, 183, 0.3);
    box-shadow: var(--shadow-card);
}

.demo-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-dark-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-preview iframe {
    width: 200%;
    height: 200%;
    border: none;
    transform: scale(1);
    transform-origin: 0 0;
    pointer-events: none;
    background: white;
}

.demo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 15, 20, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.demo-card:hover .demo-overlay {
    opacity: 1;
}

.demo-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

.demo-expand:hover {
    background: var(--color-primary-light);
    color: var(--color-dark);
    transform: scale(1.05);
}

.demo-info {
    padding: 28px;
}

.demo-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(90, 195, 183, 0.1);
    color: var(--color-primary-light);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.demo-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 10px;
}

.demo-info p {
    color: var(--color-gray-light);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.demo-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.demo-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 12px;
    color: var(--color-white-soft);
}

.demos-cta {
    text-align: center;
    padding: 40px 0;
}

.demos-cta p {
    color: var(--color-gray-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ============================================
   PROCESO
   ============================================ */
.process {
    padding: var(--section-padding) 0;
    position: relative;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(90, 195, 183, 0.3) 20%, rgba(90, 195, 183, 0.3) 80%, transparent);
    z-index: 0;
}

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

.process-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 148, 129, 0.4);
    position: relative;
}

.process-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(90, 195, 183, 0.3);
    border-radius: 50%;
}

.process-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--color-primary-light);
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.process-step p {
    color: var(--color-gray-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 148, 129, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--color-gray-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(18, 26, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all var(--transition);
}

.contact-method:hover {
    border-color: rgba(90, 195, 183, 0.3);
    transform: translateX(4px);
    background: rgba(0, 148, 129, 0.05);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 148, 129, 0.1);
    border-radius: 10px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.contact-method-icon.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
}

.contact-method-text {
    display: flex;
    flex-direction: column;
}

.contact-method-label {
    font-size: 12px;
    color: var(--color-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.contact-method-value {
    color: var(--color-white);
    font-weight: 500;
}

/* Formulario */
.contact-form {
    padding: 40px;
    background: linear-gradient(135deg, rgba(18, 26, 34, 0.9) 0%, rgba(10, 15, 20, 0.6) 100%);
    border: 1px solid rgba(90, 195, 183, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-white-soft);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 15px;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background: rgba(10, 15, 20, 0.8);
    box-shadow: 0 0 0 3px rgba(90, 195, 183, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-body);
}

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

.form-group select option {
    background: var(--color-dark-2);
    color: var(--color-white);
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--color-gray-light);
    margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 30px;
    background: var(--color-dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--color-gray-light);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo svg,
.footer-logo img {
    width: 32px;
    height: 38px;
    object-fit: contain;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--color-gray-light);
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--color-gray-light);
}

.heart {
    color: var(--color-primary-light);
}

/* ============================================
   CHATBOT
   ============================================ */
.chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.chatbot-toggle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 148, 129, 0.4);
    transition: all var(--transition);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 148, 129, 0.6);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

.chatbot-icon-close {
    display: none;
}

.chatbot.open .chatbot-icon-open {
    display: none;
}

.chatbot.open .chatbot-icon-close {
    display: block;
}

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #ff5757;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-dark);
    animation: bounce 2s infinite;
}

.chatbot.open .chatbot-badge {
    display: none;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: linear-gradient(180deg, rgba(18, 26, 34, 0.98) 0%, rgba(10, 15, 20, 0.98) 100%);
    border: 1px solid rgba(90, 195, 183, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all var(--transition);
}

.chatbot.open .chatbot-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.chatbot-avatar svg,
.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chatbot-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-white);
    font-size: 15px;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.chatbot-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border-radius: 6px;
    transition: background var(--transition);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(90, 195, 183, 0.3);
    border-radius: 3px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    animation: messageIn 0.3s ease-out;
}

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

.message.bot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-white-soft);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.message.user a {
    color: var(--color-white);
}

.typing {
    display: flex;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing span {
    width: 8px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.chatbot-quick-replies {
    padding: 0 20px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply {
    padding: 8px 14px;
    background: rgba(0, 148, 129, 0.1);
    border: 1px solid rgba(90, 195, 183, 0.3);
    border-radius: 100px;
    color: var(--color-primary-light);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    animation: messageIn 0.3s ease-out;
}

.quick-reply:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.chatbot-footer {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 11px;
    color: var(--color-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chatbot-footer strong {
    color: var(--color-primary-light);
}

/* ============================================
   MODAL DEMOS
   ============================================ */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demo-modal.open {
    display: flex;
}

.demo-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demo-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: var(--color-dark-2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(90, 195, 183, 0.2);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.demo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition);
}

.demo-modal-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.demo-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* ============================================
   CLIENTES
   ============================================ */
.clients {
    padding: var(--section-padding) 0;
    position: relative;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 195, 183, 0.3), transparent);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.client-card {
    background: rgba(18, 26, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all var(--transition);
    display: block;
    color: inherit;
    position: relative;
}

.client-card::after {
    content: '↗';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 148, 129, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.client-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 195, 183, 0.3);
    box-shadow: var(--shadow-card);
}

.client-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.client-preview {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--color-dark-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.client-preview iframe {
    width: 250%;
    height: 250%;
    border: none;
    transform: scale(1);
    transform-origin: 0 0;
    pointer-events: none;
    background: white;
}

.client-info {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.client-info h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

.client-sector {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(90, 195, 183, 0.1);
    color: var(--color-primary-light);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.clients-cta {
    text-align: center;
    padding: 20px 0;
}

.clients-cta p {
    color: var(--color-gray-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-dark-2);
        flex-direction: column;
        gap: 0;
        padding: 100px 32px 32px;
        transition: right var(--transition);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-cta {
        margin-top: 16px;
        text-align: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-line {
        display: none;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info .section-title {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-card {
        transform: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .demos-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 28px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .chatbot-window {
        width: calc(100vw - 32px);
        right: -8px;
        height: calc(100vh - 120px);
    }
}

/* Reveal animation on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
