body {
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.company-badge {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.company-badge-alt {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.grid-bg {
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.project-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 25px 50px -12px rgba(34, 211, 238, 0.25);
}

.skill-bar {
    background: linear-gradient(90deg, #22d3ee 0%, #a855f7 100%);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.nav-link {
    position: relative;
    color: #cbd5e1;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #a855f7);
    transition: width 0.3s;
}

.nav-link:hover {
    color: #22d3ee;
}

.nav-link:hover::after {
    width: 100%;
}

.section-number {
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: #020617;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.5);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: #a855f7;
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.skill-tag {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

.skill-tag-alt {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.timeline-dot {
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.timeline-line {
    background: linear-gradient(180deg, #22d3ee 0%, #a855f7 100%);
}

/* Hero Image Styles */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(34, 211, 238, 0.15);
    border: 2px solid rgba(34, 211, 238, 0.2);
    transition: all 0.4s ease;
}

.hero-image-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 35px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(34, 211, 238, 0.25);
    border-color: rgba(34, 211, 238, 0.4);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.1);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(34, 211, 238, 0.1) 0%,
        transparent 50%,
        rgba(168, 85, 247, 0.1) 100%
    );
    pointer-events: none;
}

.hero-image-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #22d3ee, #a855f7, #22d3ee);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(20px);
}

.hero-image-wrapper:hover .hero-image-glow {
    opacity: 0.6;
}

.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #22d3ee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-badge-2 {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #a855f7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

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

@media (max-width: 768px) {
    .hero-image-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .floating-badge,
    .floating-badge-2 {
        display: none;
    }
}

.metric-card {
    background: linear-gradient(135deg, rgba(34,211,238,0.1) 0%, rgba(168,85,247,0.1) 100%);
    border: 1px solid rgba(34,211,238,0.25);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.1);
}

.experience-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee, #a855f7);
}

/* Skip link fallback (Tailwind JIT puede omitir utilidades poco usadas) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* FAB: WhatsApp + asistente */
.fab-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.fab-btn:active {
    transform: scale(0.96);
}

.fab-btn:hover {
    transform: scale(1.06);
}

.fab-whatsapp {
    background: linear-gradient(145deg, #22c55e, #15803d);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.fab-ai-launch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.95rem 0.65rem 0.7rem;
    min-height: 3.75rem;
    min-width: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(34, 211, 238, 0.55);
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 27, 75, 0.96));
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.22),
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 34px rgba(34, 211, 238, 0.22),
        0 0 24px rgba(168, 85, 247, 0.2);
    color: #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.fab-ai-launch:active {
    transform: scale(0.97);
}

.fab-ai-launch:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.5),
        0 16px 48px rgba(0, 0, 0, 0.55),
        0 0 44px rgba(34, 211, 238, 0.32);
}

.fab-ai-launch__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 2px solid rgba(34, 211, 238, 0.35);
    animation: fab-ai-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes fab-ai-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.12);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.fab-ai-launch__mark {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.32);
    flex-shrink: 0;
}

.fab-ai-launch__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-align: left;
}

.fab-ai-launch__eyebrow {
    font-size: 0.56rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #67e8f9;
}

.fab-ai-launch__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #22d3ee, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fab-ai-launch__sub {
    font-size: 0.66rem;
    color: #cbd5e1;
    font-weight: 600;
    max-width: 10rem;
}

.fab-ai-launch__badge {
    position: absolute;
    top: -0.45rem;
    right: 0.9rem;
    padding: 0.16rem 0.5rem;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #022c22;
    background: linear-gradient(135deg, #86efac, #22d3ee);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.22);
}

@media (max-width: 380px) {
    .fab-ai-launch {
        padding: 0.55rem 0.75rem 0.55rem 0.55rem;
        min-height: 3.25rem;
    }

    .fab-ai-launch__mark {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.62rem;
    }

    .fab-ai-launch__pulse {
        display: none;
    }

    .fab-ai-launch__badge {
        display: none;
    }
}

/* Panel asistente */
.ai-chat-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    padding-bottom: 7.5rem;
    background: radial-gradient(ellipse 80% 60% at 90% 100%, rgba(88, 28, 135, 0.35), transparent),
        rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.ai-chat-panel:not([hidden]) {
    pointer-events: auto;
}

.ai-chat-shell {
    width: min(100%, 430px);
    max-height: min(90vh, 620px);
    margin-left: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.12),
        0 24px 80px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(168, 85, 247, 0.12);
}

