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

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

:root {
    --navy:      #002B5C;
    --navy-dark: #001A3A;
    --blue:      #0057A8;
    --accent:    #0099E6;
    --white:     #FFFFFF;
    --off-white: #F4F6F9;
    --gray-100:  #EDF0F4;
    --gray-200:  #DDE2EA;
    --gray-400:  #8E9BB0;
    --gray-600:  #4A5568;
    --gray-800:  #1A202C;
    --shadow:    0 2px 12px rgba(0,43,92,0.10);
    --shadow-lg: 0 8px 40px rgba(0,43,92,0.14);
    --r:         6px;
    --r-lg:      10px;
    --ease:      all 0.28s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--gray-800); background: var(--white); line-height: 1.6; overflow-x: hidden; }

/* ── TOPBAR ─────────────────────────────────── */
.topbar { background: var(--navy-dark); padding: 0.4rem 2.5rem; display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; }
.topbar a { color: rgba(255,255,255,0.55); font-size: 0.78rem; text-decoration: none; display: flex; align-items: center; gap: 0.35rem; transition: color 0.2s; }
.topbar a:hover { color: var(--accent); }
.topbar svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── NAVBAR ──────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 900; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0 2.5rem; height: 72px; display: flex; align-items: center; gap: 0; box-shadow: var(--shadow); }
.navbar__logo { margin-right: auto; }
.navbar__logo img { height: 46px; width: auto; display: block; }
.navbar__links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.navbar__links a { color: var(--gray-600); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 0.9rem; border-radius: var(--r); transition: var(--ease); }
.navbar__links a:hover, .navbar__links a.active { color: var(--blue); background: var(--gray-100); }
.navbar__cta { background: var(--blue) !important; color: var(--white) !important; padding: 0.55rem 1.4rem !important; border-radius: 4px !important; font-weight: 600 !important; margin-left: 0.5rem; }
.navbar__cta:hover { background: var(--navy) !important; color: var(--white) !important; }
.li-lang { list-style: none; display: flex; align-items: center; margin-left: 0.75rem; }
.lang-sw { display: flex; align-items: center; gap: 2px; border: 1px solid var(--gray-200); border-radius: 5px; overflow: hidden; }
.lang-sw a { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-decoration: none; padding: 0.3rem 0.55rem; transition: all 0.2s; letter-spacing: 0.04em; }
.lang-sw a:hover { color: var(--blue); background: var(--gray-100); }
.lang-sw a.lang-on { color: var(--white); background: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--ease); }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 1rem 2rem 1.5rem; z-index: 899; box-shadow: var(--shadow-lg); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: var(--gray-600); text-decoration: none; padding: 0.8rem 0; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--gray-100); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--blue); }

/* ── IMAGE PLACEHOLDER ───────────────────────── */
.img-ph { position: relative; background: linear-gradient(145deg,#0B1D3A 0%,#142B56 55%,#1B3876 100%); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.img-ph::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,180,255,0.055) 1.5px,transparent 1.5px); background-size: 22px 22px; }
.img-ph-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.22); }
.img-ph-inner svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.img-ph-inner span { font-size: 0.72rem; letter-spacing: 0.05em; }

