/* ==========================================================================
   AgentesInmo - Estilos
   Tema oscuro con acentos azules · Mobile-first
   ========================================================================== */

:root {
    --bg:        #050b18;
    --bg-soft:   #0a1324;
    --surface:   #0e1a30;
    --surface-2: #122442;
    --border:    rgba(96, 165, 250, 0.14);
    --border-strong: rgba(96, 165, 250, 0.30);

    --primary:   #2563eb;
    --primary-2: #3b82f6;
    --sky:       #38bdf8;
    --primary-light: #93c5fd;

    --text:      #e6edf7;
    --text-soft: #a3b4cf;
    --text-mute: #7186a8;

    --radius:    14px;
    --radius-lg: 20px;

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Sora', 'Inter', system-ui, sans-serif;

    --shadow:    0 18px 50px -18px rgba(0, 0, 0, 0.65);
    --header-h:  72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.2;
    margin: 0 0 0.6em;
    color: #fff;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-soft); }

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: #fff; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
}

.container-narrow { width: min(780px, 100% - 2.5rem); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--sky) 130%);
    color: #fff;
    box-shadow: 0 10px 28px -10px rgba(37, 99, 235, 0.7);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 14px 34px -10px rgba(56, 189, 248, 0.75);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--sky); color: #fff; background: rgba(56, 189, 248, 0.08); }

