/* ════════════════════════════════════
   SAPIENCIA CNC — Main Stylesheet
════════════════════════════════════ */

:root {
  --cyan:        #00BCD4;
  --cyan-dark:   #0097A7;
  --cyan-light:  #E0F7FA;
  --grey-sec:    #78909C;
  --grey-border: #B0BEC5;
  --grey-section:#ECEFF1;
  --text:        #212121;
  --white:       #ffffff;
  --dark:        #212121;
  --header-h:    70px;
  --transition:  0.3s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  font-size: 16px; color: var(--text); line-height: 1.7;
  background: var(--white); overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; font-weight: 600; line-height: 1.25; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── LAYOUT ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .92rem;
  transition: background var(--transition), transform .1s; white-space: nowrap;
}
.btn-cyan  { background: var(--cyan);      color: var(--white); }
.btn-cyan:hover  { background: var(--cyan-dark); }
.btn-dark  { background: var(--cyan-dark); color: var(--white); }
.btn-dark:hover  { background: #006064; }
.btn-wa    { background: #25D366;          color: var(--white); }
.btn-wa:hover    { background: #1ebe57; }
.btn-hero  { background: var(--cyan);      color: var(--white); font-size: 1rem; padding: 14px 32px; border-radius: 8px; }
.btn-hero:hover  { background: var(--cyan-dark); }
.btn-full  { width: 100%; justify-content: center; }

/* ── SEC TITLE ── */
.sec-title { font-size: 2rem; color: var(--cyan-dark); margin-bottom: 44px; }
.sec-title::after {
  content: ''; display: block; width: 52px; height: 4px;
  background: var(--cyan); margin-top: 12px; border-radius: 2px;
}
section { padding: 92px 24px 72px; }
section .wrap { padding: 0; }

/* ── PH IMG ── */
.ph-img {
  background: var(--grey-section); border: 2px dashed var(--grey-border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--grey-sec); padding: 32px;
}
.ph-img i { font-size: 2.6rem; display: block; margin-bottom: 10px; }

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--cyan-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  height: var(--header-h);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 46px; height: 46px; background: var(--white); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px;
  color: var(--cyan-dark); line-height: 1.2; text-align: center;
}
.logo .custom-logo { height: 46px; width: auto; border-radius: 6px; }
.logo-text { color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.logo-text span { font-weight: 400; font-size: .7rem; display: block; opacity: .82; letter-spacing: .4px; }

.nav-list { display: flex; gap: 24px; list-style: none; }
.nav-list a { color: var(--white); font-size: .875rem; font-weight: 500; transition: opacity .2s; }
.nav-list a:hover { opacity: .7; }
.nav-list .current-menu-item a { opacity: .7; border-bottom: 2px solid var(--white); padding-bottom: 1px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* ════════════════════════════════════
   HERO CAROUSEL
════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  height: 620px; margin-top: var(--header-h);
}
.hero-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.4,0,.2,1); will-change: transform; }
.hero-slide {
  flex-shrink: 0; width: 100%; height: 100%;
  background: var(--cyan-dark) center/cover no-repeat;
  position: relative; display: flex; align-items: center;
}
.hero-slide--default  { background: linear-gradient(135deg, #004D60 0%, #0097A7 60%, #00BCD4 100%); }
.hero-slide--default2 { background: linear-gradient(135deg, #006064 0%, #00838F 60%, #00ACC1 100%); }
.hero-slide--default3 { background: linear-gradient(135deg, #003747 0%, #006E7F 60%, #0097A7 100%); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 60%, rgba(0,0,0,.1) 100%);
}
/* Decorative diagonal stripe */
.hero-decor {
  position: absolute; bottom: 0; left: 0; width: 320px; height: 6px;
  background: var(--cyan); opacity: .85;
}
.hero-decor::before {
  content: ''; position: absolute; left: 0; bottom: 10px;
  width: 200px; height: 3px; background: var(--cyan); opacity: .5;
}

.hero-content {
  position: relative; z-index: 2; max-width: 680px;
  padding: 0 56px; color: var(--white);
}
.hero-badge {
  display: inline-block; background: var(--cyan); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .78rem;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px;
  border-radius: 4px; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.15;
  margin-bottom: 18px; text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-subtitle {
  font-size: 1.1rem; opacity: .9; margin-bottom: 32px; line-height: 1.6; max-width: 520px;
}

/* Arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,.15); border: none; border-radius: 50%;
  width: 48px; height: 48px; cursor: pointer; color: var(--white); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* Dots */
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45);
  border: none; cursor: pointer; transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.hero-dot.active { background: var(--white); transform: scale(1.25); }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 22px; right: 36px; z-index: 10;
  color: rgba(255,255,255,.6); font-size: 1.2rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ════════════════════════════════════
   S1 — LA EMPRESA
════════════════════════════════════ */
.sec-empresa { background: var(--white); }
.empresa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.empresa-text p { margin-bottom: 15px; }
.empresa-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.empresa-img { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════
   S2 — MISIÓN Y VISIÓN
════════════════════════════════════ */
.sec-mision { background: var(--cyan-light); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card {
  background: var(--white); border-radius: 10px; padding: 36px 32px;
  border-left: 5px solid var(--cyan);
  box-shadow: 0 2px 14px rgba(0,188,212,.09);
}
.mv-card h3 { font-size: 1.2rem; color: var(--cyan-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.mv-card h3 i { color: var(--cyan); }

/* ════════════════════════════════════
   S3 — PRODUCTOS
════════════════════════════════════ */
.sec-productos { background: var(--grey-section); }
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.prod-card {
  background: var(--white); border-radius: 10px; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow var(--transition), transform var(--transition);
}
.prod-card:hover { box-shadow: 0 8px 30px rgba(0,188,212,.22); transform: translateY(-5px); }
.prod-img {
  background: var(--grey-section); aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--grey-border); overflow: hidden;
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img i { font-size: 2.5rem; color: var(--grey-sec); }
.prod-body { padding: 22px 24px 26px; }
.prod-body h3 { font-size: 1.05rem; margin-bottom: 9px; }
.prod-body p { font-size: .9rem; color: var(--grey-sec); line-height: 1.6; }
.tag {
  display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 500;
  color: var(--cyan); border: 1.5px solid var(--cyan); border-radius: 20px; padding: 4px 14px;
  transition: background var(--transition), color var(--transition);
}
.prod-card:hover .tag { background: var(--cyan); color: var(--white); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--white); border-radius: 12px; max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(.96); } to { opacity:1; transform: scale(1); } }
.modal-header {
  background: var(--grey-section); aspect-ratio: 16/7; display: flex;
  align-items: center; justify-content: center; border-radius: 12px 12px 0 0; overflow: hidden;
}
.modal-header img { width: 100%; height: 100%; object-fit: cover; }
.modal-header i { font-size: 3.5rem; color: var(--grey-sec); }
.modal-body { padding: 30px 32px 36px; }
.modal-body h2 { font-size: 1.45rem; color: var(--cyan-dark); margin-bottom: 14px; }
.modal-body p { margin-bottom: 14px; line-height: 1.8; }
.modal-specs { list-style: none; margin: 18px 0 24px; }
.modal-specs li {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--grey-section); font-size: .9rem; align-items: flex-start;
}
.modal-specs li i { color: var(--cyan); width: 18px; flex-shrink: 0; margin-top: 3px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.9);
  border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: background var(--transition); z-index: 2;
}
.modal-close:hover { background: var(--grey-section); }

/* ════════════════════════════════════
   S4 — SERVICIOS
════════════════════════════════════ */
.sec-servicios { background: var(--white); }
.serv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.serv-item { text-align: center; padding: 30px 18px; border-radius: 10px; transition: box-shadow var(--transition); }
.serv-item:hover { box-shadow: 0 4px 22px rgba(0,188,212,.13); }
.serv-icon {
  width: 62px; height: 62px; background: var(--cyan-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.serv-icon i { font-size: 1.5rem; color: var(--cyan-dark); }
.serv-item h3 { font-size: 1rem; margin-bottom: 10px; }
.serv-item p { font-size: .875rem; color: var(--grey-sec); line-height: 1.7; }

/* ════════════════════════════════════
   S5 — UBICACIÓN
════════════════════════════════════ */
.sec-ubicacion { background: var(--grey-section); }
.map-wrap {
  border-radius: 12px; overflow: hidden; height: 380px;
  display: flex; align-items: center; justify-content: center;
  background: #dce8ec; border: 2px dashed var(--grey-border);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.map-ph { text-align: center; color: var(--grey-sec); }
.map-ph i { font-size: 2.8rem; display: block; margin-bottom: 10px; }
.ubic-info { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 36px; }
.ubic-dato { display: flex; gap: 14px; align-items: flex-start; }
.ubic-dato i { color: var(--cyan); font-size: 1.2rem; margin-top: 3px; flex-shrink: 0; }
.ubic-dato strong { display: block; margin-bottom: 4px; font-weight: 600; }
.ubic-dato p { font-size: .92rem; }

/* ════════════════════════════════════
   S6 — CONTACTO
════════════════════════════════════ */
.sec-contacto { background: var(--white); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contacto-info h3 { font-size: 1.18rem; margin-bottom: 26px; }
.cdato { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: .95rem; }
.cdato i { color: var(--cyan); width: 20px; text-align: center; font-size: 1.1rem; flex-shrink: 0; }
.cdato a { color: var(--text); transition: color .2s; }
.cdato a:hover { color: var(--cyan); }

.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 11px 15px; border: 1.5px solid var(--grey-border);
  border-radius: 8px; font-family: 'Inter', sans-serif; font-size: .95rem;
  color: var(--text); transition: border-color .2s; background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--cyan); }
.contact-form textarea { resize: vertical; min-height: 128px; }
.form-msg {
  padding: 12px 16px; border-radius: 8px; font-size: .9rem; margin-bottom: 14px;
}
.form-msg.success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.form-msg.error   { background: #fdecea; color: #c62828; border-left: 4px solid #ef5350; }

/* ════════════════════════════════════
   S7 — PROYECTOS
════════════════════════════════════ */
.sec-proyectos { background: var(--cyan-light); }
.proy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.proy-item {
  background: var(--white); border-radius: 10px; overflow: hidden; display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.proy-item:hover { transform: translateY(-4px); box-shadow: 0 8px 26px rgba(0,188,212,.19); }
.proy-media {
  background: var(--grey-section); aspect-ratio: 16/10; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--grey-border); position: relative;
}
.proy-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.proy-item:hover .proy-media img { transform: scale(1.04); }
.proy-ph i { font-size: 2.4rem; color: var(--grey-sec); }
.proy-overlay {
  position: absolute; inset: 0; background: rgba(0,151,167,.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .95rem;
}
.proy-item:hover .proy-overlay { opacity: 1; }
.proy-caption { padding: 13px 17px 16px; }
.proy-caption strong { display: block; font-size: .92rem; margin-bottom: 3px; }
.proy-caption p { font-size: .82rem; color: var(--grey-sec); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform var(--transition), background var(--transition);
}
.wa-float:hover { transform: scale(1.1); background: #1ebe57; }
.wa-float i { font-size: 1.8rem; color: var(--white); }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.site-footer { background: var(--dark); color: var(--white); padding: 56px 24px 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: .88rem; color: var(--grey-sec); margin-top: 14px; line-height: 1.7; }
.footer-logo { margin-bottom: 8px; }
.footer-nav h4, .footer-social h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--grey-border); margin-bottom: 18px;
}
.footer-nav-list { list-style: none; }
.footer-nav-list li { margin-bottom: 9px; }
.footer-nav-list a { color: var(--grey-sec); font-size: .88rem; transition: color .2s; }
.footer-nav-list a:hover { color: var(--cyan); }
.soc-icons { display: flex; gap: 12px; }
.soc-icon {
  width: 38px; height: 38px; background: rgba(255,255,255,.07); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
  color: var(--grey-border); transition: background .2s, color .2s;
}
.soc-icon:hover { background: var(--cyan); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px;
  text-align: center; font-size: .83rem; color: var(--grey-sec);
}

/* ════════════════════════════════════
   SINGLE PROYECTO
════════════════════════════════════ */
.proyecto-hero {
  margin-top: var(--header-h); height: 420px; position: relative;
  background: var(--cyan-dark) center/cover no-repeat;
  display: flex; align-items: flex-end;
}
.proyecto-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 100%);
}
.proyecto-hero-content { position: relative; z-index: 2; padding-bottom: 48px; }
.proyecto-hero-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--white); margin-top: 12px; }
.proyecto-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.proyecto-meta span { color: rgba(255,255,255,.85); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.proyecto-meta i { color: var(--cyan); }

.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.65); }
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span[aria-current] { color: var(--white); }

.proyecto-main { background: var(--white); padding: 56px 24px 72px; }
.proyecto-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.proyecto-body.prose p { margin-bottom: 16px; }
.proyecto-body.prose h2,
.proyecto-body.prose h3 { color: var(--cyan-dark); margin: 28px 0 12px; }

.proyecto-video { margin-top: 40px; }
.proyecto-video h2 { font-size: 1.3rem; color: var(--cyan-dark); margin-bottom: 16px; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.proyecto-galeria { margin-top: 40px; }
.proyecto-galeria h2 { font-size: 1.3rem; color: var(--cyan-dark); margin-bottom: 16px; }
.galeria-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.galeria-item {
  display: block; border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 4/3;
  transition: transform var(--transition);
}
.galeria-item:hover { transform: scale(1.02); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }
.galeria-overlay {
  position: absolute; inset: 0; background: rgba(0,151,167,.7);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.3rem;
  opacity: 0; transition: opacity var(--transition);
}
.galeria-item:hover .galeria-overlay { opacity: 1; }

/* Sidebar */
.proyecto-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--white); border-radius: 10px; padding: 24px; border: 1px solid var(--grey-border); }
.sidebar-card h3 { font-size: 1rem; color: var(--cyan-dark); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--cyan-light); }
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.sidebar-list li { display: flex; gap: 12px; align-items: flex-start; }
.sidebar-list i { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.sidebar-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--grey-sec); }
.sidebar-list span { font-size: .9rem; }
.sidebar-cta { background: var(--grey-section); border-color: var(--cyan-light); }
.sidebar-cta h3 { color: var(--text); }
.sidebar-cta p { font-size: .9rem; color: var(--grey-sec); margin-bottom: 16px; }
.otros-list { display: flex; flex-direction: column; gap: 12px; }
.otros-list a { display: flex; gap: 12px; align-items: center; color: var(--text); transition: color .2s; }
.otros-list a:hover { color: var(--cyan-dark); }
.otros-list img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.otros-ph { width: 64px; height: 48px; background: var(--grey-section); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--grey-sec); }
.otros-list span { font-size: .88rem; line-height: 1.4; }

