/* =======================================================
   TERRITORIA CONSULTORES — Brand system (from skill)
   Orange  #F47920  (accent principal)
   Green   #2DB84B  (solo logo)
   Dark    #404040  (texto cuerpo, fondos oscuros)
   Light   #F5F5F5  (fondos secciones)
   White   #FFFFFF  (base)
   ======================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: #404040;
  line-height: 1.6;
  font-size: 16px;
  background: #ffffff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #F47920; text-decoration: none; transition: color .2s ease; }
a:hover { color: #c75c10; }
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; color: #404040; line-height: 1.2; }

/* ------- Layout helpers ------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; position: relative; }
.section--light { background: #F5F5F5; }
.section--dark { background: #404040; color: #ffffff; }
.section--dark h2, .section--dark h3 { color: #ffffff; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #F47920;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  margin-bottom: 18px;
}
.section-title .accent { color: #F47920; }
.section-lead {
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 760px;
  color: #555;
}
.divider-orange {
  width: 60px; height: 4px; background: #F47920;
  margin: 0 0 28px 0; border-radius: 2px;
}
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .divider-orange { margin-left: auto; margin-right: auto; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: #F47920; color: #fff; }
.btn-primary:hover { background: #d86715; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: #fff; color: #F47920; border-color: #fff; }
.btn-outline { background: transparent; color: #F47920; border-color: #F47920; }
.btn-outline:hover { background: #F47920; color: #fff; }

/* ============ NAVBAR ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: #404040;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: #F47920;
  transition: width .25s ease;
}
.nav-links a:hover { color: #F47920; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: #F47920; color: #fff !important;
  padding: 10px 20px !important; border-radius: 999px;
  font-size: 13px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #d86715; color: #fff !important; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-cta--lici {
  background: #404040; color: #fff !important;
  padding: 10px 22px !important; border-radius: 999px;
  font-size: 13px !important;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(64,64,64,.25);
  flex-shrink: 0;
}
.nav-cta--lici svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; flex-shrink: 0; }
.nav-cta--lici:hover { background: #F47920; color: #fff !important; box-shadow: 0 6px 18px rgba(244,121,32,.35); }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: #404040; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: #FFFFFF;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 22px;
  color: #404040;
}
.hero h1 .accent { color: #F47920; }
.hero-lead {
  font-size: clamp(16px, 1.25vw, 19px);
  color: #555;
  margin-bottom: 34px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 30px; margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(64,64,64,.12);
}
.hero-meta .item {
  display: flex; flex-direction: column;
}
.hero-meta .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #F47920;
  line-height: 1;
}
.hero-meta .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #666; margin-top: 6px; }

/* Arco naranja + foto circular */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 520px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}
.hero-arc {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #F47920;
  border-radius: 50%;
  transform: translate(14%, 14%);
  box-shadow: 0 30px 80px rgba(244,121,32,.25);
}
.hero-photo {
  position: absolute;
  top: 0; left: 0;
  width: 86%; height: 86%;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  z-index: 2;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Mini círculo verde decorativo (única aparición del verde TC) */
.hero-dot {
  position: absolute;
  width: 64px; height: 64px; border-radius: 50%;
  background: #2DB84B;
  top: -6%; left: -4%;
  z-index: 3;
  box-shadow: 0 8px 22px rgba(45,184,75,.3);
}

/* ============ HISTORIA ============ */
.historia-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 70px; align-items: center;
}
.historia-photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  position: relative;
  max-width: 460px;
  width: 100%;
  height: 460px;
}
.historia-photo img { width: 100%; height: 100%; object-fit: cover; }
.historia-photo::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px; border-radius: 50%;
  background: #F47920;
  bottom: -10px; right: -10px;
  opacity: .9;
}
.historia-text p { margin-bottom: 18px; font-size: 17px; color: #555; }
.regions-pill-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px;
}
.regions-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #F47920;
  color: #F47920;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* ============ VALOR (pilares) ============ */
