/* ==========================================================================
   CSS SYSTEM DESIGN & TOKENS - INTERIOR PRO CREATIONS
   ========================================================================== */

:root {
    --bg-dark: #070708;
    --bg-card: #121215;
    --bg-input: #1a1a1f;
    --primary: #f7b5cd;      /* New Pink */
    --primary-glow: rgba(247, 181, 205, 0.15);
    --primary-hover: #fbcbdc;
    --white: #ffffff;
    --text-main: #f0f0f5;
    --text-muted: #8e8e9c;
    --border-color: #23232a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --glass-bg: rgba(18, 18, 21, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

p {
    font-weight: 400;
}

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

.text-accent {
    color: var(--primary) !important;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #d8768e 100%);
    color: var(--bg-dark);
    box-shadow: 0 8px 24px rgba(229, 140, 163, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(229, 140, 163, 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

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

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

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(229, 140, 163, 0.2);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(7, 7, 8, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 48px;
    width: auto;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: var(--white);
}

.brand-accent {
    color: var(--primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

.btn-nav {
    padding: 10px 20px !important;
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary) !important;
}

.btn-nav:hover {
    background: var(--primary-glow);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229,140,163,0.08) 0%, rgba(7,7,8,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

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

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
}

.hero-card-slider {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    aspect-ratio: 1.5;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-floating {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-card-floating h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.hero-card-floating p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   BEFORE & AFTER SLIDER SHOWCASE
   ========================================================================== */

.interactive-showcase {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, rgba(229,140,163,0.03) 0%, rgba(7,7,8,0) 60%);
    border-top: 1px solid var(--border-color);
}

.project-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: flex-start;
}

/* Slider System */
.slider-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5;
    overflow: hidden;
    user-select: none;
}

.slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Overlay for Resizing the AFTER Image */
.after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.after-wrapper img {
    width: 100%; /* Important: prevents stretching */
    height: 100%;
}

/* Input Range element covering the slider container */
.slider-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

/* Divider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 4;
    pointer-events: none;
    transform: translateX(-50%);
}

.handle-line {
    width: 2px;
    background-color: var(--white);
    flex-grow: 1;
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tag-label {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    z-index: 3;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.tag-before {
    left: 20px;
}

.tag-after {
    right: 20px;
}

/* Details and Captions info area */
.project-info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-title {
    font-size: 1.8rem;
}

.info-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-tag i {
    color: var(--primary);
    width: 20px;
}

.social-caption-box {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.caption-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-copy {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-copy:hover {
    color: var(--primary-hover);
}

.caption-text {
    width: 100%;
    height: 120px;
    background: none;
    border: none;
    outline: none;
    padding: 16px;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-muted);
    resize: none;
    line-height: 1.5;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */

.services-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

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

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #ffc0cb 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(229, 140, 163, 0.2);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.services-footer {
    margin-top: 50px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.services-footer-text {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   CONTACT / CTA SECTION
   ========================================================================== */

.contact-section {
    padding: 100px 0;
    background-color: #0c0c0e;
    border-top: 1px solid var(--border-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 80px;
    align-items: center;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-item i {
    font-size: 1.3rem;
    color: var(--primary);
    padding-top: 4px;
}

.detail-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.detail-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.instagram-link {
    color: var(--primary);
    font-weight: 500;
}

.instagram-link:hover {
    text-decoration: underline;
}

.contact-form-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-form-box h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-form-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background-color: var(--bg-dark);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 320px;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-copyright {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
}

/* ==========================================================================
   CHATBOT SIMULATOR WIDGET (MANYCHAT MOCKUP)
   ========================================================================== */

.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
}

.chatbot-toggle {
    width: 135px;
    height: 135px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    padding: 0;
}

.chatbot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(247, 181, 205, 0.25)); /* Sutil brillo rosa de marca */
}

.chat-speech-bubble {
    position: absolute;
    bottom: 142px;
    right: 15px;
    background-color: var(--white);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 20px 20px 2px 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    animation: bubble-bounce 2s infinite ease-in-out;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
}

.chat-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--white);
}

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

.chatbot-toggle:hover {
    transform: translateY(-12px) scale(1.08);
}

.pulse-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background-color: #00ff66;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 10px #00ff66;
}

/* Chat Window Container */
.chat-window {
    position: absolute;
    bottom: 112px;
    right: 0;
    width: 380px;
    height: 440px; /* Reducida la altura para que no alcance el header */
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.chat-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #000;
    padding: 4px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.chat-brand h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.status-online {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-online .dot {
    width: 6px;
    height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
    display: inline-block;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-close:hover {
    color: var(--white);
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #0a0a0c;
}

/* Chat bubble styling */
.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: bubble-in 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes bubble-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bot {
    align-self: flex-start;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-top-left-radius: 2px;
}

.message-user {
    align-self: flex-end;
    background-color: var(--primary);
    color: var(--bg-dark);
    border-top-right-radius: 2px;
    font-weight: 500;
}

/* Quick Replies buttons */
.quick-options {
    padding: 14px 20px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.quick-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quick-btn:hover {
    background-color: var(--primary-glow);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    border-top-left-radius: 2px;
    align-self: flex-start;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1s infinite ease-in-out;
}

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

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

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

/* Custom Scrollbar for Chat */
.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-lead {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .nav-logo {
        height: 38px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .main-nav {
        display: none; /* Mobile dropdown built dynamically in JS */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        z-index: 99;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .btn-nav {
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .project-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .chatbot-toggle {
        width: 90px;
        height: 90px;
    }

    .chat-speech-bubble {
        bottom: 97px;
    }

    .chat-window {
        width: calc(100vw - 40px);
        height: 400px; /* Altura reducida en móvil */
        bottom: 74px;
        right: -10px;
    }
}

/* Chat Input Area */
.chat-input-area {
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border-top: 1px solid var(--border-color);
    padding: 12px 18px;
    gap: 12px;
}

.chat-input-area input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-family: inherit;
    font-size: 0.85rem;
}

.chat-input-area input::placeholder {
    color: var(--text-muted);
}

.chat-input-area button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area button:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

/* Chat Settings Panel */
.chat-settings-panel {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #121215;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    z-index: 100;
    display: none; /* Controlled in JS */
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slide-down 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.chat-settings-panel.open {
    display: flex;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-settings-panel h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.chat-settings-panel p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.chat-settings-panel p a {
    color: var(--primary);
    text-decoration: underline;
}

.chat-settings-panel input {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--white);
    padding: 8px 12px;
    font-size: 0.8rem;
    outline: none;
    width: 100%;
}

.chat-settings-panel input:focus {
    border-color: var(--primary);
}

.settings-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

.chat-settings-btn:hover {
    color: var(--white) !important;
    transform: rotate(30deg);
}

/* ==========================================================================
   PORTFOLIO PAGE STYLES (projects.html)
   ========================================================================== */

.portfolio-hero {
    position: relative;
    padding: 140px 0 80px;
    background: radial-gradient(circle at top right, rgba(247, 181, 205, 0.08), transparent 45%),
                radial-gradient(circle at bottom left, rgba(18, 18, 21, 0.8), var(--bg-dark));
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-hero-content {
    max-width: 750px;
    margin: 0 auto;
}

.portfolio-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 15px 0 20px;
    letter-spacing: -0.02em;
}

.portfolio-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Portfolio Filters */
.portfolio-grid-section {
    padding: 60px 0 100px;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(247, 181, 205, 0.25);
    transform: translateY(-2px);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(247, 181, 205, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 8, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.view-btn {
    background-color: var(--white);
    color: var(--bg-dark);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: var(--transition);
}

.project-card:hover .view-btn {
    transform: translateY(0);
}

.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-cat {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.card-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Detail Lightbox Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none; /* Controlled in JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 7, 8, 0.85);
    backdrop-filter: blur(8px);
    animation: fade-in 0.3s ease-out forwards;
}

.modal-container {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
    animation: modal-scale 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-scale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 30;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.modal-content-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 90vh;
}

/* Left: Media Side */
.modal-media-side {
    width: 60%;
    background-color: #0c0c0e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    border-right: 1px solid var(--border-color);
}

.modal-slider-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    max-height: 480px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #070708;
    border: 1px solid rgba(255,255,255,0.03);
}

.modal-slider-box .comparison-slider {
    width: 100%;
    height: 100%;
    max-height: 480px;
    aspect-ratio: 16 / 10;
}

.modal-single-img-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    max-height: 480px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #070708;
}

.modal-single-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Navigation Thumbnails */
.modal-thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.thumb-btn {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    background: none;
    padding: 0;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn:hover {
    opacity: 0.9;
    border-color: rgba(247, 181, 205, 0.5);
}

.thumb-btn.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Right: Information Side */
.modal-info-side {
    width: 40%;
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-cat {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.modal-info-side h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-features-box h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.modal-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-features li {
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
    padding-left: 20px;
}

.modal-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Instagram Post Copy Box inside Modal */
.social-share-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header-flex span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
}

.btn-copy {
    background-color: var(--primary);
    border: none;
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.share-text-box {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    max-height: 120px;
    overflow-y: auto;
}

.share-text-box pre {
    margin: 0;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Navigation button on homepage */
.portfolio-teaser-action {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-more-projects {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-more-projects:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   PORTFOLIO RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 992px) {
    .modal-content-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-media-side, .modal-info-side {
        width: 100%;
        max-height: none;
    }

    .modal-media-side {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }

    .portfolio-hero p {
        font-size: 0.95rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .modal-container {
        max-height: 95vh;
    }

    .modal-media-side {
        padding: 20px;
    }

    .modal-slider-box, .modal-single-img-box {
        min-height: 240px;
        max-height: 300px;
    }

    .modal-info-side {
        padding: 24px;
        gap: 16px;
    }
}