.ai-chat-shell--booking {
    width: min(100%, 460px);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-header__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ai-chat-header__orb {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
    flex-shrink: 0;
}

.ai-chat-header__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
}

.ai-chat-header__sub {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.ai-chat-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    border-radius: 0.65rem;
    color: #94a3b8;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ai-chat-close:active {
    transform: scale(0.95);
}

.ai-chat-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ai-chat-messages {
    flex: 1;
    min-height: 200px;
    max-height: min(42vh, 320px);
    overflow-y: auto;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    scroll-behavior: smooth;
}

.ai-chat-shell--booking .ai-chat-messages {
    min-height: 96px;
    max-height: 150px;
    padding-bottom: 0.6rem;
}

.ai-chat-shell--booking .ai-chat-chips,
.ai-chat-shell--booking .ai-chat-footer {
    display: none;
}

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

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 99px;
}

.ai-msg-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.ai-msg-row-user {
    justify-content: flex-end;
}

.ai-msg-row-bot {
    justify-content: flex-start;
}

.ai-msg-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.25), rgba(168, 85, 247, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-msg-avatar-pulse {
    animation: ai-avatar-glow 1.2s ease-in-out infinite;
}

@keyframes ai-avatar-glow {
    50% {
        box-shadow: 0 0 14px rgba(34, 211, 238, 0.45);
    }
}

.ai-msg-user {
    max-width: 88%;
    padding: 0.65rem 0.85rem;
    border-radius: 1rem 1rem 0.25rem 1rem;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #f1f5f9;
    white-space: pre-wrap;
    line-height: 1.45;
}

.ai-msg-bot {
    max-width: calc(100% - 2.5rem);
    padding: 0.65rem 0.85rem;
    border-radius: 1rem 1rem 1rem 0.25rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #e2e8f0;
    white-space: pre-wrap;
    line-height: 1.5;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.ai-typing-bubble {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem 1rem 1rem 0.25rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-typing-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #22d3ee, #a855f7);
    animation: ai-typing-bounce 1s ease-in-out infinite;
}

.ai-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes ai-typing-bounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.ai-chat-chips {
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 6, 23, 0.55);
}

.ai-chat-chips.ai-chat-chips--visible {
    display: flex;
}

.ai-chat-chips-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ai-chat-chips-toggle__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ai-chat-chips.ai-chat-chips--collapsed .ai-chat-chips-toggle__icon {
    transform: rotate(-90deg);
}

.ai-chat-chips.ai-chat-chips--collapsed .ai-chat-chips__track {
    display: none;
}

.ai-chat-chips__track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0 0.85rem 0.65rem;
}

.ai-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    min-height: 2.75rem;
    padding: 0.55rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(15, 23, 42, 0.85);
    color: #cbd5e1;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ai-chip:active {
    transform: scale(0.97);
}

.ai-chip:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-1px);
}

.ai-chip--booking {
    border-color: rgba(34, 211, 238, 0.45);
    color: #e0f2fe;
}

.ai-booking-form {
    margin: 0.75rem;
    padding: 0.85rem;
    max-height: min(58vh, 430px);
    overflow-y: auto;
    background:
        radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-booking-form::-webkit-scrollbar {
    width: 6px;
}

.ai-booking-form::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.28);
    border-radius: 99px;
}

.ai-booking-form[hidden] {
    display: none;
}

.ai-booking-form__header {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-booking-form__icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}

