/* PRISMA C.A. — estilos del sitio (sobre Bootstrap 5) */
:root {
  --prisma-navy: #13233d;
  --prisma-navy-2: #0d1a2e;
  --prisma-navy-3: #1b3050;
  --prisma-blue: #2f5d93;
  --prisma-orange: #f07f22;
  --prisma-orange-2: #d96a12;
  --prisma-ink: #1d2433;
  --prisma-muted: #5d6779;
  --prisma-light: #f4f6f9;
  --bs-body-font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--prisma-ink);
}

html { scroll-padding-top: 80px; }
body { background: #fff; }
h1, h2, h3, h4, .navbar-brand, .btn, .eyebrow { font-family: "Montserrat", sans-serif; }

/* Botones */
.btn-prisma {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--prisma-orange);
  --bs-btn-border-color: var(--prisma-orange);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--prisma-orange-2);
  --bs-btn-hover-border-color: var(--prisma-orange-2);
  --bs-btn-active-bg: var(--prisma-orange-2);
  --bs-btn-active-border-color: var(--prisma-orange-2);
  --bs-btn-focus-shadow-rgb: 240, 127, 34;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  border-radius: 4px;
}
.btn-lg { font-size: .95rem; padding: .8rem 1.5rem; }
.btn-outline-light { text-transform: uppercase; font-weight: 600; letter-spacing: .02em; border-radius: 4px; }
.link-prisma { color: var(--prisma-orange); font-weight: 700; text-decoration: none; }
.link-prisma:hover { color: var(--prisma-orange-2); text-decoration: underline; }

