/* ============================================================
   AL MILÍMETRO CAMPERS – Main Stylesheet
   Aesthetic: Industrial · Raw · Adventurous · Precise
   ============================================================ */

:root {
  --black:    #0d0d0d;
  --dark:     #141414;
  --charcoal: #1e1e1e;
  --steel:    #2a2a2a;
  --iron:     #3a3a3a;
  --smoke:    #888;
  --silver:   #b8b8b8;
  --white:    #f5f2ee;
  --cream:    #ede9e3;
  --accent:   #d4a832;      /* Warm amber/gold */
  --accent2:  #c0392b;      /* Deep red */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  transition: box-shadow var(--transition);
}
/* El fondo/blur se pinta en un ::before y no en .navbar directamente:
   ponerle backdrop-filter a .navbar convertiría a .navbar en el
   contenedor de referencia de sus hijos position:fixed (.navbar__links),
   rompiendo el menú móvil en pantalla completa al hacer scroll. */
.navbar::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
  pointer-events: none;
}
.navbar.scrolled::before {
  opacity: 1;
}
.navbar.scrolled {
  box-shadow: 0 1px 0 rgba(212,168,50,0.2);
}
.navbar__logo {
  display: flex; align-items: center;
}
.navbar__svg-logo {
  height: 40px;
  width: auto;
  color: var(--accent);
  transition: color var(--transition);
}
.navbar__logo:hover .navbar__svg-logo {
  color: var(--white);
}

.navbar__links {
  display: flex; align-items: center; gap: 36px;
}
.navbar__links a {
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--silver);
  transition: color var(--transition);
  position: relative;
}
.navbar__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--white); }
.navbar__links a:hover::after,
.navbar__links a.active::after { transform: scaleX(1); }

.navbar__cta {
  border: 1px solid var(--accent) !important;
  padding: 8px 20px !important;
  color: var(--accent) !important;
  transition: background var(--transition), color var(--transition) !important;
}
.navbar__cta:hover {
  background: var(--accent) !important;
  color: var(--black) !important;
}
.navbar__cta::after { display: none !important; }

.navbar__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: var(--transition);
}

/* ── HERO CAROUSEL ──────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  overflow: hidden;
}
.hero__slides {
  position: absolute; inset: 0;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease;
  background: var(--dark) center/cover no-repeat;
}
.hero__slide.active { opacity: 1; }
.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.3) 0%,
    rgba(13,13,13,0.1) 40%,
    rgba(13,13,13,0.7) 100%
  );
}

/* Placeholder gradient slides */
.hero__slide:nth-child(1) { background-color: #1a1a1a; background-image: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1005 100%); }
.hero__slide:nth-child(2) { background-color: #0d1a12; background-image: linear-gradient(135deg, #0d1a12 0%, #1a2e20 50%, #0d0d0d 100%); }
.hero__slide:nth-child(3) { background-color: #1a1200; background-image: linear-gradient(135deg, #1a1200 0%, #2a1e05 50%, #0d0d0d 100%); }

.hero__content {
position: relative; z-index: 10;
  height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 80px 60px;
  padding-top: calc(var(--nav-h) + 40px);
}
.hero__label {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(4rem, min(10vw, 15vh), 9rem);
  line-height: 0.9; color: var(--white); letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero__title em { color: var(--accent); font-style: normal; }
.hero__subtitle {
  font-size: 1.1rem; font-weight: 300; color: var(--silver);
  max-width: 480px; margin-bottom: 40px; line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: var(--transition); cursor: pointer;
  border: none; font-family: var(--font-body);
}
.btn--primary {
  background: var(--accent); color: var(--black);
}
.btn--primary:hover { background: #e8bc44; transform: translateY(-2px); }
.btn--outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  border-color: var(--white); background: rgba(255,255,255,0.05);
}

/* Carousel dots */
.hero__dots {
  position: absolute; bottom: 40px; right: 60px;
  display: flex; gap: 8px; z-index: 10;
}
.hero__dot {
  width: 28px; height: 2px; background: rgba(255,255,255,0.3);
  cursor: pointer; transition: var(--transition);
}
.hero__dot.active {
  background: var(--accent); width: 48px;
}

/* ── SECTIONS COMMON ────────────────────────────────────────── */
.section {
  padding: 100px 60px;
}
.section--dark { background: var(--black); }
.section--charcoal { background: var(--charcoal); }

.section__tag {
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
  display: block;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95; color: var(--white);
  margin-bottom: 32px;
}
.section__title span { color: var(--accent); }
.section__lead {
  font-size: 1.05rem; font-weight: 300; color: var(--silver);
  max-width: 600px; line-height: 1.8;
}

/* Divider */
.divider {
  width: 48px; height: 2px; background: var(--accent);
  margin: 24px 0;
}

/* ── QUIÉNES SOMOS (HOME PREVIEW) ───────────────────────────── */
.about-preview {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-preview__visual {
  position: relative;
}
.about-preview__img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  background: var(--steel);
  position: relative; z-index: 1;
}
.about-preview__img-placeholder {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--steel) 0%, var(--iron) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--smoke);
}
.about-preview__frame {
  position: absolute; top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 1px solid var(--accent); z-index: 0;
}
.about-preview__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 48px;
}
.stat {
  border-left: 2px solid var(--accent); padding-left: 16px;
}
.stat__number {
  font-family: var(--font-display); font-size: 2.8rem;
  color: var(--accent); line-height: 1;
}
.stat__label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--smoke); margin-top: 4px;
}

