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

:root {
    --bg:           #000000;
    --bg-alt:       #1d1d1f;
    --bg-elevated:  #2d2d2f;
    --text-primary: #f5f5f7;
    --text-muted:   #a1a1a6;
    --accent:       #8B1A1A;
    --accent-hover: #6e1515;
    --border:       rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --green:        #25d366;
    --green-hover:  #1fb558;
    --radius-lg:    20px;
    --radius-md:    12px;
    --radius-sm:    8px;
    --font:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-h:        52px;
    --yellow:       #F5C518;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
    /* Reduce saturación 30% + brillo 25% para armonizar con el fondo oscuro */
    filter: saturate(70%) brightness(75%);
    transition: filter 0.25s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: saturate(85%) brightness(90%);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    flex: 1;
}

.nav-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
}

.nav-mobile a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }
.nav-mobile a:hover { color: var(--text-primary); }
.nav-mobile.open { display: flex; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary { background: #25D366; color: #fff; }
.btn-primary:hover { background: #1ebe5d; color: #fff; }

.btn-yellow { background: var(--yellow); color: #000; font-weight: 700; border: 2px solid var(--yellow); width: 100%; justify-content: center; }
.btn-yellow:hover { background: transparent; color: var(--yellow); }
.btn-ghost { background: var(--accent); color: var(--yellow); border: none; }
.btn-ghost:hover { background: var(--yellow); color: var(--accent); border: none; }



.btn-large { padding: 14px 28px; font-size: 16px; }

/* === HERO === */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 60px) 24px 2rem;
    max-width: 1080px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content { flex: 1; }

.hero-eyebrow {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(44px, 6.5vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

.accent { color: #F5C518; }

.hero-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 44px;
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: 600px;
}

.hero-actions-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.hero-actions-row .btn {
    flex: 1;
}

/* === MAT-IA BUTTON (hero) === */
.matia-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 10px;
    background: rgba(0, 150, 255, 0.07);
    border: 1px solid rgba(0, 170, 255, 0.28);
    border-radius: 980px;
    color: #3dbfff;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.matia-btn:hover {
    background: rgba(0, 150, 255, 0.14);
    border-color: rgba(0, 170, 255, 0.5);
    color: #66ccff;
    transform: translateY(-1px);
}

.matia-avatar-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
}

.matia-icon { width: 100%; height: 100%; display: block; }


/* === SECTIONS === */
.section { padding: 100px 0; }
.section-alt { background: transparent; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    display: block;
    font-size: 11px;
    color: #F5C518;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    letter-spacing: -0.03em;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
    border-color: rgba(0, 113, 227, 0.32);
    transform: translateY(-4px);
    box-shadow:
        0 8px 40px rgba(0, 102, 255, 0.14),
        0 0 0 1px rgba(0, 102, 255, 0.07);
}

.service-icon {
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.service-card > p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.service-list li {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 14px;
    position: relative;
}

.service-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* === STATS === */
.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.stat { text-align: center; padding: 0 48px; }

.stat-number {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 130px;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 56px;
    background: var(--border);
}

/* === FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 18px;
}

.feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

/* === PROCESS === */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step-number {
    font-size: 52px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    line-height: 1;
}

.step h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.step-arrow {
    font-size: 20px;
    color: var(--text-muted);
    opacity: 0.25;
    margin-top: 32px;
    flex-shrink: 0;
}

/* === TESTIMONIALS === */
.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.carousel-track-wrap {
    overflow: hidden;
    flex: 1;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
    min-width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 64px;
    text-align: center;
}

.testimonial-stars {
    display: block;
    color: #FBBC05;
    font-size: 22px;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.testimonial-text {
    display: block;
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-primary);
    line-height: 1.75;
    margin: 0 auto 28px;
    max-width: 700px;
    font-style: italic;
}

.testimonial-name {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    border-color: rgba(139, 26, 26, 0.4);
    color: var(--accent);
    background: rgba(139, 26, 26, 0.06);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent);
    width: 22px;
}

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

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    font-size: 17px;
    color: var(--text-muted);
    margin: 20px 0 40px;
    line-height: 1.7;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}

a.contact-value:hover { color: var(--accent); }

.maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.2s;
}
.maps-btn:hover { opacity: 0.65; }

.contact-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 56px; }