/* Barra superior + navegación */
.topbar { background: var(--prisma-navy-2); padding: .4rem 0; font-size: .82rem; }
.topbar .btn-sm { font-size: .72rem; padding: .25rem .7rem; }
.topbar-link { color: #c9d3e2; text-decoration: none; }
.topbar-link:hover { color: #fff; }

.navbar { background: var(--prisma-navy); padding: .7rem 0; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.navbar-brand span { font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.navbar .nav-link { color: #d6deea; font-family: "Montserrat", sans-serif; font-size: .82rem; font-weight: 600; text-transform: uppercase; padding: .5rem .8rem !important; position: relative; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.navbar .nav-link.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: var(--prisma-orange); }
.dropdown-menu-dark { background: var(--prisma-navy-3); border: 0; }
.dropdown-menu-dark .dropdown-item:hover { background: var(--prisma-orange); }

/* Hero */
.hero { position: relative; background: var(--prisma-navy-2); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--prisma-navy-2) 15%, rgba(13,26,46,.75) 55%, rgba(13,26,46,.35)); }
.hero > .container { z-index: 2; }
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-shapes span { position: absolute; border: 2px solid rgba(240,127,34,.55); transform: rotate(45deg); }
.hero-shapes span:nth-child(1) { width: 320px; height: 320px; left: -170px; top: 40px; background: rgba(240,127,34,.12); }
.hero-shapes span:nth-child(2) { width: 200px; height: 200px; left: -60px; bottom: -110px; }
.hero-shapes span:nth-child(3) { width: 140px; height: 140px; right: 8%; top: -80px; border-color: rgba(47,93,147,.6); }
.min-vh-hero { min-height: min(72vh, 640px); padding: 5rem 0; }
.eyebrow { color: var(--prisma-orange); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .75rem; }
.hero-title { font-weight: 800; text-transform: uppercase; font-size: clamp(1.45rem, 6.4vw, 3.4rem); line-height: 1.08; overflow-wrap: anywhere; }
.hero-lead { font-size: 1.2rem; color: #d3dbe7; max-width: 38rem; margin-top: 1.2rem; }

/* Especialidades */
.specialties { background: var(--prisma-navy); color: #fff; padding: 4rem 0 3.5rem; }
.specialties .section-title { color: #fff; }
.spec { padding: 1.5rem 1rem; border-right: 1px solid rgba(255,255,255,.1); transition: transform .25s; }
.spec:last-child { border-right: 0; }
.spec:hover { transform: translateY(-4px); }
.spec i { font-size: 3rem; color: var(--prisma-orange); display: block; margin-bottom: .8rem; }
.spec h3 { font-size: .95rem; font-weight: 700; text-transform: uppercase; margin: 0; }
@media (max-width: 991.98px) { .spec:nth-child(2) { border-right: 0; } .spec { border-bottom: 1px solid rgba(255,255,255,.1); } }

/* Secciones */
.section { padding: 6rem 0; }
.section-alt { background: var(--prisma-light); }
.section-dark { background: var(--prisma-navy-2); color: #fff; }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; color: var(--prisma-navy); margin-bottom: 1.2rem; }
.lead-muted { color: var(--prisma-muted); max-width: 46rem; font-size: 1.08rem; }
.text-light-muted { color: #aab6c8; }

.stat { background: var(--prisma-light); border-radius: 12px; padding: 1rem; height: 100%; }
.stat .num { display: block; font-family: "Montserrat"; font-weight: 800; font-size: 1.8rem; color: var(--prisma-orange); }
.stat .lbl { font-size: .82rem; color: var(--prisma-muted); }

.photo-stack { position: relative; padding-right: 3rem; padding-bottom: 3rem; }
.photo-float { position: absolute; right: 0; bottom: 0; width: 38%; border: 6px solid #fff; }

/* Servicios */
.service-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(19,35,61,.08); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(19,35,61,.15); }
.service-img { height: 190px; background-size: cover; background-position: center; }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--prisma-navy); color: var(--prisma-orange); display: grid; place-items: center; font-size: 1.5rem; margin-top: -3.2rem; margin-bottom: 1rem; position: relative; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--prisma-navy); text-transform: uppercase; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; color: var(--prisma-muted); font-size: .95rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--prisma-orange); }

/* Figura isométrica (kit anatomy) con la paleta PRISMA */
.figura-prisma.iso {
  --anatomy-page: var(--prisma-navy-2); --anatomy-card: #10203a; --anatomy-text: #a9b6c9; --anatomy-strong: #eef2f8; --anatomy-muted: #7586a0;
  --anatomy-paper: #10203a; --anatomy-face: #172b4c; --anatomy-top: #1a2f52;
  --anatomy-shade-0: #0c182c; --anatomy-shade-1: #0f1d34; --anatomy-shade-2: #12223c; --anatomy-shade-3: #152844;
  --anatomy-lit-top: #2a3c5c; --anatomy-lit-shade: #1f3150;
  --anatomy-hi: #d9e2ef; --anatomy-mid: #6a7f9f; --anatomy-lo: #3a5074; --anatomy-faint: #26395c; --anatomy-lit: #ff8a2a;
  --anatomy-halo: #050b16; --anatomy-dot: #e3eaf4;
  color: var(--anatomy-text);
}
.figura-prisma .iso-stage { cursor: ew-resize; outline: none; }
.figura-prisma .iso-stage:focus-visible { box-shadow: 0 0 0 2px var(--prisma-orange); border-radius: 8px; }
.figura-prisma .fx-light { fill: none; stroke: var(--prisma-orange); stroke-width: 1.4px; stroke-linecap: round; stroke-dasharray: 3 9; opacity: 0; transition: opacity .4s; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px rgba(255,138,42,.9)); }
.figura-prisma .fx-fiber[data-on] .fx-light { opacity: 1; animation: fx-flow 900ms linear infinite; }
.figura-prisma .fx-fiber[data-on] .iso-wire-end { fill: var(--prisma-orange); }
@keyframes fx-flow { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) { .figura-prisma .fx-fiber[data-on] .fx-light { animation: none; stroke-dasharray: none; } }
.figura-prisma .iso-caption, .figura-prisma .iso-key { color: #9fb0c7; }

.fiber-facts li { display: flex; gap: .9rem; align-items: center; margin-bottom: .9rem; color: #c7d2e1; }
.fiber-facts i { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(240,127,34,.12); color: var(--prisma-orange); display: grid; place-items: center; font-size: 1.15rem; }

/* Ruta de acción */
.step { background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 2rem 1.5rem; position: relative; transition: border-color .25s, transform .25s; }
.step:hover { border-color: var(--prisma-orange); transform: translateY(-4px); }
.step-num { position: absolute; top: 1rem; right: 1.2rem; font-family: "Montserrat"; font-weight: 800; font-size: 2.4rem; color: #e9edf3; line-height: 1; }
.step i { font-size: 2rem; color: var(--prisma-orange); }
.step h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; color: var(--prisma-navy); margin: 1rem 0 .7rem; }
.step p { color: var(--prisma-muted); font-size: .93rem; margin: 0; }

/* Galería */
.filter .btn { border: 1px solid #cfd7e3; background: #fff; color: var(--prisma-navy); font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.filter .btn.active, .filter .btn:hover { background: var(--prisma-navy); color: #fff; border-color: var(--prisma-navy); }
.g-link { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.g-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-link span { position: absolute; left: .7rem; bottom: .7rem; background: rgba(13,26,46,.85); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: .25rem .55rem; border-radius: 4px; border-left: 3px solid var(--prisma-orange); }
.g-link:hover img { transform: scale(1.06); }
.g-item.is-hidden { display: none; }
.filter { flex-wrap: wrap; }

/* Contacto */
.contact-list li { display: flex; gap: .8rem; align-items: center; margin-bottom: .9rem; color: #c7d2e1; }
.contact-list i { color: var(--prisma-orange); font-size: 1.2rem; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-form { background: #10203a; border-radius: 16px; padding: 2rem; }
.contact-form .form-label { color: #c7d2e1; font-size: .88rem; }
.contact-form .form-control, .contact-form .form-select { background: #0d1a2e; border-color: #2a3e60; color: #fff; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--prisma-orange); box-shadow: 0 0 0 .2rem rgba(240,127,34,.25); }

.footer { background: #08111f; padding: 1.6rem 0; }

@media (max-width: 575.98px) {
  .section { padding: 4rem 0; }
  .contact-form { padding: 1.3rem; }
  .photo-stack { padding: 0; }
}

/* Armado pieza por pieza de la figura */
.figura-prisma .is-assembling [data-step] { opacity: 0; transform: translateY(-22px); }
.figura-prisma .is-assembling [data-step].in { opacity: 1; transform: none; transition: opacity .45s ease-out, transform .75s cubic-bezier(.32,.72,0,1); }
@media (prefers-reduced-motion: reduce) { .figura-prisma .is-assembling [data-step] { opacity: 1; transform: none; } }

/* LED de enlace en la figura de la antena */
.figura-prisma .fx-led { fill: var(--anatomy-lo); stroke: var(--anatomy-mid); stroke-width: .5px; vector-effect: non-scaling-stroke; transition: fill .3s; }
.figura-prisma .fx-led[data-state="weak"] { fill: #8a4a1a; }
.figura-prisma .fx-led[data-state="on"] { fill: var(--prisma-orange); filter: drop-shadow(0 0 3px rgba(255,138,42,.95)); }

/* Video vertical de obra */
.video-portrait { --bs-aspect-ratio: 177.78%; max-width: 340px; background: #000; }
.video-portrait video { object-fit: cover; }
