:root {
    --brand:        #60a5fa;
    --brand-dk:     #3b82f6;
    --brand-soft:   rgba(96, 165, 250, 0.22);
    --brand-bg:     rgba(96, 165, 250, 0.10);

    --bg:           #0a1730;
    --bg-alt:       #0d1f3d;
    --card:         #112748;
    --card-elev:    #16315a;

    --ink:          #f1f5f9;
    --text:         #cbd5e1;
    --muted:        #94a3b8;

    --line:         rgba(255, 255, 255, 0.10);
    --line-soft:    rgba(255, 255, 255, 0.06);

    --white:        #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

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

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

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

ul { list-style: none; }

/* ---------- LAYOUT ---------- */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow { max-width: 880px; }

.section { padding: 80px 0; }
.section-white { background: var(--bg-alt); }
.section-soft  { background: var(--bg); }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-title {
    margin-top: 12px;
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}
.section-desc {
    margin-top: 20px;
    font-size: 1.125rem;
    color: var(--text);
}
.text-accent { color: var(--brand); }

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--brand-soft);
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
    letter-spacing: 0.18em;
}
.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand);
    color: #0a1730;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.28);
    transition: all 0.25s ease;
    font-size: 1rem;
    cursor: pointer;
}
.btn-primary:hover {
    background: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(96, 165, 250, 0.42);
}

/* ---------- HEADER / NAV ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    background: rgba(10, 23, 48, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--line-soft);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
}
.nav {
    width: 100%;
    padding: 0 48px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}
.logo:hover .logo-text { color: var(--brand); }
.logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ink);
    transition: color 0.2s ease;
}
.logo-text-light { color: var(--ink); }
.logo-accent { color: var(--brand); }
.logo-accent-light { color: var(--brand); }

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--brand); }
.nav-cta {
    margin-left: 8px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.30);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--text);
}
.nav-toggle:hover { background: var(--line-soft); }

.nav-mobile {
    display: none;
    background: var(--bg-alt);
    border-top: 1px solid var(--line-soft);
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
.nav-mobile-cta {
    margin-top: 8px;
    padding: 14px;
    justify-content: center;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 160px 20px 144px;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -10;
    background:
        linear-gradient(to bottom,
            rgba(10, 23, 48, 0.48),
            rgba(10, 23, 48, 0.60) 60%,
            rgba(10, 23, 48, 0.92)),
        url('imagen3fondo.jpg') center / cover no-repeat;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    z-index: -10;
    pointer-events: none;
}
.hero-blob-1 {
    top: -96px;
    right: -96px;
    width: 384px;
    height: 384px;
    background: rgba(96, 165, 250, 0.30);
}
.hero-blob-2 {
    top: 160px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: rgba(59, 130, 246, 0.22);
}
.hero-content {
    max-width: 720px;
    margin: 0 auto;
    animation: slide-up 0.7s ease-out both;
}
.hero-title {
    margin-top: 24px;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--ink);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-desc {
    margin-top: 24px;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text);
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- PROCESO ---------- */
.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.proceso-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.proceso-card:hover {
    background: var(--card-elev);
    border-color: var(--brand-soft);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.30);
}
.proceso-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--brand);
    color: #0a1730;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    width: fit-content;
}
.proceso-titulo {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
}
.proceso-desc {
    margin-top: 12px;
    color: var(--text);
    line-height: 1.6;
}

.proceso-card-cta {
    position: relative;
    overflow: hidden;
    background: var(--brand);
    color: #0a1730;
    border-color: transparent;
}
.proceso-card-cta:hover {
    background: var(--brand);
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(96, 165, 250, 0.40);
}
.proceso-num-cta {
    position: relative;
    background: #0a1730;
    color: var(--brand);
}
.proceso-card-cta .proceso-titulo,
.proceso-card-cta .proceso-desc { position: relative; color: #0a1730; }
.proceso-desc-cta { opacity: 0.85; }
.cta-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.cta-blob-1 { top: -48px; right: -48px; width: 176px; height: 176px; }
.cta-blob-2 { bottom: -80px; left: -48px; width: 208px; height: 208px; }
.cta-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    color: #0a1730;
    font-weight: 800;
    width: fit-content;
    transition: gap 0.25s ease;
}
.cta-link:hover { gap: 12px; }