.contact-actions-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.whatsapp-btn, .social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.whatsapp-btn {
    background: var(--green);
    color: #fff;
}
.whatsapp-btn:hover { background: var(--green-hover); transform: translateY(-1px); }

.whatsapp-btn-outline {
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
}
.whatsapp-btn-outline:hover { background: rgba(37, 211, 102, 0.08); }

.social-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.social-btn:hover { color: var(--text-primary); border-color: var(--border-hover); }

/* === CHAT WIDGET === */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    z-index: 200;
    border-radius: 20px;
    overflow: hidden;
    background: #12121e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.75), 0 0 0 1px rgba(0,100,255,0.07);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

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

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 14px 16px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 170, 255, 0.3);
    display: flex;
}

.chat-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.chat-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 7px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.chat-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    max-height: 360px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    max-width: 100%;
}

.chat-msg.bot  { flex-direction: row; }
.chat-msg.user { flex-direction: row-reverse; }

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 170, 255, 0.2);
    display: flex;
}

.chat-bubble {
    max-width: 78%;
    padding: 10px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
}

.chat-msg.bot .chat-bubble {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-items: center;
}
.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aaa;
    animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
    30%           { transform: translateY(-6px); opacity: 1;   }
}

.chat-footer {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.chat-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px 4px 4px 12px;
    transition: border-color 0.2s;
}

.chat-input-wrap:focus-within {
    border-color: rgba(0, 150, 255, 0.35);
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font);
    padding: 8px 0;
    min-width: 0;
}

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

.chat-send {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.chat-send:hover:not(:disabled) { background: var(--accent-hover); }
.chat-send:disabled { opacity: 0.35; cursor: default; }

.chat-wa-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 7px 12px;
    margin-bottom: 8px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    justify-content: center;
}
.chat-wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }

/* Floating trigger */
.chat-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(0, 170, 255, 0.25);
    background: #0d0d1a;
    cursor: pointer;
    z-index: 199;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 100, 220, 0.35), 0 0 0 1px rgba(0, 150, 255, 0.12);
    transition: all 0.25s ease;
    overflow: hidden;
    padding: 0;
}

.chat-trigger:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 32px rgba(0, 100, 220, 0.55);
    border-color: rgba(0, 170, 255, 0.45);
}

.chat-trigger.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* === FOOTER === */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    display: block;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 4px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 860px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }

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

    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-actions { padding-top: 0; }
}

@media (max-width: 680px) {
    .testimonial-card { padding: 36px 28px; }
    .carousel-btn { display: none; }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: calc(var(--nav-h) + 40px) 24px 60px;
        gap: 40px;
    }
    .hero-subtitle { max-width: 100%; }
    .hero-actions { align-items: center; }
    .hero-actions-row { justify-content: center; }
    .hero-inner { flex-direction: column; align-items: center; }
    .hero-logo-side { width: 100%; justify-content: center; padding-top: 0; }

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

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .step { width: 100%; max-width: 400px; }
    .step-arrow { transform: rotate(90deg); margin: 0; }

    .stat-divider { width: 60px; height: 1px; }
    .stat { padding: 20px 24px; }
}

@media (max-width: 560px) {
    .stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        margin-bottom: 48px;
    }
    .stat-divider { display: none; }
    .stat { padding: 0 8px; }
    .stat-number { font-size: 36px; }
    .stat-label { font-size: 12px; max-width: none; }
}

