:root {
  --ink: #171717;
  --ink-2: #1f1f1e;
  --ink-3: #2a2a28;
  --paper: #f5f5f3;
  --white: #ffffff;
  --yellow: #f5c518;
  --yellow-dark: #ddb00f;
  /* Mostaza para etiquetas sobre fondo claro (un poco más oscuro que #C49B00 para que se lea bien en letra chica) */
  --mustard: #a98400;
  --gray-400: #9a9a96;
  --gray-500: #7a7a76;
  --gray-700: #4a4a47;
  --line: #e4e4e0;
  --line-dark: #333331;
  --radius: 6px;
  --max-width: 1180px;
  --font-head: "Manrope", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-tech: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
mark { background: none; color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 40px; height: 40px; }

/* Etiquetas de sección */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.on-dark .kicker { color: var(--yellow); }

.tech { font-family: var(--font-tech); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

/* Aparición sutil */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .pstep { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--yellow-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: #cfcfca; }
.btn-secondary:hover { border-color: var(--ink); }
.on-dark .btn-secondary { color: var(--white); border-color: #4b4b48; }
.on-dark .btn-secondary:hover { border-color: var(--white); }
.btn .icon-xs { transition: transform 0.2s ease; }
.btn:hover .icon-xs { transform: translateX(3px); }

/* Encabezado */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 92px; }

.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-logo { height: 70px; width: auto; flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a { color: var(--gray-700); text-decoration: none; font-family: var(--font-head); font-size: 0.95rem; font-weight: 500; position: relative; padding: 6px 0; transition: color 0.2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--yellow); transition: right 0.25s var(--ease); }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.main-nav .nav-cta { display: none; }

.header-cta { min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Portada */
.hero { position: relative; background: var(--ink); color: var(--white); padding: 164px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 100% 64px;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); max-width: 16ch; }
.hero h1 span { color: var(--yellow); }
.hero-sub { color: #c9c9c5; font-size: 1.08rem; max-width: 46ch; margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* Espacios para fotos reales */
.photo-slot {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot.is-empty {
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink-3);
  color: #6d6d69;
}
.photo-slot.is-empty .icon-lg { color: var(--yellow); opacity: 0.85; }
.photo-tag {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; border-radius: 4px;
  background: rgba(23,23,23,0.85); color: var(--white);
  font-family: var(--font-tech); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}

.hero-visual { position: relative; }
.hero-visual .photo-slot { aspect-ratio: 1 / 1; }
.hero-visual .photo-slot img { object-position: 50% 32%; }
.hero-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 14px;
  border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden;
}
.hero-facts li {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #d6d6d2;
  font-family: var(--font-tech); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-facts li:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.hero-facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
.hero-facts .icon-sm { color: var(--yellow); width: 16px; height: 16px; }

/* Secciones */
.section { padding: 104px 0; }
.section-light { background: var(--paper); color: var(--ink); }
.section-white { background: var(--white); color: var(--ink); }
.section-dark { background: var(--ink); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-sub { color: var(--gray-700); margin-top: 14px; font-size: 1.04rem; max-width: 58ch; }
.on-dark .section-sub { color: #b4b4b0; }

/* Servicios */
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; border-bottom: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 20px;
  padding: 28px 16px 28px 0;
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.25s ease, padding 0.25s var(--ease);
}
.service-icon {
  grid-row: span 3; width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink); transition: background 0.25s ease;
}
.service-num { font-family: var(--font-tech); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--gray-400); }
.service-copy h3 { font-size: 1.12rem; margin-bottom: 6px; }
.service-copy p { color: var(--gray-700); font-size: 0.95rem; max-width: 44ch; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; justify-self: start;
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid var(--yellow); padding-bottom: 2px;
}
.service-link .icon-xs { transition: transform 0.2s ease; }
.service-row:hover { background: var(--paper); padding-left: 16px; }
.service-row:hover .service-icon { background: var(--yellow); }
.service-row:hover .service-link .icon-xs { transform: translateX(3px); }

/* Edificios (destacado) */
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-copy > p { color: var(--gray-700); font-size: 1.05rem; margin: 18px 0 28px; max-width: 48ch; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-bottom: 34px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.95rem; line-height: 1.4; }
.check-list .tick {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px; margin-top: 1px;
  background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.check-list .tick svg { width: 13px; height: 13px; }

/* Sectores: tarjetas que se montan sobre el final de la portada */
.hero { padding-bottom: 150px; }
.sectors { position: relative; z-index: 2; margin-top: -84px; padding-bottom: 8px; }
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 26px 24px;
  background: var(--white); color: var(--ink); text-decoration: none; border-radius: 10px;
  border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.sector-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,0.14); }
.sector-card:hover::after { transform: scaleX(1); }
.sector-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: var(--paper); margin-bottom: 8px; transition: background 0.25s ease; }
.sector-card:hover .sector-icon { background: var(--yellow); }
.sector-tag { font-family: var(--font-tech); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mustard); }
.sector-title { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.sector-text { color: var(--gray-700); font-size: 0.95rem; }
.sector-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.sector-more .icon-xs { transition: transform 0.2s ease; }
.sector-card:hover .sector-more .icon-xs { transform: translateX(4px); }
.sector-card-strong { background: var(--ink-3); color: var(--white); border-color: var(--ink-3); }
.sector-card-strong .sector-icon { background: var(--yellow); color: var(--ink); }
.sector-card-strong .sector-tag { color: var(--yellow); }
.sector-card-strong .sector-text { color: #b4b4b0; }
.sectors + .section { padding-top: 88px; }

/* Tarjeta final de servicios */
.service-cta .service-icon { background: var(--yellow); }
.service-cta .service-num { color: var(--mustard); letter-spacing: 0.08em; text-transform: uppercase; }

/* Industria (sección destacada) */
.industry { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.industry::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(245,197,24,0.10), transparent 60%),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 64px 100%;
}
.industry .container { position: relative; }
.industry .feature-copy > p { color: #c9c9c5; }
.industry .section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.industry-head { margin-bottom: 64px; }
.industry .photo-slot { aspect-ratio: 16 / 11; }

.industry-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; }
.industry-tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 30px;
  background: var(--ink); color: var(--white); text-decoration: none; transition: background 0.3s ease;
}
.industry-tile .icon-md { color: var(--yellow); margin: 6px 0 4px; }
.industry-tile h3 { font-size: 1.08rem; font-weight: 600; }
.industry-tile p { color: #a8a8a4; font-size: 0.92rem; }
.industry-num { font-family: var(--font-tech); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; color: #6f6f6b; }
.industry-tile:hover { background: var(--ink-3); }
.industry-tile:hover .industry-num { color: var(--yellow); }

.industry-gear { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; margin-top: 28px; padding: 18px 22px; border: 1px dashed var(--line-dark); border-radius: 10px; }
.industry-gear-label { font-family: var(--font-tech); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.industry-gear ul { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.industry-gear li { position: relative; padding-left: 16px; color: #d6d6d2; font-size: 0.95rem; }
.industry-gear li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 2px; background: var(--yellow); }

/* Trabajos realizados */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.project-card:hover { border-color: #cfcfca; transform: translateY(-3px); }
.project-card .photo-slot { border-radius: 0; aspect-ratio: 4 / 3; }
.project-card .photo-slot img { transition: transform 0.5s var(--ease); }
.project-card:hover .photo-slot img { transform: scale(1.03); }
.project-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-cat { font-family: var(--font-tech); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mustard); }
.project-title { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.project-desc { color: var(--gray-700); font-size: 0.93rem; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.project-loc { font-family: var(--font-tech); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.project-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; border-bottom: 1.5px solid var(--yellow); padding-bottom: 2px; }

/* Modal de ficha */
.project-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.project-modal[hidden] { display: none; }
.project-modal-backdrop { position: absolute; inset: 0; background: rgba(15,15,15,0.72); }
.project-modal-panel { position: relative; background: var(--white); color: var(--ink); max-width: 640px; width: 100%; padding: 40px 36px; max-height: 86vh; overflow-y: auto; border-radius: 10px; }
.project-modal-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--gray-700); }
.project-modal-panel h3 { font-weight: 600; font-size: 1.5rem; }
.project-modal-body { margin-top: 16px; color: var(--gray-700); font-size: 0.98rem; }
.project-modal-body p + p { margin-top: 12px; }
.modal-list-title { margin-top: 20px; font-family: var(--font-tech); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mustard); }
.modal-list { margin-top: 8px; display: grid; gap: 6px; }
.modal-list li { position: relative; padding-left: 18px; color: var(--ink); }
.modal-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); }
.modal-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.modal-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* Por qué elegir CSE */
.reasons-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); }
.reason-item { padding: 32px 26px 8px 0; }
.reason-item + .reason-item { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.reason-num { display: block; font-family: var(--font-tech); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; color: var(--yellow); margin-bottom: 16px; }
.reason-item h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; }
.reason-item p { color: #b4b4b0; font-size: 0.93rem; }

/* Proceso */
.pline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pstep {
  padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.pstep:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.pstep.in-view { opacity: 1; transform: none; }
.pnode { font-family: var(--font-tech); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; color: var(--mustard); margin-bottom: 10px; }
.pbody h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pbody p { color: var(--gray-700); font-size: 0.94rem; }

/* Empresa */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy > p { color: var(--gray-700); font-size: 1.08rem; margin-top: 18px; max-width: 52ch; }
.about-copy > p.about-sign { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; padding-left: 16px; border-left: 3px solid var(--yellow); font-size: 1rem; }
.about-sign strong { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.about-sign span { font-family: var(--font-tech); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.about-copy mark { color: var(--ink); font-weight: 500; background: linear-gradient(transparent 62%, rgba(245,197,24,0.5) 62%); }

/* Productos (oculta por ahora) */
.product-launch { text-align: center; max-width: 640px; }
.badge { display: inline-flex; padding: 6px 12px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-family: var(--font-tech); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 18px; }
.product-visual { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin: 8px auto 32px; background: var(--ink); color: var(--yellow); border-radius: var(--radius); }
.newsletter-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter-row input { flex: 1 1 240px; max-width: 320px; padding: 14px 4px; border: none; border-bottom: 2px solid var(--gray-700); background: transparent; color: var(--ink); font: inherit; }
.form-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 12px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.contact-form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field label { display: block; font-family: var(--font-tech); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; color: #b4b4b0; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--ink-2); color: var(--white); font: inherit; font-size: 1rem; transition: border-color 0.2s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--yellow); }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9a9a96 50%), linear-gradient(135deg, #9a9a96 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form .btn { justify-self: start; }
.on-dark .form-note { color: #8a8a86; }

.contact-side { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line-dark); border-radius: 10px; align-self: start; }
.contact-side .btn { width: 100%; }
.btn-whatsapp { background: var(--white); color: var(--ink); }
.btn-whatsapp:hover { background: var(--yellow); }
.contact-phone { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; }
.contact-area { color: #9a9a96; font-size: 0.95rem; }

/* Pie */
.site-footer { background: var(--ink-2); color: #a8a8a4; padding: 52px 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 1.02rem; }
.footer-logo { height: 48px; background: var(--white); padding: 4px 6px; border-radius: 4px; }
.footer-nav, .footer-social { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a, .footer-social a { color: #a8a8a4; text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color 0.2s ease; }
.footer-nav a:hover, .footer-social a:hover { color: var(--yellow); }
.footer-bottom { padding: 20px 24px; font-size: 0.84rem; color: #6f6f6b; text-align: center; }

/* Accesos flotantes: WhatsApp a la izquierda, redes a la derecha */
.float-btn {
  position: fixed; z-index: 300; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease;
}
.float-btn:hover { transform: translateY(-2px); }
.float-whatsapp { left: 22px; bottom: 22px; width: 56px; height: 56px; background: var(--ink); color: var(--white); border: 1.5px solid var(--yellow); }
.float-whatsapp:hover { background: var(--yellow); color: var(--ink); }
.float-social { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.float-social .float-btn { position: static; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.float-social .float-btn:hover { background: var(--yellow); border-color: var(--yellow); }

/* Páginas de servicio */
.page-hero { position: relative; background: var(--ink); color: var(--white); padding: 132px 0 80px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 15% 0%, rgba(255,255,255,0.06), transparent 60%), linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 100% 64px;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.page-hero .hero-sub { max-width: 60ch; }
.page-hero-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--yellow); color: var(--ink); margin-bottom: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; font-family: var(--font-tech); font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a86; }
.breadcrumb a { color: #b4b4b0; text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb [aria-current] { color: var(--yellow); }

.section-title.small { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 26px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.check-list.single { grid-template-columns: 1fr; margin-bottom: 0; }
.detail-block .modal-list { gap: 12px; }
.detail-block .modal-list li { font-size: 1rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--gray-700); }

.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta-inner .hero-actions { margin-top: 0; }

.other-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.other-service {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.other-service span:nth-child(2) { flex: 1; line-height: 1.3; }
.other-service .service-icon { width: 40px; height: 40px; grid-row: auto; }
.other-service:hover { border-color: var(--ink); transform: translateY(-2px); }
.other-service:hover .service-icon { background: var(--yellow); }

/* Responsive */
@media (max-width: 1080px) {
  .reasons-grid { grid-template-columns: repeat(3, 1fr); }
  .reason-item:nth-child(4) { padding-left: 0; border-left: none; }
  .reason-item { padding-bottom: 28px; }
}
@media (max-width: 960px) {
  .header-inner { gap: 16px; }
  .main-nav {
    position: fixed; top: 92px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,0.08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--ink); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { display: flex; margin-top: 18px; border: none; color: var(--ink); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero { padding: 132px 0 130px; }
  .hero-inner, .feature-inner, .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .services-list { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pline { grid-template-columns: repeat(2, 1fr); }
  .pstep:not(:nth-child(3n+1)) { padding-left: 0; border-left: none; }
  .pstep:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .sectors-grid { grid-template-columns: 1fr; gap: 12px; }
  .sector-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; padding: 20px; }
  .sector-icon { margin-bottom: 0; }
  .sector-card > .sector-tag { flex: 1; }
  .sector-title, .sector-text, .sector-more { flex-basis: 100%; }
  .industry-tiles { grid-template-columns: repeat(2, 1fr); }
  .industry-head .feature-media { order: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .header-inner { height: 80px; }
  .brand-logo { height: 60px; }
  .main-nav { top: 80px; padding: 8px 20px 22px; }
  html { scroll-padding-top: 84px; }

  .hero { padding: 116px 0 120px; }
  .page-hero { padding: 108px 0 56px; }
  .hero { padding-bottom: 120px; }
  .sectors { margin-top: -72px; }
  .industry-tiles { grid-template-columns: 1fr; }
  .industry-head { margin-bottom: 44px; }
  .industry-gear { flex-direction: column; align-items: flex-start; }
  .industry-gear ul { flex-direction: column; }
  .breadcrumb { margin-bottom: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .cta-inner .hero-actions, .cta-inner .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-facts li { font-size: 0.82rem; padding: 12px; }
  .photo-slot.is-empty, .project-card .photo-slot.is-empty { aspect-ratio: 16 / 7; }

  .service-row { grid-template-columns: 44px 1fr; gap: 2px 16px; padding: 22px 0; }
  .service-row:hover { padding-left: 0; background: none; }
  .service-icon { width: 44px; height: 44px; }

  .check-list { grid-template-columns: 1fr; }
  .feature-copy .btn { width: 100%; }

  .projects-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .reason-item, .reason-item + .reason-item { padding: 24px 0; border-left: none; border-bottom: 1px solid var(--line-dark); }
  .reason-item:nth-child(4) { padding-left: 0; }
  .pline { grid-template-columns: 1fr; }
  .pstep, .pstep:nth-child(even), .pstep:not(:nth-child(3n+1)) { padding: 22px 0; border-left: none; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
  .contact-side { padding: 22px; }
  .modal-photos { grid-template-columns: 1fr; }
  .project-modal-panel { padding: 34px 22px; }

  /* Flotantes más chicos y abajo, para no tapar contenido */
  .float-whatsapp { left: 14px; bottom: 14px; width: 50px; height: 50px; }
  .float-social { right: 14px; bottom: 14px; gap: 8px; }
  .float-social .float-btn { width: 42px; height: 42px; }
  .site-footer { padding-bottom: 76px; }
}

/* ============ Fotos reales ============ */

/* Portada a pantalla completa con la casa de noche */
.hero-photo { min-height: min(100svh, 900px); display: flex; align-items: flex-end; padding: 170px 0 170px; background: #0d0d0d; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; animation: hero-zoom 18s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-photo::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13,13,13,0.94) 0%, rgba(13,13,13,0.78) 34%, rgba(13,13,13,0.25) 68%, rgba(13,13,13,0.1) 100%),
    linear-gradient(0deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0) 38%);
}
.hero-photo::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--yellow); z-index: 2; }
.hero-photo .hero-inner { z-index: 2; grid-template-columns: 1fr; gap: 40px; width: 100%; }
.hero-photo h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); max-width: 15ch; }
.hero-photo .hero-sub { color: #dcdcd8; }
.hero-photo .hero-facts { grid-template-columns: repeat(4, auto); justify-content: start; margin-top: 0; background: rgba(13,13,13,0.55); backdrop-filter: blur(6px); max-width: 920px; }
.hero-photo .hero-facts li { border: none !important; padding: 14px 22px; }
.hero-photo .hero-facts li + li { border-left: 1px solid var(--line-dark) !important; }
.hero-credit {
  position: absolute; right: 24px; bottom: 112px; z-index: 2;
  font-family: var(--font-tech); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}

/* Dos fotos superpuestas con marco amarillo */
.photo-stack { position: relative; padding: 0 0 56px 0; }
.photo-stack .photo-main { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; box-shadow: 0 30px 60px rgba(0,0,0,0.18); }
.photo-stack .photo-inset {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4;
  outline: 6px solid var(--yellow); outline-offset: -1px; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.photo-stack-left .photo-main { margin-left: 0; margin-right: auto; }
.photo-stack-left .photo-inset { left: auto; right: 0; }
.photo-stack .photo-tag { left: auto; right: 16px; bottom: 74px; background: var(--yellow); color: var(--ink); font-weight: 600; }
.photo-stack-left .photo-tag { right: auto; left: 16px; }
.photo-stack img { transition: transform 0.8s var(--ease); }
.photo-stack:hover .photo-main img { transform: scale(1.03); }
.industry .photo-stack .photo-main { aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.industry .photo-stack .photo-inset { aspect-ratio: 3 / 4; }

/* Banda de foto a pantalla completa */
.photo-band { position: relative; min-height: 78vh; display: flex; align-items: center; background: var(--ink); color: var(--white); overflow: hidden; }
.photo-band-img { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 42%, rgba(23,23,23,0.6) 52%, rgba(23,23,23,0) 72%); }
.photo-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--yellow); z-index: 2; }
.photo-band-inner { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; }
.photo-band-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 18ch; margin: 18px 0 34px; }
.photo-band-title span { color: var(--yellow); }

/* Trabajos: tarjeta destacada y contador de fotos */
.project-card .photo-slot { position: relative; }
.project-card.is-featured { grid-column: span 2; }
.project-card.is-featured .photo-slot { aspect-ratio: 16 / 9; }
.project-count { position: absolute; right: 12px; top: 12px; padding: 5px 9px; border-radius: 4px; background: var(--ink); color: var(--yellow); font-family: var(--font-tech); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; }
.modal-photos img { cursor: zoom-in; aspect-ratio: 4 / 5; }

/* Galería de servicio en vertical */
.gallery figure { overflow: hidden; border-radius: var(--radius); }
.gallery img { aspect-ratio: 4 / 5; cursor: zoom-in; transition: transform 0.5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }

/* Encabezado de servicio con foto */
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-photo::before { z-index: 1; background: linear-gradient(90deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.78) 50%, rgba(13,13,13,0.45) 100%); }
.page-hero.has-photo .container { z-index: 2; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); z-index: 2; }

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,0.94); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3a3a38; background: rgba(23,23,23,0.8); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--font-tech); letter-spacing: 0.12em; color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } }
@media (max-width: 960px) {
  .hero-photo { min-height: 0; padding: 140px 0 150px; }
  .hero-photo .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-photo .hero-facts li + li { border-left: none !important; }
  .hero-photo .hero-facts li:nth-child(even) { border-left: 1px solid var(--line-dark) !important; }
  .hero-photo .hero-facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark) !important; }
  .hero-credit { bottom: 100px; }
  .photo-stack { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero-photo { padding: 120px 0 130px; }
  .hero-bg img { object-position: 58% 50%; }
  .hero-photo::before { background: linear-gradient(0deg, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.86) 52%, rgba(13,13,13,0.2) 100%); }
  .hero-photo::after { width: 4px; }
  .hero-credit { display: none; }
  .photo-stack { padding-bottom: 40px; }
  .photo-stack .photo-main { width: 86%; }
  .photo-stack .photo-inset { width: 46%; outline-width: 4px; }
  .photo-stack .photo-tag { bottom: 54px; }
  .photo-band { min-height: 0; }
  .photo-band-img { width: 100%; bottom: auto; height: 420px; object-position: 50% 60%; }
  .photo-band::before { background: linear-gradient(180deg, rgba(23,23,23,0) 0, rgba(23,23,23,0.1) 220px, var(--ink) 420px); }
  .photo-band-inner { padding-top: 330px; padding-bottom: 64px; }
  .photo-band .btn { width: 100%; }
  .project-card.is-featured { grid-column: auto; }
  .project-card.is-featured .photo-slot { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
}

/* Banda de la terraza: solo lugar + botón */
.photo-band { align-items: flex-end; }
.photo-band-place { display: block; font-family: var(--font-tech); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--yellow); margin-bottom: 28px; }
.photo-band-place::before { content: ""; display: block; width: 56px; height: 4px; background: var(--white); margin-bottom: 18px; }
@media (min-width: 641px) {
  .photo-band { min-height: 82vh; }
  .photo-band-img { width: 100%; }
  .photo-band::before { background: linear-gradient(0deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0) 48%), linear-gradient(90deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0) 50%); }
  .photo-band-inner { padding-bottom: 72px; }
}
