/* Renovación visual BARVILL 2026 */
:where(#solicitud, #lineas-negocio, #ingenieria, #procura, #facilidades, #construccion, #mantenimiento, #proyectos, #noticias, #nosotros, #trabaja, #privacidad, #contacto) {
  scroll-margin-top: 104px;
}
:root {
  --surface-soft: #F3F6FA;
  --shadow-soft: 0 18px 48px rgba(3, 36, 87, .10);
  --shadow-card: 0 10px 30px rgba(3, 36, 87, .09);
}
.navbar { box-shadow: 0 8px 24px rgba(3, 36, 87, .06); }
.navbar .container { min-height: 76px; }
.nav-menu { gap: 34px; }
.nav-menu > li > a { font-size: 15px; }
.dropdown-right { right: 0; left: auto; }
.nav-cta .btn { box-shadow: 0 8px 22px rgba(3, 36, 87, .20); }
.hero { min-height: 760px; display: flex; align-items: center; background-position: center 44%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 24, 60, .25), transparent 55%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-top { max-width: 790px; }
.hero-top h1 { max-width: 760px; font-size: clamp(42px, 5.8vw, 72px); line-height: 1.02; letter-spacing: -.5px; text-wrap: balance; }
.hero-top > p:not(.section-label) { max-width: 680px; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn { min-width: 180px; text-align: center; }
.hero-kpis { max-width: 760px; }
.route-card { box-shadow: 0 16px 32px rgba(0, 0, 0, .12); }
.early-contact { background: linear-gradient(180deg, #F3F6FA 0%, #FFFFFF 100%); }
form.contact-form { border-radius: 12px; box-shadow: var(--shadow-soft); }
.sub-card, .method-card, .mvv-card, .office-card { border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sub-card:hover, .method-card:hover, .mvv-card:hover, .office-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: rgba(3, 36, 87, .18); }
.projects-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.projects-heading .section-intro { margin-bottom: 0; }
.project-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { appearance: none; border: 1px solid #D7DEE8; background: #FFFFFF; color: var(--navy); border-radius: 999px; padding: 9px 17px; font: 700 13px/1 'Inter', sans-serif; cursor: pointer; transition: .2s ease; }
.filter-btn:hover, .filter-btn:focus-visible, .filter-btn.active { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.project-gallery { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 22px; margin-bottom: 34px; }
.project-card { background: #FFFFFF; border: 1px solid #DEE4EC; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.project-card[hidden] { display: none; }
.project-image { position: relative; display: block; width: 100%; height: 250px; padding: 0; border: 0; overflow: hidden; background: #DCE3EC; cursor: zoom-in; }
.project-card-featured .project-image { height: 310px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-image:hover img { transform: scale(1.035); }
.project-image span { position: absolute; right: 14px; bottom: 14px; padding: 8px 11px; border-radius: 5px; background: rgba(3, 24, 60, .88); color: #FFFFFF; font: 700 11px/1 'Inter', sans-serif; opacity: 0; transform: translateY(5px); transition: .2s ease; }
.project-image:hover span, .project-image:focus-visible span { opacity: 1; transform: none; }
.project-collage img { object-position: left center; }
.project-collage-right img { object-position: right center; }
.project-content { padding: 22px; }
.project-content h3 { font-size: 21px; margin: 12px 0 9px; }
.project-content p { color: var(--text-light); font-size: 14px; }
.project-meta { display: flex; justify-content: space-between; gap: 10px; color: #6B7580; font: 600 11px/1.2 'Inter', sans-serif; }
.status-badge { color: #824000; background: #FFF1E5; border-radius: 999px; padding: 5px 8px; }
.project-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.project-tags span { padding: 6px 9px; border-radius: 4px; background: var(--surface-soft); color: var(--navy); font: 700 11px/1 'Inter', sans-serif; }
.portfolio-summary { display: flex; align-items: center; min-height: 64px; padding: 16px 20px; margin-bottom: 12px; border-left: 4px solid var(--accent); background: #FFFFFF; color: var(--text-light); }
.portfolio-summary strong { color: var(--navy); }
.image-lightbox { width: min(1100px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 12px; overflow: visible; background: transparent; }
.image-lightbox::backdrop { background: rgba(0, 13, 35, .88); backdrop-filter: blur(4px); }
.image-lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; background: #07162B; }
.lightbox-close { position: absolute; top: -44px; right: 0; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: #FFFFFF; color: var(--navy); font-size: 25px; cursor: pointer; }

/* Noticias y avances de obra */
.news-feed { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.news-card { display: grid; grid-template-columns: 240px 1fr; background: #FFFFFF; border: 1px solid #DEE4EC; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.news-thumb { position: relative; overflow: hidden; background: #DCE3EC; min-height: 180px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-content { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.news-date { align-self: flex-start; font: 700 11px/1 'Inter', sans-serif; letter-spacing: .5px; text-transform: uppercase; color: var(--accent-text); background: #FFF1E5; padding: 6px 11px; border-radius: 999px; margin-bottom: 12px; }
.news-content h3 { font-size: 20px; margin-bottom: 8px; }
.news-content p { font-size: 14px; color: var(--text-light); margin: 0; font-family: 'Inter', sans-serif; }
@media (max-width: 720px) {
  .news-card { grid-template-columns: 1fr; }
  .news-thumb { min-height: 200px; }
}

.news-card-featured { grid-template-columns: 1fr; border: 1px solid rgba(3, 36, 87, .14); box-shadow: var(--shadow-soft); }
.news-media { background: #07162B; }
.news-video { width: 100%; max-height: 460px; display: block; background: #000; }
.news-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.news-gallery button { padding: 0; border: 0; margin: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.news-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.news-gallery button:hover img, .news-gallery button:focus-visible img { transform: scale(1.05); }
.news-card-featured .news-content { padding: 24px 28px 28px; }
@media (max-width: 560px) {
  .news-gallery { grid-template-columns: repeat(3, 1fr); }
  .news-video { max-height: 280px; }
}
@media (max-width: 1100px) {
  .project-gallery { grid-template-columns: 1fr 1fr; }
  .project-card-featured { grid-column: 1 / -1; }
  .hero { min-height: auto; }
}
@media (max-width: 720px) {
  .topbar .container { justify-content: center; }
  .topbar-links:first-child { display: none; }
  .topbar-links { justify-content: center; font-size: 11px; }
  .navbar .container { min-height: 68px; }
  .hero-top h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero-top > p:not(.section-label) { font-size: 16px; line-height: 1.65; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .projects-heading { align-items: flex-start; flex-direction: column; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; }
  .project-image, .project-card-featured .project-image { height: 240px; }
  .project-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .filter-btn { flex: 0 0 auto; }
}