/* ---------- TESTIMONIALES ---------- */
.testi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .testi-grid { grid-template-columns: 1fr 1fr; }
}
.testi-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.testi-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
    border-color: var(--brand-soft);
}
.testi-quote {
    position: absolute;
    top: 12px;
    right: 24px;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--brand-soft);
    user-select: none;
    pointer-events: none;
}
.testi-tag {
    display: inline-block;
    background: var(--brand-bg);
    color: var(--brand);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}
.testi-text {
    margin-top: 20px;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.6;
}
.testi-author {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.testi-name {
    font-weight: 800;
    color: var(--ink);
}
.testi-role {
    margin-top: 2px;
    font-size: 0.875rem;
    color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item:hover { border-color: var(--brand-soft); }
.faq-item.is-open {
    border-color: var(--brand-soft);
    background: var(--card-elev);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}
.faq-question {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--ink);
}
.faq-q-text {
    display: flex;
    align-items: center;
    gap: 12px;
}
.faq-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--brand);
    border: 1px solid var(--brand-soft);
    font-size: 0.8125rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.faq-item.is-open .faq-num {
    background: var(--brand);
    color: #0a1730;
    border-color: var(--brand);
}
.faq-icon {
    color: var(--brand);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: grid;
    place-items: center;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}
.faq-answer > p {
    overflow: hidden;
    padding: 0 24px 0 64px;
}
.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}
.faq-item.is-open .faq-answer > p {
    padding-bottom: 24px;
    color: var(--text);
    line-height: 1.6;
}

/* ---------- CONTACTO ---------- */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: stretch;
    padding-top: 24px;
}
@media (min-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 64px;
    }
}
.contacto-info {
    display: flex;
    flex-direction: column;
}
.contacto-info .section-title {
    text-align: left;
    margin-top: 12px;
}
.contacto-desc {
    margin-top: 20px;
    color: var(--text);
    font-size: 1.125rem;
}
.contacto-map {
    margin-top: 32px;
    flex: 1;
    min-height: 320px;
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}
.contacto-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(0.92) hue-rotate(180deg) brightness(0.95) saturate(0.7);
    transition: filter 0.4s ease;
}
.contacto-map:hover iframe {
    filter: invert(0.85) hue-rotate(180deg) brightness(1) saturate(0.85);
}

.contacto-card {
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.contacto-card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-bg);
    color: var(--brand);
    flex-shrink: 0;
}
.contacto-card-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.contacto-card-text {
    margin-top: 4px;
    font-weight: 800;
    color: var(--ink);
}

/* ---------- FORM ---------- */
.form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.label-opt { font-weight: 400; color: var(--muted); }
.form input,
.form select,
.form textarea {
    width: 100%;
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--muted); }
.form select { color: var(--ink); appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}
.form textarea { resize: vertical; min-height: 100px; }
.form-submit {
    width: 100%;
    border-radius: 16px;
    padding: 16px;
}
.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.form-note {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #060f24;
    color: var(--text);
    border-top: 1px solid var(--line-soft);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-desc {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 320px;
}
.footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.footer-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
}
.footer-list a { transition: color 0.2s ease; }
.footer-list a:hover { color: var(--ink); }
.footer-muted { color: var(--muted); margin-top: 8px; }
.footer-strong { color: var(--ink); font-weight: 600; }

.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
}
@media (min-width: 768px) {
    .footer-bottom-inner { flex-direction: row; }
}

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
    animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { background: #1ebe5d; transform: scale(1.05); }
.wa-float.is-hidden { display: none; }
@keyframes wa-pulse {
    0%   { box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- FADE IN ON SCROLL ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition-property: opacity, transform;
    transition-duration: 0.7s;
    transition-timing-function: ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e3a6b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2e5092; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .nav { padding: 0 20px; height: 80px; }
    .nav-desktop { display: none; }
    .nav-toggle { display: grid; }
    .logo-text { font-size: 1.125rem; }
    .logo-icon { width: 40px; height: 40px; }

    .hero { padding: 112px 20px 96px; }
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 44px; }

    .proceso-card, .testi-card, .form { padding: 24px; border-radius: 20px; }
    .faq-question { padding: 18px 18px; }
    .faq-item.is-open .faq-answer > p { padding-left: 60px; }
    .testi-text { font-size: 1rem; }

    .contacto-info .section-title { text-align: center; }
    .contacto-info .eyebrow { display: block; text-align: center; }
    .contacto-desc { text-align: center; }
    .contacto-card { margin-left: auto; margin-right: auto; max-width: 360px; }

    .wa-float { bottom: 16px; right: 16px; width: 56px; height: 56px; }
}
