/*
 * Familia de tema "Obras" (Fase 82) — constructoras, ingeniería y suministros de obra.
 * Hoja de estilo propia, independiente de user_template.css y de Bootstrap.
 */

:root {
  --obr-navy: #0F2A47;
  --obr-navy-dark: #0A1C31;
  --obr-yellow: #F2B705;
  --obr-yellow-dark: #B98A00;
  --obr-paper: #F2F3F4;
  --obr-surface: #FFFFFF;
  --obr-ink: #0A1C31;
  --obr-muted: #5C6773;
  --obr-line: #D9DCE0;
  --obr-font: 'Barlow', sans-serif;
  --obr-font-head: 'Barlow Condensed', sans-serif;
}

.obr-body { margin: 0; background: var(--obr-paper); color: var(--obr-ink); font-family: var(--obr-font); font-size: 15.5px; line-height: 1.55; }
.obr-body :where(a) { color: inherit; text-decoration: none; } /* :where() — sin peso, para que los botones-enlace (.obr-btn…) conserven su color */
.obr-body img { max-width: 100%; display: block; }
.obr-body h1, .obr-body h2, .obr-body h3 { font-family: var(--obr-font-head); font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: .01em; }

.obr-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* ------------------------------------------------------------- botones --- */
.obr-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 2px; padding: 13px 24px; font-weight: 600; font-size: 14px; border: 1.5px solid transparent; cursor: pointer; font-family: var(--obr-font); }
.obr-btn--yellow { background: var(--obr-yellow); color: #fff; }
.obr-btn--yellow:hover { background: var(--obr-yellow-dark); }
.obr-btn--outline { background: transparent; border-color: var(--obr-navy); color: var(--obr-navy); }
.obr-link-btn { font-weight: 600; font-size: 13.5px; color: var(--obr-navy); }
.obr-link-btn--sm { font-size: 12.5px; }

.obr-icon-btn { width: 36px; height: 36px; border-radius: 2px; background: var(--obr-paper); border: 1px solid var(--obr-line); display: inline-flex; align-items: center; justify-content: center; color: var(--obr-navy); cursor: pointer; }
.obr-icon-btn--yellow { background: var(--obr-yellow); color: #fff; border-color: var(--obr-yellow); }

/* --------------------------------------------------------------- input --- */
.obr-input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--obr-line); border-radius: 2px; padding: 12px 14px; font-family: var(--obr-font); font-size: 14px; background: #fff; color: var(--obr-ink); }
.obr-input--sm { padding: 9px 12px; font-size: 13px; }
.obr-input--qty { width: 90px; }

.obr-eyebrow { display: block; font-weight: 700; font-size: 12.5px; color: var(--obr-yellow-dark); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }

/* ------------------------------------------------------------- header --- */
.obr-header { background: var(--obr-surface); border-bottom: 1px solid var(--obr-line); }
.obr-header__row { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.obr-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.obr-brand__mark { width: 48px; height: 48px; border-radius: 2px; background: var(--obr-navy); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.obr-brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.obr-brand__name { font-family: var(--obr-font-head); font-weight: 700; font-size: 19px; display: block; line-height: 1.1; color: var(--obr-navy); }
.obr-brand__tagline { font-size: 11px; color: var(--obr-muted); display: block; margin-top: 4px; }

.obr-nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--obr-navy); cursor: pointer; }
.obr-nav__links { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.obr-nav__links > li > a { font-size: 13.5px; font-weight: 600; color: var(--obr-muted); padding: 9px 14px; border-radius: 2px; display: inline-block; }
.obr-nav__links > li > a:hover { background: var(--obr-paper); }
.obr-nav__links > li > a.is-active { color: #fff; background: var(--obr-yellow); }
.obr-nav__dropdown { position: relative; }
.obr-nav__dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--obr-line); border-radius: 2px; list-style: none; padding: 8px; margin: 8px 0 0; min-width: 200px; z-index: 20; box-shadow: 0 14px 32px rgba(10,28,49,.12); }
.obr-nav__dropdown:hover .obr-nav__dropdown-menu, .obr-nav__dropdown:focus-within .obr-nav__dropdown-menu { display: block; }
.obr-nav__dropdown-menu li a { display: block; padding: 8px 10px; font-size: 13.5px; color: var(--obr-ink); border-radius: 2px; }
.obr-nav__dropdown-menu li a:hover { background: var(--obr-paper); }

.obr-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

@media (max-width: 900px) {
  .obr-nav-toggle { display: block; }
  .obr-nav { display: none; width: 100%; order: 3; }
  .obr-nav.obr-nav--open { display: block; }
  .obr-nav__links { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0; }
  .obr-nav__dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 12px; }
  .obr-header__row { flex-wrap: wrap; }
}

/* ------------------------------------------------------------ tracker --- */
.obr-tracker { background: var(--obr-navy); }
.obr-tracker--alt { background: var(--obr-navy-dark); }
.obr-tracker__row { padding-block: 9px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) { .obr-tracker__row { flex-direction: row; align-items: center; } }
.obr-tracker__label { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; }
.obr-tracker__form { display: flex; gap: 8px; flex-grow: 1; }