.ai-booking-form__header h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.2rem;
}

.ai-booking-form__header p {
    font-size: 0.74rem;
    line-height: 1.4;
    color: #94a3b8;
}

.ai-booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.ai-booking-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.ai-booking-form label span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-booking-form input,
.ai-booking-form textarea {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.96);
    color: #f1f5f9;
    padding: 0.62rem 0.7rem;
    font-size: 0.82rem;
    outline: none;
    color-scheme: dark;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ai-booking-form textarea {
    min-height: 4.75rem;
    resize: vertical;
}

.ai-booking-form input:focus,
.ai-booking-form textarea:focus {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
    background: rgba(15, 23, 42, 1);
}

.ai-booking-reason {
    grid-column: 1 / -1;
}

.ai-booking-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.15rem;
}

.ai-booking-primary,
.ai-booking-secondary {
    border: none;
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.ai-booking-primary {
    background: linear-gradient(135deg, #22d3ee, #7c3aed);
    color: #020617;
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.18);
}

.ai-booking-secondary {
    background: rgba(15, 23, 42, 0.95);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.ai-booking-primary:hover,
.ai-booking-secondary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.ai-chat-footer {
    padding: 0.65rem 0.75rem 0.85rem;
    background: rgba(2, 6, 23, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.ai-chat-input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.95);
    color: #f1f5f9;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-chat-input:focus {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.ai-chat-input::placeholder {
    color: #64748b;
}

.ai-chat-send {
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22d3ee, #7c3aed);
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.35);
    transition: transform 0.15s, filter 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ai-chat-send:active {
    transform: scale(0.95);
}

.ai-chat-send__svg {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    display: block;
    pointer-events: none;
}

.ai-chat-send:hover {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.ai-chat-send__icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* Accesibilidad: foco visible en controles del chat y FABs */
.fab-ai-launch:focus-visible,
.fab-btn:focus-visible,
.ai-chat-close:focus-visible,
.ai-chip:focus-visible,
.ai-chat-send:focus-visible,
.ai-chat-input:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

body.ai-chat-open {
    overflow: hidden;
    padding-bottom: 0;
}

.ai-msg-avatar--initials {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    border: none;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 6.75rem;
    }

    body.ai-chat-open {
        padding-bottom: 0;
    }

    body.ai-chat-open .fab-stack {
        opacity: 0;
        pointer-events: none;
        transform: translateY(0.5rem);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .fab-stack {
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        gap: 0.65rem;
        z-index: 40;
    }

    .fab-btn {
        width: 3.25rem;
        height: 3.25rem;
        min-width: 3.25rem;
        min-height: 3.25rem;
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .fab-whatsapp svg {
        width: 1.65rem;
        height: 1.65rem;
    }

    .fab-ai-launch {
        gap: 0.55rem;
        min-height: 3.25rem;
        max-width: calc(100vw - 1.5rem);
        padding: 0.55rem 0.85rem 0.55rem 0.6rem;
        border-color: rgba(34, 211, 238, 0.55);
        box-shadow:
            0 0 0 1px rgba(34, 211, 238, 0.25),
            0 8px 28px rgba(0, 0, 0, 0.45),
            0 0 24px rgba(34, 211, 238, 0.2);
    }

    .fab-ai-launch__mark {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.68rem;
    }

    .fab-ai-launch__text {
        line-height: 1.15;
    }

    .fab-ai-launch__eyebrow,
    .fab-ai-launch__sub,
    .fab-ai-launch__badge {
        display: none;
    }

    .fab-ai-launch__title {
        font-size: 0.8125rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .fab-ai-launch__pulse {
        display: none;
    }

    /* Chat full-screen mobile */
    .ai-chat-panel {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
        overscroll-behavior: contain;
        background: #0f172a;
        backdrop-filter: none;
    }

    .ai-chat-panel:not([hidden]) {
        height: 100%;
        height: 100dvh;
    }

    .ai-chat-shell {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .ai-chat-header {
        flex-shrink: 0;
        padding: 0.65rem 0.75rem;
        padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
        min-height: 3.25rem;
    }

    .ai-chat-header__orb {
        width: 2rem;
        height: 2rem;
        font-size: 0.62rem;
    }

    .ai-chat-header__title {
        font-size: 0.9375rem;
    }

    .ai-chat-header__sub {
        font-size: 0.75rem;
    }

    .ai-chat-header__sub-detail {
        display: none;
    }

    .ai-chat-close {
        padding: 0.5rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.06);
    }

    .ai-chat-close svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .ai-chat-messages {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        padding: 0.75rem;
        font-size: 0.9375rem;
        -webkit-overflow-scrolling: touch;
    }

    .ai-msg-label {
        display: none;
    }

    .ai-msg-row-bot .ai-msg-avatar {
        display: none;
    }

    .ai-msg-stack {
        max-width: 88%;
    }

    .ai-msg-stack--user {
        max-width: 88%;
    }

    .ai-msg-user,
    .ai-msg-bot {
        max-width: 100%;
        padding: 0.65rem 0.85rem;
        font-size: 0.9375rem;
        word-break: break-word;
        line-height: 1.5;
    }

    .ai-msg-bot {
        max-width: 100%;
    }

    /* Chips colapsables en mobile */
    .ai-chat-chips-toggle {
        display: flex;
    }

    .ai-chat-chips {
        gap: 0;
        padding: 0;
    }

    .ai-chat-chips__track {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        gap: 0.45rem;
        padding: 0 0.75rem 0.55rem;
    }

    .ai-chat-chips__track::-webkit-scrollbar {
        display: none;
    }

    .ai-chip {
        flex-shrink: 0;
        scroll-snap-align: start;
        font-size: 0.8125rem;
        min-height: 2.5rem;
        padding: 0.5rem 0.85rem;
        white-space: nowrap;
    }

    .ai-chat-footer {
        flex-shrink: 0;
        padding: 0.6rem 0.75rem;
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    }

    .ai-chat-form {
        gap: 0.55rem;
        align-items: center;
    }

    .ai-chat-input {
        font-size: 1rem;
        padding: 0.7rem 0.9rem;
        min-height: 2.75rem;
        border-radius: 1.375rem;
    }

    .ai-chat-send {
        width: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
        border-radius: 9999px;
        flex-shrink: 0;
    }

    .ai-chat-send__svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .ai-booking-grid {
        grid-template-columns: 1fr;
    }

    .ai-chat-shell--booking .ai-chat-messages {
        min-height: 72px;
        max-height: none;
        flex: 1;
    }

    .ai-booking-form {
        margin: 0.6rem;
        max-height: min(62vh, 460px);
    }

    .ai-booking-actions {
        flex-direction: column-reverse;
    }

    .ai-booking-primary,
    .ai-booking-secondary {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .ai-chat-panel {
        align-items: center;
        justify-content: flex-end;
        padding: 2rem;
        padding-bottom: 2rem;
    }

    .ai-chat-messages {
        max-height: min(48vh, 380px);
    }
}

.tech-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
    gap: 0.85rem 0.65rem;
    max-width: 56rem;
}

.tech-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.45rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tech-icon-item:hover {
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-2px);
}

.tech-icon-item span {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    line-height: 1.2;
}

.tech-icon-item img {
    display: block;
    opacity: 0.92;
}

.tech-icon-grid--embedded {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (min-width: 480px) {
    .tech-icon-grid--embedded {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.tech-icon-grid--embedded .tech-icon-item {
    padding: 0.5rem 0.3rem;
    border-radius: 0.5rem;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.tech-icon-grid--embedded .tech-icon-item:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-1px);
}

.tech-icon-grid--embedded .tech-icon-item span {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tech-icon-grid--embedded .tech-icon-item img {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.tool-method-pill {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.65);
    letter-spacing: 0.02em;
}