.pilares {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.pilar {
  background: #fff;
  padding: 40px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
  border-top: 4px solid #F47920;
}
.pilar:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.09); }
.pilar-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #F47920;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: #fff;
}
.pilar-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pilar h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 10px;
  color: #404040;
}
.pilar p { font-size: 15px; color: #666; }

/* ============ SERVICIOS ============ */
.servicios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.servicio {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.servicio:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,.12); }
.servicio-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.servicio-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.servicio:hover .servicio-img img { transform: scale(1.05); }
.servicio-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);
}
.servicio-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.servicio-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #F47920;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.servicio-title .num {
  display: inline-flex;
  width: 26px; height: 26px; border-radius: 50%;
  background: #F47920; color: #fff;
  font-size: 12px; font-weight: 800;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.servicio-desc { color: #555; font-size: 15px; flex: 1; }
.servicio--wide {
  grid-column: span 2;
}

/* ============ CASOS DE ÉXITO ============ */
.casos { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.caso {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
}
.caso-img { aspect-ratio: 16 / 9; overflow: hidden; }
.caso-img img { width: 100%; height: 100%; object-fit: cover; }
.caso-body { padding: 34px 32px; }
.caso-tag {
  display: inline-block;
  background: rgba(244,121,32,.12);
  color: #F47920;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
}
.caso h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #404040;
  font-weight: 700;
}
.caso p { color: #555; font-size: 15px; margin-bottom: 14px; }
.caso-objetivo {
  font-size: 14px; color: #404040;
  padding: 14px 16px;
  background: #F5F5F5;
  border-left: 3px solid #F47920;
  border-radius: 4px;
  margin-top: 14px;
}
.caso-objetivo strong { color: #F47920; font-family: 'Montserrat', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ============ TESTIMONIOS ============ */
.testim-section {
  position: relative;
  color: #fff;
  background: #404040;
  padding: 110px 0;
  overflow: hidden;
}
.testim-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('assets/testim-bg.jpg');
  background-size: cover; background-position: center;
  opacity: .18;
  filter: grayscale(30%);
}
.testim-section .container { position: relative; z-index: 2; }
.testim-section .section-title { color: #fff; }
.testim-section .section-lead { color: rgba(255,255,255,.8); }
.testim-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 46px;
}
.testim {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 34px 32px;
  position: relative;
}
.testim::before {
  content: '\201C';
  position: absolute;
  top: 10px; left: 22px;
  font-family: 'Georgia', serif;
  font-size: 80px;
  color: #F47920;
  line-height: 1;
  opacity: .55;
}
.testim-quote {
  font-size: 15px;
  color: rgba(255,255,255,.92);
  margin-top: 30px; margin-bottom: 22px;
  font-style: italic;
  line-height: 1.65;
}
.testim-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.testim-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #F47920;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testim-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: #fff; }
.testim-role { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ============ CLIENTES ============ */
.clientes-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
.cliente-chip {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #404040;
  transition: all .2s ease;
}
.cliente-chip:hover {
  border-color: #F47920;
  color: #F47920;
  transform: translateY(-2px);
}

/* ============ GALERIA ============ */
.galeria-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.galeria-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.galeria-item:hover img { transform: scale(1.06); }
.galeria-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(244,121,32,.25), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.galeria-item:hover::after { opacity: 1; }

/* ============ REDES SOCIALES ============ */
.redes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: stretch;
}
.red-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.red-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.09); }
.red-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.red-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #F47920;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.red-icon svg { width: 24px; height: 24px; fill: #fff; }
.red-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #404040;
  margin-bottom: 2px;
}
.red-handle {
  font-size: 13px;
  color: #F47920;
  font-weight: 600;
}
.red-feed {
  flex: 1;
  min-height: 560px;
  display: flex; align-items: stretch; justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #F5F5F5;
  position: relative;
}
.red-feed > * { width: 100%; }
.red-feed iframe {
  width: 100% !important;
  min-height: 560px;
  border: 0;
}
/* FB Page Plugin responsive */
.fb-page, .fb-page span, .fb-page span iframe[style] {
  width: 100% !important;
}
.red-placeholder {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    #fafafa,
    #fafafa 10px,
    #f2f2f2 10px,
    #f2f2f2 20px
  );
  color: #777;
  font-size: 14px;
  z-index: 1;
}
.red-placeholder strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #F47920;
  margin-bottom: 8px;
}
.red-placeholder code {
  display: inline-block;
  background: #fff;
  color: #F47920;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: 12px;
  margin: 0 2px;
  border: 1px solid #eee;
}
.red-cta {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: #F47920; color: #fff;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
}
/* ---- Instagram invite card (estática) ---- */
.red-feed--static {
  background: linear-gradient(160deg, #fff 0%, #F5F5F5 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px;
}
.ig-invite {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  max-width: 340px;
  text-align: center;
}
.ig-badge {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(214, 41, 118, 0.22);
  color: #fff;
}
.ig-badge svg { width: 48px; height: 48px; stroke: #fff; }
.ig-handle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #404040;
  letter-spacing: 0.2px;
}
.ig-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 4px;
}
.ig-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: #F47920; color: #fff;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: transform .2s ease, background .2s ease;
}
.ig-cta:hover { background: #d86715; color: #fff; transform: translateY(-2px); }
.ig-cta svg { width: 16px; height: 16px; stroke: #fff; }

/* ============ CONTACTO ============ */
.contacto {
  background: #fff;
  padding: 100px 0 80px;
}
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 46px;
}
.oficina {
  background: #F5F5F5;
  border-radius: 18px;
  padding: 40px 36px;
  border-left: 6px solid #F47920;
  transition: transform .3s ease, box-shadow .3s ease;
}
.oficina:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.oficina-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #F47920;
  font-weight: 700;
  margin-bottom: 8px;
}
.oficina h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #404040;
}
.oficina-line {
  display: flex; gap: 14px;
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
  align-items: flex-start;
}
.oficina-line .ic {
  width: 22px; height: 22px; flex-shrink: 0;
  color: #F47920;
}
.oficina-line .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oficina-line a { color: #404040; }
.oficina-line a:hover { color: #F47920; }

.contact-extra {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid #eaeaea;
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
}
.contact-extra a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid #F47920;
  border-radius: 999px;
  color: #F47920;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}
.contact-extra a:hover { background: #F47920; color: #fff; }
.contact-extra svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============ FOOTER ============ */
.footer {
  background: #F47920;
  color: #fff;
  padding: 26px 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-copy {
  background: #404040;
  color: rgba(255,255,255,.7);
  padding: 16px 0;
  font-size: 12px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* ============ ANIMACIONES SCROLL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ LICITACIONES (listado público) ============ */
.lici-hero {
  padding: 150px 0 60px;
  background: #F5F5F5;
}
.lici-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 36px;
}
.lici-toolbar input[type="search"] {
  flex: 1; min-width: 220px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.lici-toolbar input[type="search"]:focus { outline: none; border-color: #F47920; }
.lici-filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all .2s ease;
}
.lici-filter-chip.active,
.lici-filter-chip:hover {
  border-color: #F47920;
  color: #F47920;
  background: rgba(244,121,32,.08);
}
.lici-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 40px;
}
.lici-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  padding: 30px 32px;
  border-left: 5px solid #F47920;
  transition: transform .25s ease, box-shadow .25s ease;
}
.lici-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.lici-card.is-cerrada { border-left-color: #999; opacity: .75; }
.lici-card-head {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.lici-card h3 { font-size: 21px; color: #404040; font-weight: 700; max-width: 640px; }
.lici-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}
.lici-badge--abierta { background: rgba(45,184,75,.12); color: #218838; }
.lici-badge--cerrada { background: rgba(153,153,153,.15); color: #666; }
.lici-desc { color: #555; font-size: 15px; margin-bottom: 20px; }
.lici-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 24px;
  margin-bottom: 22px;
  padding: 18px 20px;
  background: #F5F5F5;
  border-radius: 10px;
}
.lici-dates .d-item { display: flex; flex-direction: column; }
.lici-dates .d-lbl {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px;
  color: #888; font-family: 'Montserrat', sans-serif; font-weight: 700;
  margin-bottom: 4px;
}
.lici-dates .d-val { font-size: 14px; color: #404040; font-weight: 600; }
.lici-links { display: flex; flex-wrap: wrap; gap: 12px; }
.lici-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid #F47920;
  color: #F47920;
  transition: all .2s ease;
}
.lici-links a:hover { background: #F47920; color: #fff; }
.lici-links a.primary { background: #F47920; color: #fff; }
.lici-links a.primary:hover { background: #d86715; }
.lici-links a.lici-cerrado {
  border-color: #ccc; color: #999; background: #f2f2f2;
  cursor: not-allowed; pointer-events: none;
}
.lici-empty {
  text-align: center;
  padding: 60px 20px;
  color: #777;
  font-size: 15px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { min-height: auto; padding: 110px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 380px; margin: 0 auto; justify-self: center; }
  .historia-grid { grid-template-columns: 1fr; gap: 40px; }
  .historia-photo { margin: 0 auto; height: auto; aspect-ratio: 1/1; }
  .hero-visual { height: auto; aspect-ratio: 1/1; }
  .pilares { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .servicio--wide { grid-column: span 2; }
  .casos { grid-template-columns: 1fr; }
  .testim-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
  .redes-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    padding: 16px 28px 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid #eee; width: 100%; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 8px; justify-content: center; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 14px; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicio--wide { grid-column: auto; }
  .hero-photo, .hero-arc { inset: 0; }
  .lici-card { padding: 24px 20px; }
  .nav-cta--lici { padding: 9px 14px !important; font-size: 12px !important; gap: 6px; }
}
@media (max-width: 400px) {
  .nav-cta--lici .lici-label { display: none; }
  .nav-cta--lici {
    padding: 10px !important;
    width: 40px; height: 40px;
    border-radius: 50%;
    justify-content: center;
  }
  .nav-cta--lici svg { width: 18px; height: 18px; }
}