/* ------------------------------------------------------------ section --- */
.obr-section { padding-block: 48px; }
.obr-section--band { background: var(--obr-surface); }
.obr-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.obr-empty, .obr-empty-card { color: var(--obr-muted); text-align: center; padding: 24px; background: var(--obr-surface); border: 1px solid var(--obr-line); border-radius: 2px; }

/* ---------------------------------------------------------- productos --- */
.obr-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 640px) { .obr-product-grid { grid-template-columns: repeat(4, 1fr); } }
.obr-product-grid--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .obr-product-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.obr-product-card { background: var(--obr-surface); border: 1px solid var(--obr-line); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.obr-product-card__media { display: block; aspect-ratio: 1/1; background: var(--obr-paper); overflow: hidden; }
.obr-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.obr-product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.obr-product-card__tag { font-size: 11px; color: var(--obr-yellow-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.obr-product-card__title { font-family: var(--obr-font-head); font-size: 14.5px; font-weight: 700; }
.obr-product-card__desc { font-size: 12.5px; color: var(--obr-muted); margin: 0; flex-grow: 1; }
.obr-product-card__actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.obr-product-card__actions form { display: contents; }

/* ------------------------------------------------------------- noticias --- */
.obr-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .obr-news-grid { grid-template-columns: repeat(4, 1fr); } }
.obr-news-card { background: var(--obr-surface); border: 1px solid var(--obr-line); border-radius: 2px; overflow: hidden; }
.obr-news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--obr-paper); }
.obr-news-card span { display: block; padding: 12px; font-weight: 600; font-size: 13.5px; }

.obr-brand-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.obr-brand-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--obr-surface); border: 1px solid var(--obr-line); border-radius: 2px; padding: 8px 14px; font-size: 13px; font-weight: 600; }