/* ── LIGHTBOX ── */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 3000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lb-overlay[hidden] { display: none; }
.lb-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lb-close {
  position: fixed; top: 20px; right: 20px; background: rgba(255,255,255,.15);
  border: none; border-radius: 50%; width: 42px; height: 42px; cursor: pointer;
  color: var(--white); font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,.15); border: none; border-radius: 50%;
  width: 46px; height: 46px; cursor: pointer; color: var(--white); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }

/* ════════════════════════════════════
   ARCHIVE PROYECTOS
════════════════════════════════════ */
.archive-hero {
  margin-top: var(--header-h); background: var(--cyan-dark); padding: 64px 24px;
}
.archive-title { font-size: 2.2rem; color: var(--white); }
.archive-subtitle { color: rgba(255,255,255,.82); margin-top: 12px; max-width: 600px; }
.archive-main { padding: 56px 24px 72px; }
.proy-grid--archive { grid-template-columns: repeat(3,1fr); }
.archive-pagination { display: flex; justify-content: center; margin-top: 48px; }
.archive-pagination .nav-links { display: flex; gap: 8px; }
.archive-pagination a, .archive-pagination span {
  padding: 8px 14px; border-radius: 6px; font-size: .9rem;
  border: 1.5px solid var(--grey-border); color: var(--text); transition: all .2s;
}
.archive-pagination a:hover { background: var(--cyan); color: var(--white); border-color: var(--cyan); }
.archive-pagination .current { background: var(--cyan-dark); color: var(--white); border-color: var(--cyan-dark); }
.no-results { color: var(--grey-sec); font-size: 1rem; padding: 24px 0; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .prod-grid, .serv-grid, .proy-grid, .proy-grid--archive { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .proyecto-wrap { grid-template-columns: 1fr; }
  .proyecto-sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1 1 260px; }
}
@media (max-width: 768px) {
  #site-nav .nav-list {
    display: none; flex-direction: column; position: absolute;
    top: var(--header-h); left: 0; right: 0; background: var(--cyan-dark);
    padding: 16px 24px; box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  #site-nav .nav-list.open { display: flex; }
  #site-nav .nav-list li { border-bottom: 1px solid rgba(255,255,255,.1); }
  #site-nav .nav-list a { display: block; padding: 13px 0; font-size: .95rem; }
  .hamburger { display: block; margin-left: auto; }

  section { padding: 76px 20px 56px; }
  .sec-title { font-size: 1.6rem; }
  .empresa-grid, .mv-grid, .contacto-grid { gap: 20px; }
  .prod-grid, .serv-grid, .proy-grid, .proy-grid--archive { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ubic-info { flex-direction: column; gap: 20px; }

  .hero { height: 480px; }
  .hero-content { padding: 0 28px; }
  .hero-title { font-size: 1.7rem; }
  .hero-arrow { width: 38px; height: 38px; }

  .proyecto-hero { height: 320px; }
  .galeria-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  section { padding: 70px 16px 48px; }
  .sec-title { font-size: 1.4rem; }
  .hero { height: 400px; }
  .hero-content { padding: 0 20px; }
  .hero-title { font-size: 1.45rem; }
  .prod-grid, .serv-grid, .proy-grid, .proy-grid--archive { gap: 12px; }
  .empresa-grid { gap: 16px; }
  .mv-card { padding: 24px 20px; }
  .prod-body, .proy-caption { padding: 14px 16px 18px; }
  .proyecto-meta { flex-direction: column; gap: 10px; }
}

/* ── WP ADMIN BAR OFFSET ── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