/* ── TRABAJOS GRID ──────────────────────────────────────────── */
.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
.trabajo-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  background: var(--steel);
  display: block;
}
.trabajo-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.trabajo-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--steel), var(--iron));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--smoke);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.trabajo-card:hover .trabajo-card__img,
.trabajo-card:hover .trabajo-card__placeholder { transform: scale(1.06); }
.trabajo-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
  display: flex; align-items: flex-end; padding: 28px;
}
.trabajo-card:hover .trabajo-card__overlay { opacity: 1; }
.trabajo-card__info { }
.trabajo-card__title {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--white); margin-bottom: 4px;
}
.trabajo-card__meta {
  font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.trabajo-card__arrow {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--black);
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
}
.trabajo-card:hover .trabajo-card__arrow {
  opacity: 1; transform: translateY(0);
}

/* ── TRABAJO DETAIL ─────────────────────────────────────────── */
.trabajo-detail__hero {
  width: 100%; max-height: 70vh; object-fit: cover;
  margin-top: var(--nav-h);
  background: var(--steel);
}
.trabajo-detail__hero-placeholder {
  width: 100%; height: 60vh;
  background: linear-gradient(135deg, var(--steel), var(--charcoal));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; margin-top: var(--nav-h);
}
.trabajo-detail__body { max-width: 900px; margin: 0 auto; padding: 80px 40px; overflow-x: hidden; word-break: break-word; }
.trabajo-detail__gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-top: 48px;
}
.trabajo-detail__gallery img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.trabajo-detail__gallery-ph {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: var(--steel);
}

/* ── PRESUPUESTO FORM ───────────────────────────────────────── */
.form-section {
  max-width: 720px; margin: 0 auto;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.form-group {
  display: flex; flex-direction: column; gap: 8px;
}
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver); font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--charcoal);
  border: 1px solid var(--iron);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 300;
  outline: none; transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group select option { background: var(--charcoal); }
.form-submit { margin-top: 32px; }
.form-note {
  margin-top: 16px; font-size: 0.82rem;
  color: var(--smoke); text-align: center;
}
.alert {
  padding: 14px 20px; margin-bottom: 24px;
  font-size: 0.9rem; border-left: 3px solid;
}
.alert--success { background: rgba(39,174,96,0.1); border-color: #27ae60; color: #2ecc71; }
.alert--error   { background: rgba(192,57,43,0.1);  border-color: var(--accent2); color: #e74c3c; }

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 60px;
  padding-left: 60px; padding-right: 60px;
  background: var(--dark);
  border-bottom: 1px solid var(--iron);
}
.page-hero__breadcrumb {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--smoke); margin-bottom: 20px;
}
.page-hero__breadcrumb a { color: var(--accent); }
.page-hero__breadcrumb a:hover { text-decoration: underline; }