@media (max-width: 500px) {
    .features-grid { grid-template-columns: 1fr; }

    .footer-content { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 400px) {
    .testimonial-card { padding: 28px 20px; }
    .testimonial-text { font-size: 15px; }

    .hero-title { font-size: 38px; }
    .hero-actions { align-items: stretch; }
    .hero-actions-row { flex-direction: column; }
    .hero-actions-row .btn { width: 100%; justify-content: center; }
    .hero-actions .btn { justify-content: center; }
    .whatsapp-btn, .social-btn { font-size: 14px; padding: 15px 16px; }
    .service-card { padding: 28px 24px; }
    .step { padding: 28px 20px; }
    .chat-widget { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
    .chat-trigger { right: 16px; bottom: 16px; }
}

/* === WATERMARK PARALLAX === */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48vw;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    will-change: transform;
    /* Desatura el rojo/amarillo del logo original para que no compita con el azul del sitio */
    filter: grayscale(40%) brightness(0.9);
}
.watermark img {
    width: 100%;
    height: auto;
    display: block;
}

/* === SCROLL ANIMATIONS === */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--stagger, 0ms);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease;
    transition-delay: var(--stagger, 0ms);
}
.fade-in.visible { opacity: 1; }

.slide-right {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--stagger, 0ms);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

.slide-left {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--stagger, 0ms);
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

.scale-up {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--stagger, 0ms);
}
.scale-up.visible { opacity: 1; transform: scale(1); }

/* === HERO — FADE-IN AL CARGAR (de arriba hacia abajo) === */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow  { animation: heroFadeIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.10s both; }
.hero-title    { animation: heroFadeIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.28s both; }
.hero-subtitle { animation: heroFadeIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.48s both; }
.hero-actions  { animation: heroFadeIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.68s both; }


/* Nav y chat ya tienen sus z-index — el watermark (z-index: 0) queda
   sobre el contenido no posicionado pero pointer-events: none lo hace transparente a clics */

.trust-bar {
  padding: 1rem 0;
}
.trust-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 0 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #aaa;
}
.trust-divider { display: none; }

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #8B1A1A;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-source {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* === FAQ === */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 0.5px solid #2a2a2a; border-radius: 10px; overflow: hidden; }
.faq-question { width: 100%; background: transparent; border: none; color: #fff; font-size: 15px; font-weight: 500; padding: 1.25rem 1.5rem; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background 0.2s; }
.faq-question:hover { background: #111; }
.faq-question[aria-expanded="true"] { color: #F5C518; }
.faq-icon { font-size: 20px; flex-shrink: 0; transition: transform 0.3s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer p { padding: 0 1.5rem 1.25rem; color: #aaa; font-size: 14px; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 200px; }

/* === QUIEN SOY === */
.quien-soy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; position: relative; z-index: 1; }
.foto-matias { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 3/4; filter: grayscale(20%); }
.quien-soy-text { color: #aaa; font-size: 15px; line-height: 1.8; margin-bottom: 1rem; }
.quien-soy-pilares { display: flex; flex-direction: column; gap: 8px; margin-top: 1.5rem; }
.pilar { font-size: 14px; color: #ddd; display: flex; align-items: center; gap: 8px; }
.pilar-icon { color: #F5C518; font-weight: 700; }
.antes-despues { margin-top: 2rem; position: relative; z-index: 1; }
.antes-despues-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; }
.ad-item img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 16/9; }
.ad-label { text-align: center; font-size: 13px; color: #888; margin-top: 8px; }
.ad-arrow { font-size: 32px; color: #F5C518; text-align: center; }

@media (max-width: 768px) {
  .quien-soy-grid { grid-template-columns: 1fr; gap: 2rem; }
  .antes-despues-grid { grid-template-columns: 1fr; }
  .ad-arrow { transform: rotate(90deg); }
}

/* === NO FADE === */
.no-fade { opacity: 1 !important; transform: none !important; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 480px; }
.hero-actions-row { display: flex; gap: 12px; width: 100%; }
.hero-actions-row .btn { flex: 1; justify-content: center; }