:root {
  --blue: #2659cf;
  --blue-dark: #0a1a3d;
  --blue-deep: #06132f;
  --white: #fff;
  --mist: #f5f7fa;
  --ink: #122142;
  --muted: #66728a;
  --line: #dfe5ee;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(10, 26, 61, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, sans-serif; font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Poppins, sans-serif; line-height: 1.08; letter-spacing: 0; }
h2 { font-size: clamp(2.15rem, 4vw, 4.1rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }
em { color: var(--blue); font-style: normal; }
.container { width: min(1180px, calc(100% - 96px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { align-items: center; color: var(--blue); display: flex; font-size: .75rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 1.2rem; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.72); }
.eyebrow-dot { background: currentColor; border-radius: 50%; display: inline-block; height: 7px; margin-right: 9px; width: 7px; }
.button { align-items: center; background: var(--blue); border: 1px solid var(--blue); border-radius: 999px; color: var(--white); display: inline-flex; font-size: .88rem; font-weight: 700; gap: .7rem; justify-content: center; min-height: 54px; padding: 0 1.5rem; transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.button:hover { background: #1d49ae; border-color: #1d49ae; transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 1.15rem; }

.site-header { color: var(--white); left: 0; position: fixed; right: 0; top: 0; transition: background .35s ease, box-shadow .35s ease, color .35s ease; z-index: 10; }
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 5px 25px rgba(10,26,61,.09); color: var(--blue-dark); }
.header-inner { align-items: center; display: flex; height: 88px; justify-content: space-between; }
.brand { align-items: center; display: inline-flex; gap: .7rem; min-width: 200px; }
.brand img { background: transparent; border-radius: 0; height: 56px; object-fit: contain; width: 202px; }
.site-header .brand { height: 64px; position: relative; width: 230px; }
.site-header .brand img { background: transparent; border-radius: 0; height: 64px; inset: 0; object-fit: contain; position: absolute; width: 230px; }
.site-header .brand-logo-black { opacity: 0; }
.site-header.scrolled .brand-logo-white { opacity: 0; }
.site-header.scrolled .brand-logo-black { opacity: 1; }
.main-nav { display: flex; gap: clamp(1.2rem, 2.4vw, 2.5rem); margin-left: auto; margin-right: 2.2rem; }
.main-nav a { font-size: .82rem; font-weight: 600; position: relative; }
.main-nav a::after { background: currentColor; bottom: -7px; content: ""; height: 2px; left: 0; position: absolute; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; width: 100%; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { background: none; border: 0; color: currentColor; display: none; padding: .5rem; }
.menu-toggle > span:not(.sr-only) { background: currentColor; display: block; height: 2px; margin: 5px; transition: transform .2s ease; width: 25px; }

.hero { align-items: center; background: var(--blue-deep); color: var(--white); display: flex; min-height: min(850px, 100vh); overflow: hidden; padding-bottom: 5.5rem; position: relative; }
.hero-backdrop { background-image: linear-gradient(90deg, rgba(6,19,47,.97) 0%, rgba(6,19,47,.77) 40%, rgba(6,19,47,.13) 84%), url("../assets/Sobre%20nosotros%20-%20version%202.png"); background-position: center; background-size: cover; inset: 0; opacity: .95; position: absolute; }
.hero::after { background: linear-gradient(0deg, rgba(6,19,47,.8), transparent 30%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.hero-content { padding-top: 7rem; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 4.55rem); max-width: 780px; margin-bottom: 1.5rem; }
.hero h1 em { color: #7ba0ff; }
.hero-intro { color: rgba(255,255,255,.73); max-width: 480px; }
.hero-actions { align-items: center; display: flex; gap: 1.7rem; margin-top: 2rem; }
.whatsapp-link { align-items: center; display: flex; font-weight: 700; gap: .8rem; }
.whatsapp-link small { color: rgba(255,255,255,.62); display: block; font-size: .65rem; font-weight: 500; text-transform: uppercase; }
.whatsapp-icon { align-items: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--white); display: inline-flex; font-size: 1.4rem; height: 44px; justify-content: center; width: 44px; }
.scroll-cue { align-items: center; bottom: 2rem; color: rgba(255,255,255,.65); display: flex; font-size: .7rem; gap: .8rem; letter-spacing: .1em; position: absolute; right: 4%; text-transform: uppercase; transform: rotate(90deg); transform-origin: right center; z-index: 2; }
.scroll-cue span { background: var(--blue); display: block; height: 1px; width: 50px; }

.section-blue { background: var(--blue); color: var(--white); }
.about { padding: 8rem 0; }
.about-layout { align-items: center; display: grid; gap: clamp(3rem, 7vw, 8rem); grid-template-columns: .78fr 1fr; }
.about-image { margin-left: 2rem; position: relative; }
.about-image::before { border: 1px solid rgba(255,255,255,.45); content: ""; height: 85%; left: -18%; position: absolute; top: 8%; width: 38%; }
.about-image img { filter: grayscale(1); height: 680px; object-fit: cover; position: relative; width: 100%; }
.about-content h2 { max-width: 650px; }
.about-content > p { color: rgba(255,255,255,.8); max-width: 630px; }
.about-content strong { color: var(--white); }
.stats { border-bottom: 1px solid rgba(255,255,255,.27); border-top: 1px solid rgba(255,255,255,.27); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr 1.4fr; margin: 3rem 0 2.3rem; padding: 1.8rem 0; }
.stat { border-right: 1px solid rgba(255,255,255,.27); display: flex; flex-direction: column; padding-right: 1rem; }
.stat:last-child { border-right: 0; }
.stat strong { font-family: Poppins, sans-serif; font-size: clamp(2.3rem, 4vw, 4.2rem); line-height: 1; }
.counter { display: inline-block; min-width: 1.1ch; }
.stat strong span { color: #94b1ff; }
.stat > span { color: rgba(255,255,255,.66); font-size: .72rem; margin-top: .7rem; }
.cayap-badge { align-items: center; background: var(--white); border-radius: 10px; color: var(--blue-dark); display: flex; gap: 1.2rem; padding: .4rem 1.2rem; }
.cayap-badge img { height: auto; max-width: 160px; object-fit: contain; width: 28%; }
.cayap-badge p { font-size: .9rem; line-height: 1.5; margin: 0; }

.section-light { background: var(--mist); }
.section-white { background: var(--white); }
.services, .projects { padding: 8rem 0; }
.section-heading { align-items: end; display: flex; gap: 3rem; justify-content: space-between; margin-bottom: 3.5rem; }
.section-heading > div { max-width: 680px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: var(--muted); font-size: 1.05rem; max-width: 430px; }
.services-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: background .35s ease, box-shadow .35s ease, color .35s ease, transform .35s ease; }
.service-card:hover { background: var(--blue); box-shadow: var(--shadow); color: var(--white); transform: translateY(-6px); }
.service-card img { height: 190px; object-fit: cover; width: 100%; }
.service-card > div { padding: 1.5rem 1.5rem 1.8rem; }
.service-card h3 { margin-bottom: .6rem; }
.service-card p:not(.card-number) { color: var(--muted); font-size: .85rem; line-height: 1.55; min-height: 54px; transition: color .35s ease; }
.service-card:hover p:not(.card-number) { color: rgba(255,255,255,.8); }
.service-offerings, .service-reference { color: var(--blue-dark); font-size: .75rem; font-weight: 700; line-height: 1.45; margin-bottom: 0; min-height: 0; }
.service-offerings { letter-spacing: .02em; }
.service-offerings span { color: var(--blue); margin: 0 .2rem; }
.service-reference { margin-top: .9rem; }
.service-card:hover .service-offerings, .service-card:hover .service-reference { color: rgba(255,255,255,.92); }
.service-card a { color: var(--blue); font-size: .8rem; font-weight: 700; }
.service-card a span { font-size: 1rem; margin-left: .4rem; }
.card-number { color: var(--blue); font-size: .65rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 1rem; }
.service-card-wide { grid-column: 1 / 2; }

.projects-container { width: min(1280px, calc(100% - 72px)); }
.projects-intro-grid { align-items: start; display: grid; gap: clamp(3rem, 6vw, 6rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); margin-bottom: 4rem; }
.projects-heading { align-items: start; margin-bottom: 0; }
.projects-heading h2 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); max-width: 650px; }
.projects-copy { color: var(--muted); margin: 0; max-width: none; text-align: left; width: 100%; }
.projects-copy p { margin-bottom: 22px; }
.projects-copy p:last-child { margin-bottom: 0; }
.projects-copy strong { color: var(--blue-dark); }
.client-reference-panel { background: var(--mist); border-left: 4px solid var(--blue); margin-top: 4rem; padding: 2rem 2.2rem; }
.client-reference-panel .eyebrow { margin-bottom: .75rem; }
.client-reference-panel p:last-child { color: var(--muted); margin-bottom: 0; }
.client-logos { overflow: hidden; }
.client-logo-track { display: flex; gap: .85rem; transform: translate3d(0, 0, 0); will-change: transform; }
.client-logo { align-items: center; background: var(--white); border: 1px solid var(--line); display: flex; flex: 0 0 calc((100% - 4.25rem) / 6); height: 88px; justify-content: center; min-width: 0; padding: .7rem; }
.client-logo img { height: 100%; max-width: 100%; object-fit: contain; width: 100%; }

.contact-cta { background: var(--blue-dark); color: var(--white); overflow: hidden; padding: 7rem 0; position: relative; }
.contact-cta::before { border: 1px solid rgba(38,89,207,.65); border-radius: 50%; content: ""; height: 500px; position: absolute; right: -10%; top: -55%; width: 500px; }
.contact-layout { align-items: center; display: grid; gap: 4rem; grid-template-columns: 1fr .8fr; position: relative; }
.contact-inner { position: relative; }
.contact-inner h2 { max-width: 700px; }
.contact-inner > p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.contact-inner .button { margin-top: 1.5rem; }
.contact-inner > strong { color: #8eacff; font-family: Poppins, sans-serif; font-size: 1.1rem; margin-left: 1.2rem; }
.map-frame { border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); height: 300px; overflow: hidden; }
.map-frame iframe { border: 0; filter: grayscale(1) contrast(1.05); height: 100%; width: 100%; }
.site-footer { background: var(--blue-deep); color: var(--white); padding: 5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1.7fr 1fr 1.2fr 1fr; padding-bottom: 4rem; }
.brand-footer { margin-bottom: 1.3rem; }
.footer-brand p, .site-footer p { color: rgba(255,255,255,.55); font-size: .8rem; }
.site-footer h3 { font-size: .9rem; margin-bottom: 1.2rem; }
.site-footer a:hover { color: #9ab4ff; }
.instagram { align-items: center; display: flex; font-size: .85rem; gap: .6rem; }
.instagram i { align-items: center; border: 1px solid var(--blue); border-radius: 50%; color: #96b0ff; display: inline-flex; height: 30px; justify-content: center; width: 30px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.4); display: flex; font-size: .7rem; justify-content: space-between; padding-top: 1.2rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .container { width: min(100% - 48px, 680px); }
  .projects-container { width: min(100% - 48px, 680px); }
  .projects-intro-grid { display: block; margin-bottom: 3rem; }
  .projects-heading { margin-bottom: 2rem; }
  .main-nav { background: var(--white); color: var(--blue-dark); display: flex; flex-direction: column; gap: 0; left: 0; margin: 0; opacity: 0; padding: 1rem 1.5rem 1.8rem; pointer-events: none; position: absolute; right: 0; top: 88px; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease; }
  .main-nav a { border-bottom: 1px solid var(--line); padding: .85rem 0; }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-image { margin: 0 2rem 1rem 0; max-width: 500px; }
  .about-image img { height: 440px; }
  .client-logo { flex-basis: calc((100% - 2.55rem) / 4); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .header-inner { height: 76px; }
  .brand { min-width: 0; }
  .site-header .brand { height: 50px; width: min(178px, 52vw); }
  .site-header .brand img { height: 50px; width: min(178px, 52vw); }
  .main-nav { top: 76px; }
  .hero { min-height: 720px; padding-bottom: 4rem; }
  .hero-backdrop { background-position: 58% center; }
  .hero-content { padding-top: 5rem; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3.15rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
  .scroll-cue { display: none; }
  .about, .services, .projects { padding: 5rem 0; }
  .about-image { margin-right: 1rem; }
  .about-image img { height: 360px; }
  .stats { gap: .5rem; grid-template-columns: 1fr 1fr; }
  .stat-wide { border-top: 1px solid rgba(255,255,255,.27); border-right: 0; grid-column: 1 / -1; padding-top: 1rem; }
  .cayap-badge { align-items: center; flex-direction: column; gap: 1rem; padding: 1rem 1.2rem 1.2rem; text-align: center; }
  .cayap-badge img { max-width: 190px; width: min(190px, 65vw); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
  .section-heading > p { font-size: .95rem; max-width: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card img { height: 215px; }
  .client-reference-panel { margin-top: 3rem; padding: 1.5rem; }
  .client-logo-track { gap: .6rem; }
  .client-logo { flex-basis: calc((100% - .6rem) / 2); height: 82px; padding: .6rem; }
  .contact-cta { padding: 5rem 0; }
  .contact-layout { gap: 2.5rem; grid-template-columns: 1fr; }
  .contact-inner > strong { display: block; margin: 1rem 0 0; }
  .footer-grid { gap: 2.5rem 1rem; grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}