@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* CAMBIO: capa visual multipage, logo mejorado, home refinada y asistente SEIA. */

:root {
    --bg: #08111f;
    --bg-soft: #f7faff;
    --bg-soft-2: #eef4ff;
    --text: #162238;
    --muted: #62708a;
    --line: rgba(17, 27, 53, 0.08);
    --line-strong: rgba(12, 78, 163, 0.14);
    --primary: #0c4ea3;
    --primary-dark: #08316a;
    --accent: #12b886;
    --white: #ffffff;
    --radius: 24px;
    --radius-lg: 32px;
    --shadow: 0 28px 60px rgba(8, 17, 31, 0.12);
    --shadow-soft: 0 16px 40px rgba(8, 17, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', sans-serif; color: var(--text); background: var(--bg-soft); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 20px; top: 20px; z-index: 1000; background: var(--white); padding: 10px 14px; border-radius: 12px; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: radial-gradient(circle at top left, rgba(64, 134, 255, 0.24), transparent 30%), linear-gradient(135deg, #091427 0%, #0f2447 100%); color: var(--white); }
.section-band { padding: 24px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(18, 35, 64, 0.08); color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow--small { margin-bottom: 14px; }
h1, h2, h3, h4 { margin: 0 0 14px; font-family: 'Space Grotesk', sans-serif; line-height: 1.06; letter-spacing: -0.04em; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 54px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
p { margin: 0 0 16px; color: var(--muted); }
.section-dark p,
.section-dark li,
.section-dark .eyebrow { color: rgba(255, 255, 255, 0.84); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0 !important; border-radius: 999px !important; font-weight: 800; letter-spacing: -0.02em; transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease; box-shadow: none; cursor: pointer; }
.btn:hover,
.btn:focus { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #0c4ea3 0%, #1463c8 100%); color: var(--white); box-shadow: 0 18px 40px rgba(12, 78, 163, 0.26); }
.btn-primary:hover,
.btn-primary:focus { color: var(--white); box-shadow: 0 22px 48px rgba(12, 78, 163, 0.32); }
.btn-secondary { background: rgba(12, 78, 163, 0.08); color: var(--primary-dark); box-shadow: inset 0 0 0 1px rgba(12, 78, 163, 0.12); }
.btn-secondary:hover,
.btn-secondary:focus { color: var(--primary-dark); background: rgba(12, 78, 163, 0.14); }
.btn-full { width: 100%; }
.btn-nav { min-height: 48px; padding: 0 22px; background: linear-gradient(135deg, #0c4ea3 0%, #12b886 100%); color: var(--white); box-shadow: 0 16px 34px rgba(12, 78, 163, 0.22); }
.btn-nav:hover,
.btn-nav:focus { color: var(--white); box-shadow: 0 22px 42px rgba(12, 78, 163, 0.28); }

.site-topbar { background: linear-gradient(90deg, #07111f 0%, #0f2241 100%); color: rgba(255, 255, 255, 0.78); }
.topbar-inner { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-inner p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: rgba(247, 250, 255, 0.92); border-bottom: 1px solid rgba(17, 27, 53, 0.05); transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.site-header.is-scrolled { background: rgba(247, 250, 255, 0.78); border-bottom-color: rgba(17, 27, 53, 0.04); box-shadow: 0 18px 44px rgba(8, 17, 31, 0.10); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 0; padding: 0; border-radius: 0; background: transparent; border: 0; box-shadow: none; }
.brand-mark { display: none; }
.brand-mark::before { display: none; }
.brand-mark::after { display: none; }
.brand-mark img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 10px 18px rgba(72, 158, 255, 0.10)); }
.brand-copy { display: grid; gap: 2px; align-content: center; }
.brand-copy strong { font-family: 'Space Grotesk', sans-serif; font-size: 20px; line-height: 1.1; color: #11223d; }
.brand-copy small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700; color: #1b2b49; }
.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active { background: rgba(12, 78, 163, 0.08); color: var(--primary); }
.menu-toggle { position: relative; display: none; width: 54px; height: 54px; border: 0; border-radius: 18px; background: rgba(12, 78, 163, 0.08); padding: 0; margin-left: auto; transition: background 0.22s ease, box-shadow 0.22s ease; }
.menu-toggle span { position: absolute; left: 50%; width: 22px; height: 2px; background: var(--primary-dark); margin: 0; transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease; transform-origin: center; margin-left: -11px; }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle span:nth-child(3) { top: 34px; }
.menu-toggle.is-open { background: rgba(12, 78, 163, 0.14); box-shadow: inset 0 0 0 1px rgba(12, 78, 163, 0.12); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; min-height: calc(100vh - 136px); display: flex; align-items: center; background: var(--bg); }
.hero-media { position: absolute; inset: 0; }
.hero--with-video .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(96deg, rgba(6, 11, 20, 0.92) 0%, rgba(8, 17, 31, 0.72) 48%, rgba(8, 17, 31, 0.28) 100%), radial-gradient(circle at top left, rgba(18, 184, 134, 0.26), transparent 30%); z-index: 1; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.44; }
.hero-slide { position: absolute; inset: 0; opacity: 0; background-size: cover; background-position: center center; transform: scale(1.08); transition: opacity 0.9s ease, transform 1.4s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide__overlay { position: absolute; inset: 0; background: linear-gradient(96deg, rgba(6, 11, 20, 0.92) 0%, rgba(8, 17, 31, 0.72) 48%, rgba(8, 17, 31, 0.28) 100%), radial-gradient(circle at top left, rgba(18, 184, 134, 0.26), transparent 30%); }
.hero--with-video .hero-slide,
.hero--with-video .hero-slide.is-active { opacity: 0; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 360px); gap: 36px; align-items: center; padding: 96px 0; }
.hero-copy { max-width: 740px; }
.hero-copy .eyebrow { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.88); }
.hero-copy h1,
.hero-copy p,
.hero-copy span,
.hero-copy a { color: var(--white); }
.hero-text { font-size: clamp(17px, 2vw, 22px); max-width: 680px; color: rgba(255, 255, 255, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills span { padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.84); font-size: 13px; font-weight: 700; }
.hero-stack { display: grid; gap: 18px; }
.glass-card,
.card,
.contact-info-card,
.contact-panel,
.contact-sidebar,
.logo-card,
.gallery-card,
.policy-card,
.team-card,
.feature-band__item { border-radius: var(--radius); box-shadow: var(--shadow); }
.glass-card { padding: 24px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--white); }
.glass-card strong { display: block; font-size: 18px; margin-bottom: 8px; }
.glass-card p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.hero-metrics { display: grid; gap: 16px; }
.hero-metrics b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 24px; letter-spacing: -0.03em; }
.hero-metrics span { color: rgba(255, 255, 255, 0.72); font-size: 14px; }

.feature-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.feature-band__item { display: grid; align-content: start; gap: 14px; padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); min-height: 240px; }
.feature-band__item i,
.card-icon { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: linear-gradient(135deg, #0c4ea3 0%, #12b886 100%); color: var(--white); font-size: 24px; }
.card-icon { margin-bottom: 16px; }
.feature-band__item h2 { margin: 0; font-size: clamp(26px, 2.3vw, 38px); line-height: 1.02; }
.feature-band__item p { margin: 0; font-size: 15px; line-height: 1.72; }

.section-intro { max-width: 760px; margin-bottom: 34px; }
.section-actions { display: flex; justify-content: center; margin-top: 24px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 28px; background: var(--white); border: 1px solid var(--line); }
.service-card { min-height: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); }

.split-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.split-layout--reverse .split-copy { order: 2; }
.split-layout--reverse .team-preview { order: 1; }
.split-panel { padding: 28px; background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.12); }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel-grid article { padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); }
.panel-grid strong { display: block; margin-bottom: 10px; font-size: 18px; }
.check-list { list-style: none; margin: 22px 0 0; padding: 0; }
.check-list li { position: relative; padding: 0 0 0 28px; margin-bottom: 12px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #12b886 0%, #0c4ea3 100%); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.gallery-grid--featured { grid-auto-rows: 132px; }
.gallery-grid--featured .gallery-card { min-height: auto; }
.gallery-grid--featured .gallery-card--large { grid-column: span 2; grid-row: span 2; }
.gallery-card { position: relative; overflow: hidden; min-height: 220px; padding: 0; background: #091427; transition: transform 0.34s ease, box-shadow 0.34s ease; transform-origin: center center; isolation: isolate; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; object-position: center center; filter: grayscale(100%); transform: scale(1.03); transition: transform 0.6s ease, filter 0.45s ease; border-radius: inherit; }
.gallery-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(7, 16, 31, 0.10) 0%, rgba(7, 16, 31, 0.74) 100%); pointer-events: none; }
.gallery-card__body { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; color: var(--white); }
.gallery-card__body span { display: inline-flex; margin-bottom: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.gallery-card__body h3 { margin: 0; color: var(--white); font-size: clamp(18px, 1.7vw, 26px); }
.gallery-card:hover { transform: translateY(-8px) scale(1.06); z-index: 3; box-shadow: 0 30px 60px rgba(8, 17, 31, 0.22); }
.gallery-card:hover img { transform: scale(1.14); filter: grayscale(0%); }

.gallery-grid--featured .gallery-card:nth-child(1) img { object-position: center 26%; }
.gallery-grid--featured .gallery-card:nth-child(2) img { object-position: center center; }
.gallery-grid--featured .gallery-card:nth-child(3) img { object-position: center 42%; }
.gallery-grid--featured .gallery-card:nth-child(4) img { object-position: center 36%; }
.gallery-grid--featured .gallery-card:nth-child(5) img { object-position: center 28%; }
.gallery-grid--featured .gallery-card:nth-child(6) img { object-position: center center; }

.work-showcase { max-width: 920px; margin: 0 auto; }
.work-showcase .section-intro { max-width: 920px; margin-bottom: 22px; }
.work-showcase .section-intro p { max-width: 640px; }
.work-showcase .section-actions { margin-top: 18px; }
.work-mosaic { --s: 198px; --g: 10px; --f: 1.18; display: grid; gap: var(--g); grid-template-columns: repeat(3, auto); max-width: 860px; margin: 0 auto; aspect-ratio: 16 / 9; padding: 10px; border-radius: 28px; background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%); border: 1px solid rgba(17, 34, 61, 0.06); box-shadow: 0 18px 44px rgba(8, 17, 31, 0.07); }
.work-mosaic__item { width: 0; height: 0; min-width: 100%; min-height: 100%; margin: 0; overflow: hidden; border-radius: 18px; background: #dfe6f3; transition: width 0.35s ease, height 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, border-radius 0.35s ease; }
.work-mosaic__item img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(85%); transition: filter 0.35s ease, transform 0.35s ease; transform: scale(1.01); }
.work-mosaic__item:hover { width: calc(var(--s) * var(--f)); height: calc(var(--s) * var(--f)); z-index: 3; box-shadow: 0 24px 46px rgba(8, 17, 31, 0.16); transform: translateY(-5px); border-radius: 22px; }
.work-mosaic__item:hover img { filter: grayscale(0%); transform: scale(1.02); }

.logo-card { height: 126px; padding: 20px; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); }
.logo-card a { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.logo-card img { max-height: 72px; filter: grayscale(100%); opacity: 0.78; transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease; }
.logo-card:hover img { opacity: 1; filter: grayscale(0%); transform: scale(1.04); }

.team-preview { display: grid; gap: 16px; }
.mini-profile { display: grid; grid-template-columns: 86px 1fr; gap: 16px; align-items: center; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); }
.mini-profile img { width: 86px; height: 86px; border-radius: 22px; object-fit: cover; }
.mini-profile strong { display: block; font-size: 18px; }
.mini-profile span { color: var(--muted); }

.page-hero { position: relative; padding: 128px 0 86px; background-size: cover; background-position: center center; color: var(--white); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(96deg, rgba(6, 11, 20, 0.9) 0%, rgba(9, 20, 39, 0.7) 56%, rgba(9, 20, 39, 0.38) 100%), radial-gradient(circle at top left, rgba(18, 184, 134, 0.22), transparent 30%); }
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero .eyebrow { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.84); }
.page-hero p { color: rgba(255, 255, 255, 0.8); font-size: 18px; }
.page-hero--services { background-position: center 42%; }
.page-hero--company { background-position: center 34%; }
.page-hero--works { background-position: center 56%; }
.page-hero--team { background-position: center 44%; }

.service-detail-grid .card { min-height: 100%; }
.service-detail .check-list { margin-top: 18px; }
.process-steps { display: grid; gap: 18px; }
.process-step { padding: 20px 24px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.process-step span { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(12, 78, 163, 0.1); color: var(--primary); font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.tag-cloud span { padding: 14px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-weight: 700; }

.timeline { display: grid; gap: 20px; }
.timeline-item { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft); }
.timeline-item > span { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 18px; background: linear-gradient(135deg, #0c4ea3 0%, #12b886 100%); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

.mission-card { min-height: 100%; }
.policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
.policy-card { padding: 26px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.policy-card h3 { color: var(--white); }
.policy-card p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.signature { margin-top: 22px; color: rgba(255, 255, 255, 0.62); text-align: right; }

.team-card { background: var(--white); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.team-card img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.team-card__avatar { width: 100%; aspect-ratio: 4 / 4.6; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0c4ea3 0%, #12b886 100%); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 84px; font-weight: 700; }
.team-card__body { padding: 24px; }
.team-card__body span { display: inline-block; margin-bottom: 12px; color: var(--primary); font-weight: 800; }
.team-credentials { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.team-credentials li { position: relative; padding-left: 18px; color: var(--muted); font-size: 14px; }
.team-credentials li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #12b886 0%, #0c4ea3 100%); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 380px); gap: 24px; align-items: start; }
.contact-panel,
.contact-sidebar { padding: 30px; background: var(--white); border: 1px solid var(--line); }
.contact-sidebar { display: grid; gap: 18px; }
.contact-info-card { padding: 22px; background: linear-gradient(180deg, rgba(12, 78, 163, 0.06) 0%, rgba(18, 184, 134, 0.04) 100%); border: 1px solid rgba(12, 78, 163, 0.08); }
.contact-info-card ul { list-style: none; margin: 18px 0 0; padding: 0; }
.contact-info-card li { margin-bottom: 12px; color: var(--text); }

.contact-form { margin-top: 22px; }
.contact-form__honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-grid,
.assistant-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 800; font-size: 14px; color: #21314f; }
.form-field input,
.form-field textarea { width: 100%; border: 1px solid rgba(18, 35, 64, 0.12); border-radius: 18px; background: #f8fbff; padding: 16px 18px; color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: rgba(12, 78, 163, 0.42); box-shadow: 0 0 0 4px rgba(12, 78, 163, 0.08); background: var(--white); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.form-actions p { margin: 0; max-width: 300px; font-size: 14px; }
.form-feedback { margin-top: 16px; }
.faq-list details { padding: 16px 0; border-bottom: 1px solid rgba(18, 35, 64, 0.08); }
.faq-list summary { cursor: pointer; font-weight: 800; color: var(--text); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin: 12px 0 0; }
#success_page,
.error_message { padding: 16px 18px; border-radius: 18px; }
#success_page { background: rgba(18, 184, 134, 0.12); color: #0b6f53; border: 1px solid rgba(18, 184, 134, 0.18); }
.error_message { background: rgba(220, 53, 69, 0.08); color: #a61d2d; border: 1px solid rgba(220, 53, 69, 0.14); }

.footer-cta { padding: 64px 0; background: linear-gradient(135deg, #0c4ea3 0%, #0f2247 100%); color: var(--white); }
.footer-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.footer-cta__inner p,
.footer-cta__inner h2,
.footer-cta__inner .eyebrow { color: var(--white); }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-cta .btn-secondary { background: rgba(255, 255, 255, 0.16); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.footer-cta .btn-secondary:hover,
.footer-cta .btn-secondary:focus { background: rgba(255, 255, 255, 0.24); color: var(--white); }
.site-footer { padding: 72px 0 26px; background: #07111f; color: rgba(255, 255, 255, 0.72); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h3 { color: var(--white); margin-bottom: 16px; }
.site-footer p,
.site-footer a,
.site-footer li { color: rgba(255, 255, 255, 0.72); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: flex-start; width: 300px; height: 148px; padding: 0; margin-bottom: 20px; overflow: visible; background: transparent; border-radius: 0; box-shadow: none; }
.footer-brand-mark::before { display: none; }
.footer-brand-mark::after { display: none; }
.footer-logo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 12px 24px rgba(72, 158, 255, 0.10)); }
.footer-group__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: transparent; color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.06; letter-spacing: -0.04em; margin: 0 0 16px; cursor: default; }
.footer-group__toggle i { display: none; }
.footer-group__content ul { list-style: none; padding: 0; margin: 0; }
.footer-group__content li { margin-bottom: 10px; }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.54); }

.floating-actions { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; gap: 12px; align-items: end; }
.floating-assistant,
.floating-whatsapp { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 18px; border-radius: 999px; color: var(--white); box-shadow: 0 20px 40px rgba(8, 17, 31, 0.18); border: 0; }
.floating-assistant { background: linear-gradient(135deg, #0f2247 0%, #0c4ea3 100%); }
.floating-assistant img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.28); }
.floating-assistant span,
.floating-whatsapp span { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.floating-whatsapp { background: linear-gradient(135deg, #10c469 0%, #0aa454 100%); font-size: 24px; justify-content: center; }

.assistant-shell { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: flex-end; visibility: hidden; pointer-events: none; }
.assistant-shell.is-open { visibility: visible; pointer-events: auto; }
.assistant-backdrop { position: absolute; inset: 0; background: rgba(7, 17, 31, 0.54); opacity: 0; transition: opacity 0.24s ease; }
.assistant-shell.is-open .assistant-backdrop { opacity: 1; }
.assistant-panel { position: relative; width: min(430px, calc(100% - 16px)); height: min(760px, calc(100vh - 24px)); margin: 12px; background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); border-radius: 30px; box-shadow: 0 30px 80px rgba(8, 17, 31, 0.22); border: 1px solid rgba(17, 27, 53, 0.08); display: flex; flex-direction: column; transform: translateY(24px); opacity: 0; transition: transform 0.26s ease, opacity 0.26s ease; overflow: hidden; }
.assistant-shell.is-open .assistant-panel { transform: translateY(0); opacity: 1; }
.assistant-header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #0c4ea3 0%, #12b886 100%); color: var(--white); }
.assistant-profile { display: flex; align-items: center; gap: 12px; }
.assistant-profile img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.3); }
.assistant-profile strong { display: block; font-size: 18px; line-height: 1.05; }
.assistant-profile span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.84); }
.assistant-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 24px; line-height: 1; cursor: pointer; }
.assistant-body { display: grid; grid-template-rows: 1fr auto auto auto; gap: 16px; padding: 18px; min-height: 0; }
.assistant-thread { display: grid; gap: 12px; align-content: start; overflow-y: auto; padding-right: 4px; }
.assistant-message { max-width: 88%; padding: 14px 16px; border-radius: 22px; font-size: 14px; line-height: 1.65; box-shadow: var(--shadow-soft); }
.assistant-message--bot { background: var(--white); border: 1px solid var(--line); color: var(--text); border-top-left-radius: 10px; }
.assistant-message--user { margin-left: auto; background: linear-gradient(135deg, #0c4ea3 0%, #1463c8 100%); color: var(--white); border-top-right-radius: 10px; }
.assistant-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.assistant-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(12, 78, 163, 0.16); background: rgba(12, 78, 163, 0.06); color: var(--primary-dark); font-weight: 800; cursor: pointer; transition: background 0.18s ease, transform 0.18s ease; }
.assistant-chip:hover,
.assistant-chip:focus { background: rgba(12, 78, 163, 0.12); transform: translateY(-1px); }
.assistant-lead-form { display: grid; gap: 14px; padding: 16px; border-radius: 24px; background: rgba(12, 78, 163, 0.05); border: 1px solid rgba(12, 78, 163, 0.1); }
.assistant-status { min-height: 24px; font-size: 14px; color: var(--muted); }

.owl-carousel .owl-stage { display: flex; }
.owl-carousel .owl-item { display: flex; height: auto; }
.owl-carousel .owl-item > div,
.owl-carousel .owl-item article { width: 100%; }
.owl-dots { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.owl-dot { display: inline-flex; align-items: center; justify-content: center; }
.owl-dot span { display: block; width: 34px; height: 4px; border-radius: 999px; background: rgba(12, 78, 163, 0.16); box-shadow: inset 0 0 0 1px rgba(12, 78, 163, 0.08); transition: width 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease; }
.owl-dot:hover span,
.owl-dot:focus span { background: rgba(12, 78, 163, 0.28); transform: translateY(-1px); }
.owl-dot.active span { width: 54px; background: linear-gradient(90deg, #0c4ea3 0%, #12b886 100%); box-shadow: 0 8px 18px rgba(12, 78, 163, 0.22); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1199px) {
    .hero-content,
    .contact-layout,
    .split-layout,
    .footer-grid { grid-template-columns: 1fr; }
    .feature-band,
    .grid-3,
    .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid--featured { grid-auto-rows: 168px; }
    .gallery-grid--featured .gallery-card--large { grid-column: span 1; grid-row: span 2; }
    .work-showcase { max-width: 860px; }
    .work-showcase .section-intro { max-width: 860px; }
    .work-mosaic { --s: 178px; --g: 9px; max-width: 780px; }
  }

@media (max-width: 991px) {
    .site-nav { position: absolute; top: calc(100% + 10px); left: 16px; right: 16px; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity 0.2s ease, transform 0.2s ease; background: rgba(248, 251, 255, 0.98); border-radius: 24px; box-shadow: var(--shadow); padding: 16px; border: 1px solid var(--line); }
    .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .site-nav ul { flex-direction: column; align-items: stretch; }
    .site-nav a { justify-content: flex-start; }
    .menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
    .btn-nav { display: none; }
    .topbar-inner { flex-direction: column; justify-content: center; padding: 10px 0; }
    .header-inner { min-height: 84px; }
    .hero { min-height: auto; }
    .hero-content,
    .page-hero { padding-top: 84px; }
    .panel-grid,
    .form-grid,
    .assistant-form-grid,
    .grid-2,
    .feature-band,
    .grid-3,
      .policy-grid,
      .gallery-grid { grid-template-columns: 1fr; }
      .gallery-grid--featured { grid-auto-rows: auto; }
      .gallery-grid--featured .gallery-card--large { grid-row: span 1; }
      .gallery-card { min-height: 250px; }
      .work-showcase { max-width: 100%; }
      .work-mosaic { --s: 180px; --g: 8px; grid-template-columns: repeat(2, auto); max-width: 100%; aspect-ratio: auto; padding: 8px; border-radius: 22px; }
      .footer-cta__inner { grid-template-columns: 1fr; }
      .brand-copy small { display: none; }
    }

  @media (max-width: 767px) {
      body.menu-open { overflow: hidden; }
      .site-topbar { display: none; }
      .section { padding: 72px 0; }
    .hero-content,
    .page-hero { padding-top: 68px; }
    .page-hero { padding-bottom: 56px; }
    .hero-actions,
    .footer-cta__actions,
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions p { max-width: none; }
    .feature-band__item,
    .card,
    .contact-panel,
    .contact-sidebar,
    .contact-info-card,
    .timeline-item,
    .mini-profile,
    .assistant-panel { border-radius: 20px; }
    .site-header { background: rgba(255, 255, 255, 0.98); }
    .header-inner { min-height: 76px; gap: 12px; }
    .brand { flex: 1 1 auto; min-width: 0; gap: 0; padding: 2px 0; border-radius: 0; }
    .brand-copy { gap: 4px; }
    .brand-copy strong { font-size: 17px; line-height: 1.04; }
    .brand-copy small { display: block; font-size: 10px; line-height: 1.35; letter-spacing: 0.12em; color: rgba(98, 112, 138, 0.96); }
    .menu-toggle { width: 50px; height: 50px; border-radius: 16px; margin-left: 0; }
    .site-nav { position: fixed; top: 88px; left: 12px; right: 12px; max-height: calc(100vh - 108px); overflow-y: auto; padding: 14px; border-radius: 26px; background: rgba(255, 255, 255, 0.98); box-shadow: 0 28px 64px rgba(8, 17, 31, 0.18); }
    .site-nav ul { gap: 4px; }
    .site-nav li { width: 100%; }
    .site-nav a { display: flex; width: 100%; min-height: 52px; padding: 0 18px; border-radius: 18px; font-size: 17px; }
    .hero-copy h1 { font-size: clamp(34px, 11vw, 48px); }
    .hero-text { font-size: 18px; }
    .hero-stack { display: none; }
    .feature-band__item { min-height: 0; padding: 22px 18px; }
      .feature-band__item h2 { font-size: 24px; }
      .feature-band__item p { font-size: 15px; }
      .section-mobile-hidden,
      .footer-cta { display: none !important; }
      .section-soft--clients { background: var(--bg) !important; }
      .section-soft--clients .eyebrow { color: rgba(255, 255, 255, 0.88); background: rgba(255, 255, 255, 0.08); }
      .section-soft--clients h2 { color: #ffffff; }
      .section-soft--clients .section-intro p { color: rgba(255, 255, 255, 0.76); }
      .section-soft--clients .logos-carousel,
      .section-soft--clients .logos-carousel .owl-stage-outer,
      .section-soft--clients .logos-carousel .owl-stage,
      .section-soft--clients .logos-carousel .owl-item { background: transparent !important; }
      .work-showcase .section-intro,
      .work-showcase .section-intro p { max-width: none; }
      .work-mosaic { --s: 100%; --g: 10px; grid-template-columns: 1fr; aspect-ratio: auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
      .work-mosaic__item { width: 100%; height: auto; min-width: 0; min-height: 220px; border-radius: 20px; }
      .work-mosaic__item:hover { width: 100%; height: auto; transform: translateY(-4px); }
      .site-footer { padding: 28px 0 calc(22px + env(safe-area-inset-bottom)); }
    .footer-grid { gap: 0; }
    .footer-brand-block,
    .footer-brand-mark { display: none; }
    .footer-group { border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .footer-group:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .footer-group__toggle { min-height: 58px; margin: 0; padding: 0; font-size: 22px; cursor: pointer; }
    .footer-group__toggle i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 15px; transition: transform 0.22s ease, background 0.22s ease; }
    .footer-group.is-open .footer-group__toggle i { transform: rotate(180deg); background: rgba(18, 184, 134, 0.16); }
    .footer-group__content { padding: 0 0 18px; }
    .footer-group__content[hidden] { display: none; }
    .footer-bottom { margin-top: 18px; padding-top: 18px; }
    .floating-actions { right: 14px; bottom: 14px; }
    .floating-assistant span,
    .floating-whatsapp span { display: none; }
    .floating-assistant,
    .floating-whatsapp { width: 58px; height: 58px; padding: 0; justify-content: center; }
    .floating-assistant img { width: 42px; height: 42px; }
    .assistant-panel { width: calc(100% - 12px); height: calc(100vh - 12px); margin: 6px; }
}