/* --------------------------------------------------------------- shop --- */
.obr-shop-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .obr-shop-layout { grid-template-columns: 260px 1fr; } }
.obr-sidebar { background: var(--obr-surface); border: 1px solid var(--obr-line); border-radius: 2px; padding: 18px; align-self: start; }
.obr-sidebar__title { font-family: var(--obr-font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.obr-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.obr-sidebar__nav a { padding: 9px 10px; font-size: 13.5px; color: var(--obr-muted); border-radius: 2px; }
.obr-sidebar__nav a.is-active { background: var(--obr-paper); color: var(--obr-navy); font-weight: 700; }
.obr-search-form { display: flex; gap: 10px; margin-bottom: 22px; }

.obr-pagination { margin-top: 24px; }
.obr-pagination .pagination { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; }
.obr-pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--obr-line); border-radius: 2px; background: #fff; color: var(--obr-navy); font-size: 13.5px; text-decoration: none; padding: 0 10px; }
.obr-pagination .page-item.active .page-link { background: var(--obr-yellow); border-color: var(--obr-yellow); color: #fff; }
.obr-pagination .page-item.disabled .page-link { color: #B6BEC4; }

/* ---------------------------------------------------------- breadcrumb --- */
.obr-breadcrumb { font-size: 13px; color: var(--obr-muted); margin-bottom: 20px; }
.obr-breadcrumb a { color: var(--obr-muted); }
.obr-breadcrumb span { color: var(--obr-ink); font-weight: 600; }

/* ---------------------------------------------------- product detail --- */
.obr-product-detail { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 900px) { .obr-product-detail { grid-template-columns: 1fr 1fr; } }
.obr-product-detail__media { background: var(--obr-surface); border: 1px solid var(--obr-line); border-radius: 2px; padding: 12px; }
.obr-product-detail__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--obr-paper); border-radius: 2px; }
.obr-product-detail__title { font-size: 26px; margin: 10px 0 0; line-height: 1.15; color: var(--obr-navy); }
.obr-product-detail__desc { color: var(--obr-muted); margin: 12px 0 0; }
.obr-product-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.obr-spec-table { background: var(--obr-surface); border: 1px solid var(--obr-line); border-radius: 2px; padding: 16px; margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.obr-spec-table > div { display: flex; justify-content: space-between; font-size: 13.5px; padding-block: 2px; }
.obr-spec-table span { color: var(--obr-muted); }

.obr-buy-form { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.obr-buy-form__label { display: block; font-size: 12.5px; color: var(--obr-muted); margin-bottom: 6px; }

/* ------------------------------------------------------------- footer --- */
.obr-footer { background: var(--obr-navy-dark); padding-top: 48px; margin-top: 56px; }
.obr-footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
@media (min-width: 900px) { .obr-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.obr-footer__name { font-family: var(--obr-font-head); font-weight: 700; font-size: 17px; color: #fff; }
.obr-footer__desc { font-size: 13px; color: #9AA8B8; line-height: 1.6; max-width: 260px; margin: 12px 0 0; }
.obr-footer__social { display: flex; gap: 14px; margin-top: 14px; }
.obr-footer__social a { color: #9AA8B8; font-size: 16px; }
.obr-footer__heading { font-weight: 700; font-size: 12.5px; color: #fff; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.obr-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.obr-footer__links a { color: #9AA8B8; font-size: 13px; }
.obr-footer__links--plain li { color: #9AA8B8; font-size: 13px; }
.obr-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; }
.obr-footer__bar-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: #75859A; }
.obr-footer__bar a { color: #75859A; }

/* ------------------------------------------------------------- flotante -- */
.obr-wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 8px 24px rgba(0,0,0,.28); z-index: 50; }

/* Encabezado y pie: su propia tipografía, para verse igual en el layout compartido. */
.obr-header, .obr-tracker, .obr-footer { font-family: var(--obr-font); line-height: 1.55; }
.obr-header a, .obr-tracker a, .obr-footer a { text-decoration: none; }
.obr-header ul, .obr-footer ul { list-style: none; margin: 0; padding: 0; }
.obr-header { position: sticky; top: 0; z-index: 30; }
.obr-header__row { gap: 16px; }
.obr-nav { flex: 1; display: flex; justify-content: center; }
.obr-nav__links { justify-content: center; }
@media (max-width: 900px) {
  .obr-nav { display: none; flex: none; }
  .obr-nav.obr-nav--open { display: block; }
  .obr-header__actions .obr-link-btn { display: none; }
}

.obr-btn--yellow { color: var(--obr-navy); }
.obr-btn--yellow:hover { color: var(--obr-navy); }
.obr-btn--navy { background: var(--obr-navy); color: #fff; }
.obr-btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.obr-icon-btn--yellow { color: var(--obr-navy); }
.obr-eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--obr-yellow-dark); }

/* ------------------------------------------------------ barra superior --- */
.obr-topbar { background: var(--obr-navy-dark); color: #C5CFDB; font-family: var(--obr-font); font-size: 12.5px; }
.obr-topbar__row { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 7px; }
.obr-topbar a, .obr-topbar span { color: #C5CFDB; text-decoration: none; }
.obr-topbar i { color: var(--obr-yellow); margin-right: 4px; }

/* ------------------------------------------------------------- header --- */
.obr-header { background: var(--obr-navy); border-bottom: 4px solid var(--obr-yellow); position: sticky; top: 0; z-index: 30; }
.obr-brand { color: #fff; }
.obr-brand__mark { background: var(--obr-yellow); border-radius: 2px; }
.obr-brand__name { color: #fff; font-family: var(--obr-font-head); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.obr-nav__links > li > a { color: #C5CFDB; border-radius: 2px; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.obr-nav__links > li > a:hover { background: rgba(255,255,255,.08); color: #fff; }
.obr-nav__links > li > a.is-active { background: var(--obr-yellow); color: var(--obr-navy); }
.obr-header .obr-link-btn, .obr-nav-toggle { color: #fff; }
.obr-header .obr-icon-btn { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }

/* --------------------------------------------------------------- hero --- */
.obr-hero { background-color: var(--obr-navy); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 36px 36px; padding-block: 88px; }
.obr-hero__title { font-size: clamp(40px, 6vw, 72px); color: #fff; line-height: 1; max-width: 16ch; }
.obr-hero__lede { font-size: 17px; color: #C5CFDB; margin: 18px 0 0; max-width: 52ch; }
.obr-hero .obr-eyebrow { color: var(--obr-yellow); }
.obr-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ------------------------------------------------------------- cifras --- */
.obr-stats { background: var(--obr-yellow); }
.obr-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .obr-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.obr-stats__item { padding: 22px 16px; border-right: 2px solid rgba(15,42,71,.15); display: flex; flex-direction: column; align-items: center; text-align: center; }
.obr-stats__item:last-child { border-right: none; }
.obr-stats__n { font-family: var(--obr-font-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--obr-navy); }
.obr-stats__label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--obr-navy); margin-top: 4px; }

/* ------------------------------------------------------------- obras --- */
.obr-section--concrete { background: #E6E9ED; }
.obr-works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
@media (min-width: 720px) { .obr-works { grid-template-columns: repeat(3, 1fr); } }
.obr-work { position: relative; display: block; overflow: hidden; }
.obr-work img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #E6E9ED; transition: transform .3s ease; }
.obr-work:hover img { transform: scale(1.04); }
.obr-work__label { position: absolute; left: 0; bottom: 0; background: var(--obr-yellow); color: var(--obr-navy); padding: 8px 14px; font-family: var(--obr-font-head); font-weight: 700; font-size: 15px; text-transform: uppercase; max-width: 90%; }

.obr-product-card { border-top: 4px solid var(--obr-yellow); }
.obr-cta { background: var(--obr-yellow); padding-block: 40px; }
.obr-cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.obr-cta__title { font-family: var(--obr-font-head); font-size: clamp(24px, 3vw, 34px); color: var(--obr-navy); }