/* ── QUIÉNES SOMOS PAGE ─────────────────────────────────────── */
.about-full { max-width: 1100px; margin: 0 auto; }
.about-full__grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 80px; align-items: start; margin-bottom: 80px;
}
.about-full__text p { 
  color: var(--silver); line-height: 1.9; margin-bottom: 20px;
}
.valores-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.valor-card {
  background: var(--charcoal); padding: 36px 28px;
  border-top: 2px solid var(--accent);
  transition: background var(--transition);
}
.valor-card:hover { background: var(--steel); }
.valor-card__icon { font-size: 2rem; margin-bottom: 16px; }
.valor-card__title {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--white); margin-bottom: 10px;
}
.valor-card__text { font-size: 0.9rem; color: var(--smoke); line-height: 1.7; }

/* ── ADMIN PANEL ────────────────────────────────────────────── */
.admin-body {
  background: #111; color: var(--white);
  font-family: var(--font-body); min-height: 100vh;
}
.admin-nav {
  background: var(--charcoal); padding: 0 32px;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--iron);
}
.admin-nav__brand {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--accent); letter-spacing: 0.05em;
}
.admin-nav__links { display: flex; gap: 24px; }
.admin-nav__links a {
  font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--silver);
  padding: 6px 0;
  transition: color var(--transition);
}
.admin-nav__links a:hover { color: var(--accent); }

.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar {
  width: 220px; background: var(--dark);
  padding: 32px 0; flex-shrink: 0;
  border-right: 1px solid var(--iron);
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 28px; font-size: 0.85rem;
  color: var(--silver); transition: var(--transition);
  border-left: 2px solid transparent;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--white); border-left-color: var(--accent);
  background: rgba(212,168,50,0.05);
}

.admin-main { flex: 1; padding: 40px; overflow-y: auto; }
.admin-title {
  font-family: var(--font-display); font-size: 2.2rem;
  color: var(--white); margin-bottom: 32px;
}

.admin-card {
  background: var(--charcoal); padding: 28px;
  border: 1px solid var(--iron); margin-bottom: 24px;
}
.admin-card h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--accent); margin-bottom: 20px;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-card { overflow-x: hidden; }
.admin-table th {
  text-align: left; padding: 10px 14px;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--smoke);
  border-bottom: 1px solid var(--iron);
}
.admin-table td {
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem; vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table img { width: 60px; height: 45px; object-fit: cover; }

.badge {
  display: inline-block; padding: 3px 10px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}
.badge--green { background: rgba(39,174,96,0.15); color: #2ecc71; }
.badge--yellow { background: rgba(212,168,50,0.15); color: var(--accent); }

.btn-sm {
  padding: 6px 14px; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
  transition: var(--transition); border: none; font-family: var(--font-body);
}
.btn-danger { background: rgba(192,57,43,0.2); color: #e74c3c; border: 1px solid rgba(192,57,43,0.4); }
.btn-danger:hover { background: var(--accent2); color: var(--white); }

/* Upload area */
.upload-zone {
  border: 2px dashed var(--iron); padding: 40px;
  text-align: center; cursor: pointer;
  transition: border-color var(--transition);
}
.upload-zone:hover { border-color: var(--accent); }
.upload-zone p { color: var(--smoke); font-size: 0.9rem; margin-top: 8px; }

/* Admin login */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--black);
}
.login-box {
  width: 380px; background: var(--charcoal);
  padding: 48px 40px; border: 1px solid var(--iron);
}
.login-box h1 {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--accent); margin-bottom: 8px;
}
.login-box p { color: var(--smoke); font-size: 0.85rem; margin-bottom: 32px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-preview, .about-full__grid { grid-template-columns: 1fr; gap: 48px; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) and (max-height: 760px) {
  .hero__content { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 48px; }
  .hero__title { font-size: clamp(3rem, min(8vw, 11vh), 7rem); margin-bottom: 16px; }
  .hero__label { margin-bottom: 8px; }
  .hero__subtitle { margin-bottom: 24px; }
}
@media (max-width: 768px) {
  .section, .page-hero { padding: 70px 24px; }
  .hero__content { padding: 60px 24px; }
  .hero__dots { right: 24px; bottom: 24px; }
  .navbar { padding: 0 24px; }
  .navbar__toggle { display: flex; }
  .navbar__links {
    position: fixed; inset: 0; top: var(--nav-h);
    background: var(--dark); flex-direction: column;
    justify-content: center; align-items: center; gap: 28px;
    transform: translateY(-100%); opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }
  .navbar__links.open {
    transform: translateY(0); opacity: 1; pointer-events: all;
  }
  .navbar__links a { font-size: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .trabajos-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--iron); padding: 16px 0; }
  .admin-sidebar a { padding: 10px 20px; }
}