.btn-lg  { padding: 0.95rem 2rem; font-size: 1rem; }
.btn-sm  { padding: 0.55rem 1.2rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(5, 11, 24, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(5, 11, 24, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
}
.logo:hover { color: #fff; }

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.logo-img-footer { height: 56px; }

.logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav a:not(.btn) {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 420px at 82% 18%, rgba(37, 99, 235, 0.28), transparent 65%),
        radial-gradient(560px 380px at 12% 82%, rgba(56, 189, 248, 0.16), transparent 60%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.eyebrow {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.1rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.grad {
    background: linear-gradient(120deg, var(--sky), var(--primary-2) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    max-width: 34rem;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    color: var(--text-mute);
    font-size: 0.88rem;
}
.hero-trust li { display: flex; align-items: center; gap: 0.45rem; }
.hero-trust li::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 10px var(--sky);
    flex-shrink: 0;
}

/* Hero visual: mockup de chat */
.hero-visual { position: relative; }

.mockup {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }
.mockup-title { margin-left: 0.5rem; font-size: 0.8rem; color: var(--text-mute); }

.mockup-body { padding: 1.1rem; display: grid; gap: 0.7rem; }

.chat-bubble {
    max-width: 85%;
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}
.chat-bubble.in {
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-bottom-left-radius: 4px;
    justify-self: start;
    color: var(--text);
}
.chat-bubble.out {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-bottom-right-radius: 4px;
    justify-self: end;
    color: var(--text);
}
.chat-time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    color: var(--text-mute);
    text-align: right;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #6ee7b7;
    font-size: 0.8rem;
    font-weight: 500;
}

.pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    50%      { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}

.hero-card {
    position: absolute;
    display: grid;
    gap: 0.1rem;
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    background: rgba(14, 26, 48, 0.92);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}
.hero-card-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(120deg, var(--sky), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-card-label { font-size: 0.75rem; color: var(--text-mute); }
.hero-card-1 { top: -1.1rem; right: -0.6rem; }
.hero-card-2 { bottom: -1.2rem; left: -0.8rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-alt {
    background: linear-gradient(180deg, rgba(10, 19, 36, 0) 0%, var(--bg-soft) 12%, var(--bg-soft) 88%, rgba(10, 19, 36, 0) 100%);
}

.section-head {
    max-width: 640px;
    margin: 0 auto clamp(2.2rem, 4vw, 3.2rem);
    text-align: center;
}
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-sub { font-size: 1.03rem; }

/* ---------- Cards (problema) ---------- */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.card {
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.card-icon {
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.14);
    color: var(--sky);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.feature {
    padding: 1.7rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 16px 40px -20px rgba(37, 99, 235, 0.55);
}

.feature-icon {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(56, 189, 248, 0.12));
    color: var(--sky);
    border: 1px solid var(--border-strong);
}
.feature-icon svg { width: 23px; height: 23px; }

.feature p { margin: 0; font-size: 0.94rem; }

/* ---------- Pasos ---------- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    counter-reset: none;
}

.step {
    position: relative;
    padding: 1.7rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    gap: 1rem;
}

.step-num {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--sky));
    box-shadow: 0 8px 22px -8px rgba(37, 99, 235, 0.8);
}

.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.93rem; }

/* ---------- Precios ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.7rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
    border-color: rgba(56, 189, 248, 0.55);
    background: linear-gradient(170deg, rgba(37, 99, 235, 0.16), var(--surface) 45%);
    box-shadow: 0 24px 60px -24px rgba(37, 99, 235, 0.65);
    transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--sky));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.9);
}

.plan-name { font-size: 1.35rem; margin-bottom: 0.4rem; }
.plan-desc { font-size: 0.9rem; min-height: 3.2em; }

.plan-price {
    display: grid;
    gap: 0.2rem;
    margin: 1rem 0 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border);
}
.price-main {
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.price-main small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-mute);
    margin-left: 0.2rem;
}
.price-setup { font-size: 0.84rem; color: var(--text-mute); }

.plan-features {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}
.plan-features svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin-top: 0.18rem;
    color: var(--sky);
}

.plan-cta { margin-top: auto; }

/* ---------- Testimonios ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    padding: 1.7rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.testimonial-featured {
    border-color: rgba(56, 189, 248, 0.4);
    background: linear-gradient(170deg, rgba(37, 99, 235, 0.12), var(--surface) 50%);
}

.stars {
    display: flex;
    gap: 0.18rem;
    margin-bottom: 0.9rem;
    color: #fbbf24;
}
.stars svg { width: 17px; height: 17px; }

.testimonial-quote {
    position: relative;
    margin: 0 0 1.3rem;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-quote::before {
    content: '\201C';
    display: block;
    font-family: var(--font-head);
    font-size: 2.6rem;
    line-height: 0.6;
    margin-bottom: 0.55rem;
    background: linear-gradient(135deg, var(--sky), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--sky));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-meta strong {
    display: block;
    font-size: 0.92rem;
    color: #fff;
    font-weight: 600;
}

.testimonial-meta span {
    font-size: 0.8rem;
    color: var(--text-mute);
    line-height: 1.4;
    display: block;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.9rem; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
    position: relative;
    padding: 1.1rem 3rem 1.1rem 1.3rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, 0.03); }

.faq-item summary::after {
    content: '';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    width: 10px; height: 10px;
    border-right: 2px solid var(--sky);
    border-bottom: 2px solid var(--sky);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(225deg); }

.faq-item p {
    margin: 0;
    padding: 0 1.3rem 1.25rem;
    font-size: 0.95rem;
}

/* ---------- Formulario ---------- */
.contact-form {
    display: grid;
    gap: 1.1rem;
    padding: clamp(1.5rem, 4vw, 2.2rem);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.form-group { display: grid; gap: 0.4rem; }

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: rgba(5, 11, 24, 0.6);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-mute); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23a3b4cf' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    padding-right: 2.4rem;
}
.form-group select option { background: var(--surface-2); color: var(--text); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-soft);
}
.form-check input {
    width: 18px; height: 18px;
    margin-top: 0.18rem;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.form-note {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-mute);
}

/* Honeypot: oculto a usuarios y lectores de pantalla */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ---------- Alertas ---------- */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}
.alert strong { display: block; margin-bottom: 0.15rem; }
.alert-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}
.alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 3.2rem 0 1.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 2rem;
    padding-bottom: 2.2rem;
}

.footer-brand p {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    max-width: 26rem;
}

.footer-col h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-mute);
    margin-bottom: 1rem;
}

.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-soft); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }

.footer-cta { margin-top: 1.1rem; }

.footer-bottom {
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
}
.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-mute);
}

/* ---------- Páginas legales ---------- */
.legal-content {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.legal-content h1 { margin-bottom: 1.5rem; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-content p, .legal-content li { font-size: 0.96rem; }
.legal-content ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.4rem; color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
    .cards-3, .features-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .pricing-card.featured { transform: none; order: -1; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .logo-img { height: 52px; }
    .logo-img-footer { height: 46px; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: rgba(5, 11, 24, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 1.2rem 1.25rem 1.6rem;
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }
    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .site-nav a:not(.btn) {
        display: block;
        padding: 0.75rem 0.4rem;
        font-size: 1rem;
    }
    .site-nav .btn { margin-top: 0.6rem; width: 100%; }

    .hero-card-1 { top: -0.8rem; right: 0; }
    .hero-card-2 { bottom: -0.9rem; left: 0; }

    .cards-3, .features-grid, .steps, .testimonials-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