/* ── SECTION COMMONS ─────────────────────────── */
section { padding: 96px 2.5rem; }
.container { max-width: 1160px; margin: 0 auto; }
.s-label { display: inline-block; color: var(--blue); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.s-title { font-size: clamp(1.9rem,3.5vw,2.8rem); font-weight: 800; color: var(--navy); line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 1rem; }
.s-sub { font-size: 1.05rem; color: var(--gray-600); line-height: 1.75; }
.s-header { margin-bottom: 3.5rem; }

/* ── BUTTONS ─────────────────────────────────── */
.btn-solid { background: var(--accent); color: #FFF; padding: 0.9rem 2.2rem; border-radius: 4px; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--ease); border: 2px solid var(--accent); font-family: 'Inter',sans-serif; cursor: pointer; }
.btn-solid:hover { background: #007BC4; border-color: #007BC4; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,153,230,0.35); }
.btn-navy { background: var(--navy); color: var(--white); padding: 0.9rem 2.2rem; border-radius: 4px; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--ease); border: 2px solid var(--navy); font-family: 'Inter',sans-serif; }
.btn-navy:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #FFF; padding: 0.9rem 2.2rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; border: 2px solid rgba(255,255,255,0.4); transition: var(--ease); }
.btn-ghost:hover { border-color: #FFF; background: rgba(255,255,255,0.08); }

/* ── CTA STRIP ───────────────────────────────── */
.strip { background: var(--navy-dark); padding: 3rem 2.5rem; }
.strip-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.strip-text h3 { font-size: 1.45rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.strip-text p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.strip-btn { background: var(--accent); color: var(--white); padding: 0.85rem 2rem; border-radius: 4px; font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--ease); flex-shrink: 0; }
.strip-btn:hover { background: #007BC4; transform: translateY(-1px); }
.strip-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── FOOTER ──────────────────────────────────── */
footer { background: var(--navy-dark); padding: 3.5rem 2.5rem 2rem; }
.foot-top { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; }
.foot-brand img { height: 42px; margin-bottom: 1rem; background: white; padding: 5px 10px; border-radius: 6px; display: block; }
.foot-brand p { color: rgba(255,255,255,0.38); font-size: 0.84rem; line-height: 1.75; max-width: 290px; }
.foot-col h4 { color: white; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.foot-col ul a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.foot-col ul a:hover { color: #5EC8FF; }
.foot-bottom { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.foot-bottom p { color: rgba(255,255,255,0.25); font-size: 0.8rem; }
.foot-rfc { color: rgba(255,255,255,0.18); font-size: 0.75rem; font-family: monospace; }

/* ── BREADCRUMB ──────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }
.breadcrumb strong { color: rgba(255,255,255,0.88); }

/* ── RELATED SERVICE CARDS ───────────────────── */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.rel-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 1.5rem; text-decoration: none; transition: var(--ease); display: block; }
.rel-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.rel-ico { width: 44px; height: 44px; border-radius: var(--r); background: var(--gray-100); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: var(--ease); }
.rel-card:hover .rel-ico { background: var(--navy); }
.rel-ico svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.28s; }
.rel-card:hover .rel-ico svg { stroke: var(--white); }
.rel-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.rel-card p { font-size: 0.83rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 0.75rem; }
.rel-more { font-size: 0.82rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 0.3rem; }
.rel-more svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── OFFER CARDS (service pages) ─────────────── */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.offer-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 1.75rem; transition: var(--ease); }
.offer-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.offer-ico { width: 48px; height: 48px; border-radius: var(--r); background: var(--gray-100); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; transition: var(--ease); }
.offer-card:hover .offer-ico { background: var(--navy); }
.offer-ico svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.28s; }
.offer-card:hover .offer-ico svg { stroke: var(--white); }
.offer-card h4 { font-size: 0.97rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.offer-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; text-align: justify; }

/* ── OVERVIEW (service pages) ────────────────── */
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ov-text h2 { font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.ov-text p { color: var(--gray-600); line-height: 1.8; font-size: 0.975rem; margin-bottom: 0.9rem; text-align: justify; }
.ov-text p:last-of-type { margin-bottom: 1.75rem; }
.ov-list { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ov-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: var(--gray-600); line-height: 1.5; }
.ov-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 0.42rem; }
.ov-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; }

/* SERVICE PAGE HERO */
.svc-hero { background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 5rem 2.5rem; position: relative; overflow: hidden; }
.svc-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.035) 1px,transparent 1px); background-size: 32px 32px; }
.svc-hero-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }
.svc-hero h1 { font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 800; color: white; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.1rem; }
.svc-hero h1 em { font-style: normal; color: #5EC8FF; }
.svc-hero p { font-size: 1.12rem; color: rgba(255,255,255,0.7); max-width: 560px; line-height: 1.8; margin-bottom: 2rem; }
.svc-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* GALLERY (service pages) */
.gal3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.gal3-item { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; }
.gal3-item .img-ph { height: 100%; }

/* PROCESS STEPS */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.proc-step { text-align: center; padding: 1.5rem 1rem; }
.proc-num { width: 52px; height: 52px; border-radius: 50%; background: var(--gray-100); border: 2px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; color: var(--navy); margin: 0 auto 1rem; }
.proc-step h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.proc-step p { font-size: 0.83rem; color: var(--gray-600); line-height: 1.6; text-align: justify; }

/* ── FADE IN ─────────────────────────────────── */
.fi { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fi.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
    .topbar { display: none; }
    .foot-top { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1/-1; }
    .rel-grid { grid-template-columns: 1fr 1fr; }
    .ov-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .gal3 { grid-template-columns: 1fr 1fr; }
    .gal3-item:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
    section { padding: 64px 1.25rem; }
    .navbar { padding: 0 1.25rem; }
    .navbar__links { display: none; }
    .hamburger { display: flex; }
    .foot-top { grid-template-columns: 1fr; }
    .rel-grid { grid-template-columns: 1fr; }
    .strip { padding: 2rem 1.25rem; }
    .svc-hero { padding: 3.5rem 1.25rem; }
    .gal3 { grid-template-columns: 1fr; }
    .gal3-item:last-child { grid-column: 1; }
    .process-grid { grid-template-columns: 1fr 1fr; }
}

/* ── IMÁGENES ─────────────────────────────────── */
.hero-img-main img, .hero-img-sm img, .nos-img img,
.svc-thumb img, .ov-img img,
.gal-a img, .gal-b img, .gal-c img,
.gal3-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
