:root {
  --navy: #0c2345;
  --navy-deep: #07172f;
  --ink: #12233c;
  --muted: #66758b;
  --orange: #ff6b00;
  --orange-soft: #fff2e8;
  --line: #dce3eb;
  --surface: #f6f8fb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(12, 35, 69, .1);
  --radius: 2px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Raleway", Arial, sans-serif; font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section-shell { padding: 112px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--orange); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: break-word; }
h1 { margin-bottom: 24px; font-size: clamp(2.7rem, 6vw, 5.5rem); font-weight: 800; }
h2 { margin-bottom: 24px; font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 800; }
h3 { margin-bottom: 14px; font-size: 1.28rem; font-weight: 800; }
.lead { color: var(--muted); font-size: 1.13rem; line-height: 1.85; overflow-wrap: break-word; }
.topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.topbar-inner { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; }
.topbar a { color: var(--white); font-weight: 700; }
.topbar a span, .nav-cta span, .footer-link span { color: var(--orange); }
.nav-wrap { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.98); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.has-scrolled .nav-wrap { border-color: var(--line); box-shadow: 0 8px 26px rgba(12,35,69,.08); }
.nav-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { width: 188px; flex: 0 0 auto; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: 28px; color: var(--navy); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a, .solutions-menu summary { transition: color .2s ease; cursor: pointer; }
.main-nav a:hover, .main-nav a:focus-visible, .solutions-menu summary:hover { color: var(--orange); }
.solutions-menu { position: relative; }
.solutions-menu summary { list-style: none; }
.solutions-menu summary::-webkit-details-marker { display: none; }
.solutions-menu summary span { color: var(--orange); margin-left: 5px; }
.solutions-menu ul { position: absolute; top: calc(100% + 20px); right: 0; width: 245px; padding: 10px 0; margin: 0; list-style: none; background: var(--white); box-shadow: var(--shadow); border-top: 3px solid var(--orange); }
.solutions-menu:not([open]) ul { display: none; }
.solutions-menu li a { display: block; padding: 9px 18px; font-size: .72rem; }
.nav-cta { padding: 13px 18px; color: var(--white) !important; background: var(--orange); }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--navy); }
.menu-toggle { display: none; border: 0; padding: 8px 0; color: var(--navy); background: transparent; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.menu-icon { color: var(--orange); margin-right: 7px; font-size: 1rem; }
.hero { position: relative; overflow: hidden; }
.hero-home { min-height: 690px; display: grid; align-items: center; background: var(--navy); isolation: isolate; }
.hero-home::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,23,47,.95) 0%, rgba(7,23,47,.76) 42%, rgba(7,23,47,.16) 100%), url("../descargas/proyectos/banner-proyectos.png") center/cover; }
.hero-home::after { content: ""; position: absolute; right: -8%; bottom: -29%; z-index: -1; width: 45%; height: 80%; background: var(--orange); opacity: .14; transform: rotate(-18deg); }
.hero-home .container { padding: 112px 0; }
.hero-home h1, .hero-home .lead { color: var(--white); }
.hero-home h1 { max-width: 760px; font-size: clamp(1.5rem, 3vw, 2.75rem); }
.hero-home h1 span { display: block; }
.hero-home .lead { max-width: 680px; color: rgba(255,255,255,.84); }
.hero-home .eyebrow { color: #ffb277; }
.hero-home .eyebrow::before { background: #ffb277; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--orange); padding: 15px 22px; color: var(--white); background: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { background: var(--white); border-color: var(--white); color: var(--navy); transform: translateY(-3px); }
.button.button-light { border-color: rgba(255,255,255,.5); background: transparent; }
.button.button-light:hover, .button.button-light:focus-visible { background: var(--white); border-color: var(--white); }
.scroll-note { display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.scroll-note::before { content: ""; width: 42px; height: 1px; background: var(--orange); }
.intro-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(50px, 8vw, 130px); align-items: center; }
.intro-visual { position: relative; min-height: 390px; background: var(--surface); }
.intro-visual img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.intro-visual::after { content: ""; position: absolute; left: -18px; bottom: -18px; z-index: -1; width: 105px; height: 105px; border: 2px solid var(--orange); }
.intro-copy p:last-child { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 54px; }
.section-heading h2 { max-width: 650px; margin-bottom: 0; }
.section-heading p { max-width: 420px; margin-bottom: 0; color: var(--muted); }
.solutions-section { position: relative; isolation: isolate; color: var(--white); background: var(--navy); overflow: hidden; }
.solutions-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(7,23,47,.94), rgba(12,35,69,.78)), url("7e236308e5410b46bfffbc14b1cb8c7b.jpg") center/cover; }
.solutions-section .container { position: relative; z-index: 1; }
.solutions-section .section-heading h2 { color: var(--white); }
.solutions-section .section-heading p { color: rgba(255,255,255,.78); }
.solutions-section .eyebrow { color: #ffb277; }
.solutions-section .eyebrow::before { background: #ffb277; }
.solutions-grid { max-width: 1600px; margin-inline: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; overflow-x: auto; padding: 8px 3px 18px; scrollbar-color: var(--orange) rgba(255,255,255,.16); scrollbar-width: thin; }
.solution-card { position: relative; min-width: 0; height: 350px; padding: 0; border: 0; background: transparent; overflow: visible; cursor: pointer; perspective: 1200px; }
.solution-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.72,.2,1); }
.solution-card:hover .solution-card-inner, .solution-card:focus-within .solution-card-inner, .solution-card.is-flipped .solution-card-inner { transform: rotateY(180deg); }
.solution-card-face { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; backface-visibility: hidden; }
.solution-card-front { padding: 26px; background: rgba(255,255,255,.98); box-shadow: 0 16px 30px rgba(7,23,47,.18); }
.solution-card-back { transform: rotateY(180deg); color: var(--white); background: var(--navy); box-shadow: 0 16px 30px rgba(7,23,47,.22); }
.solution-card-back::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(7,23,47,.08), rgba(7,23,47,.9)); }
.solution-card-back > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.solution-card:hover .solution-card-back > img, .solution-card.is-flipped .solution-card-back > img { transform: scale(1.06); }
.solution-card-back-content { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; padding: 26px; }
.solution-card-back h3 { color: var(--white); }
.solution-icon { width: 58px; height: 58px; margin-bottom: 24px; padding: 12px; background: var(--orange-soft); transition: transform .3s ease; }
.solution-card:hover .solution-icon { transform: scale(1.04); }
.solution-icon img { width: 100%; height: 100%; object-fit: contain; }
.solution-card p { margin-bottom: 20px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.card-hint { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); color: var(--navy); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-hint span { color: var(--orange); font-size: 1rem; }
.button-small { align-self: flex-start; padding: 11px 14px; font-size: .68rem; }
.cta-band { position: relative; overflow: hidden; padding: 76px 0; color: var(--white); background: var(--orange); }
.cta-band::after { content: ""; position: absolute; right: 7%; top: -70px; width: 230px; height: 230px; border: 30px solid rgba(255,255,255,.15); border-radius: 50%; }
.cta-band h2 { max-width: 700px; margin-bottom: 24px; color: var(--white); }
.cta-band p { max-width: 620px; margin-bottom: 30px; color: rgba(255,255,255,.88); }
.cta-band .button { border-color: var(--white); background: var(--white); color: var(--navy); }
.cta-band .button:hover, .cta-band .button:focus-visible { border-color: var(--navy); background: var(--navy); color: var(--white); }
.inner-hero { min-height: 450px; display: flex; align-items: end; background: linear-gradient(100deg, rgba(7,23,47,.98), rgba(12,35,69,.82)); }
.inner-hero::before { content: ""; position: absolute; inset: 0 0 0 55%; background: linear-gradient(90deg, var(--navy-deep), rgba(7,23,47,.2)), url("../descargas/proyectos/banner-proyectos.png") center/cover; opacity: .55; }
.inner-hero .container { position: relative; padding: 90px 0; }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 28px; color: rgba(255,255,255,.6); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--orange); }
.inner-hero h1 { max-width: 760px; margin-bottom: 0; color: var(--white); }
.inner-hero h1::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 22px; background: var(--orange); }
.inner-hero .eyebrow { margin-bottom: 22px; color: #ffb277; }
.inner-hero .eyebrow::before { background: #ffb277; }
.solution-lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 130px); align-items: center; }
.solution-mark { position: relative; min-height: 390px; display: grid; place-items: center; background: var(--orange-soft); }
.solution-mark::before, .solution-mark::after { content: ""; position: absolute; border: 1px solid var(--orange); }
.solution-mark::before { inset: 24px; }
.solution-mark::after { width: 92px; height: 92px; right: -20px; bottom: -20px; background: var(--white); }
.solution-mark img { position: relative; z-index: 1; width: 170px; height: 170px; object-fit: contain; transition: transform .4s ease; }
.solution-mark:hover img { transform: scale(1.08) rotate(3deg); }
.solution-lead-copy .lead { margin-bottom: 0; }
.benefits-section { background: var(--surface); }
.benefits-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 150px); }
.benefits-layout h2 { margin-bottom: 0; }
.benefits-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.benefits-list li { position: relative; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.benefits-list li::before { content: ""; position: absolute; left: 0; top: 29px; width: 8px; height: 8px; background: var(--orange); }
.related-section { padding: 100px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: flex; justify-content: space-between; gap: 20px; padding: 25px; border: 1px solid var(--line); color: var(--navy); font-size: .94rem; font-weight: 800; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.related-card:hover, .related-card:focus-visible { border-color: var(--orange); color: var(--orange); transform: translateY(-4px); }
.related-card span { color: var(--orange); }
.footer-main { padding: 82px 0 70px; color: rgba(255,255,255,.7); background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: 80px; }
.footer-brand img { width: 185px; margin-bottom: 24px; }
.footer-brand p { max-width: 300px; margin-bottom: 22px; }
.footer-link { color: var(--white); font-weight: 800; font-size: .85rem; }
.footer-label { margin-bottom: 20px; color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.footer-list a:hover, .footer-list a:focus-visible { color: var(--orange); }
.contact-list { gap: 12px; }
.social-links { display: flex; gap: 9px; margin-top: 25px; }
.social-links a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.28); color: var(--white); font-weight: 800; text-transform: uppercase; }
.social-links a:hover, .social-links a:focus-visible { border-color: var(--orange); background: var(--orange); }
.footer-bottom { padding: 18px 0; color: rgba(255,255,255,.54); background: #061329; font-size: .72rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; }
.floating-contact { position: fixed; right: 22px; bottom: 22px; z-index: 15; display: inline-flex; align-items: center; gap: 10px; padding: 12px 17px; color: var(--white); background: #20b76b; box-shadow: 0 10px 25px rgba(7,23,47,.2); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.floating-contact img { width: 18px; filter: brightness(0) invert(1); }
.floating-contact:hover, .floating-contact:focus-visible { background: var(--navy); transform: translateY(-4px); }
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.hero [data-reveal] { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid rgba(255,107,0,.55); outline-offset: 4px; }

@media (max-width: 900px) {
  .topbar-inner { font-size: .63rem; }
  .main-nav { gap: 16px; font-size: .7rem; }
  .solutions-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); }
  .intro-grid, .solution-lead, .benefits-layout { gap: 50px; }
  .footer-grid { gap: 40px; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .topbar-inner { padding: 8px 0; }
  .topbar-inner span { display: none; }
  .topbar-inner a { margin-left: auto; }
  .nav-inner { min-height: 72px; }
  .brand { width: 165px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 14px 18px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(12,35,69,.1); }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .solutions-menu summary { padding: 12px 0; }
  .solutions-menu ul { position: static; width: auto; padding: 5px 0 8px 14px; border-top: 0; box-shadow: none; }
  .solutions-menu li a { padding: 7px 0; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero-home { min-height: 630px; }
  .hero-home .container { padding: 90px 0; }
  h1 { font-size: clamp(1.85rem, 7.5vw, 4rem); }
  .section-shell { padding: 78px 0; }
  .intro-grid, .solution-lead, .benefits-layout { grid-template-columns: 1fr; }
  .intro-visual, .intro-visual img, .solution-mark { min-height: 285px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading p { margin-top: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-auto-columns: minmax(230px, 78vw); }
  .solution-card { height: 350px; }
  .inner-hero { min-height: 420px; }
  .inner-hero::before { left: 0; opacity: .25; }
  .inner-hero .container { padding: 78px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-bottom .container { display: block; }
  .footer-bottom span { display: block; }
  .footer-bottom span + span { margin-top: 6px; }
  .floating-contact { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