/* ── HERO VIDEO SLIDES ──────────────────────────────────────── */
.hero__slide--video {
  background: var(--black);
}
.hero__slide--video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  border-top: 1px solid var(--iron);
  padding: 60px 60px 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__brand .logo-mark { color: var(--accent); font-size: 1.6rem; }
.footer__brand .logo-text { font-size: 0.95rem; font-weight: 300; color: var(--silver); }
.footer__brand .logo-text strong { color: var(--white); font-weight: 700; }
.footer__brand p { color: var(--smoke); font-size: 0.88rem; line-height: 1.7; margin-top: 4px; }

.footer__links h4,
.footer__contact h4 {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver); font-weight: 600; margin-bottom: 20px;
}
.footer__links ul li { margin-bottom: 10px; }
.footer__links ul li a {
  color: var(--smoke); font-size: 0.88rem;
  transition: color var(--transition);
}
.footer__links ul li a:hover { color: var(--accent); }

.footer__contact p {
  color: var(--smoke); font-size: 0.88rem; margin-bottom: 8px;
}
.footer__contact a { transition: color var(--transition); }
.footer__contact a:hover { color: var(--accent); }

.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 34px; height: 34px; border: 1px solid var(--iron);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--smoke);
  transition: border-color var(--transition), color var(--transition);
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--iron);
  padding-top: 20px; text-align: center;
  color: var(--smoke); font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .footer { padding: 48px 24px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
/* ── WHATSAPP FLOAT ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.6);
}

.detail-chips { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; }
.chip { background: var(--charcoal); border: 1px solid var(--iron); padding: 10px 16px; min-width: 0; word-break: break-word; }
.chip-lbl { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); }
.chip-val { font-weight: 600; font-size: 13px; margin-top: 3px; word-break: break-word; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
.lightbox__close {
  position: absolute; top: 20px; right: 28px;
  font-size: 2.5rem; color: var(--white); cursor: pointer;
  line-height: 1; transition: color var(--transition);
}
.lightbox__close:hover { color: var(--accent); }
.lightbox__prev,
.lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2rem; color: var(--white); cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 18px; transition: background var(--transition), color var(--transition);
}
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--accent); color: var(--black); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 0.82rem; letter-spacing: 0.15em; color: var(--smoke);
}
.trabajo-detail__gallery img { cursor: pointer; transition: opacity 0.2s; }
.trabajo-detail__gallery img:hover { opacity: 0.8; }

/* ── CARRUSEL TRABAJOS HOME ── */
.trabajos-carousel { position: relative; overflow: hidden; }
.trabajos-carousel__track {
  display: flex; gap: 12px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.trabajos-carousel .trabajo-card {
  flex: 0 0 calc(33.333% - 8px);
  cursor: default;
}
.trabajos-carousel__btns {
  display: flex; justify-content: center; gap: 12px; margin-top: 24px;
}
.carousel-btn {
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--iron);
  color: var(--white); font-size: 1.2rem; cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }

@media (max-width: 900px) {
  .trabajos-carousel .trabajo-card { flex: 0 0 calc(50% - 6px); }
}
@media (max-width: 600px) {
  .trabajos-carousel .trabajo-card { flex: 0 0 100%; }
}

.footer__svg-logo-vertical {
  height: 80px;
  width: auto;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
  margin-right: auto;
}

/* ── ELECTRICA SECTION ── */
@media (max-width: 900px) {
  .section > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
}

/* ── MAPA RESPONSIVE ── */
@media (max-width: 900px) {
  .seccion-mapa-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ── PORTFOLIO GRID ── */
.portfolio-grid {
  columns: 3;
  column-gap: 8px;
}
.portfolio-item {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
}
.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
  cursor: pointer;
}
.portfolio-item:hover img {
  transform: scale(1.03);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .portfolio-grid { columns: 2; }
}
@media (max-width: 600px) {
  .portfolio-grid { columns: 1; }
}

/* ── PORTFOLIO UNIFORME ── */
.portfolio-grid-uniform {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.portfolio-item-uniform {
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.portfolio-item-uniform img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.portfolio-item-uniform:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .portfolio-grid-uniform { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .portfolio-grid-uniform { grid-template-columns: 1fr; }
}