/* =============================================================
   LANDINGS — estilos adicionales para páginas de servicio
   ============================================================= */

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  background: var(--ink);
  border-bottom: 2px solid var(--orange);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: var(--white); transition: color .15s; }
.breadcrumb a:hover { color: var(--orange); text-decoration: none; }
.breadcrumb span { margin: 0 8px; color: var(--orange); font-weight: 700; }

/* Landing hero (páginas interiores) */
.landing-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.landing-hero .hero-overlay {
  background: linear-gradient(90deg,
    rgba(0,0,0,.94) 0%,
    rgba(0,0,0,.72) 55%,
    rgba(0,0,0,.28) 100%);
}
.landing-hero .hero-content { padding: 56px 0; }
.landing-hero h1 { font-size: clamp(34px, 4.5vw, 54px); }
.landing-hero .hero-text > p { font-size: 17px; max-width: 560px; }

/* Pillar hero (más alta) */
.pillar-hero { min-height: 540px; }

/* Benefits bar (landing) */
.benefits-bar {
  background: var(--navy);
  padding: 20px 0;
  border-bottom: 3px solid var(--yellow);
}
.benefits-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.benefit-item .icon { width: 16px; height: 16px; color: var(--yellow); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.feature-card .feat-icon {
  width: 48px;
  height: 48px;
  background: rgba(245,124,0,.12);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  margin-bottom: 16px;
}
.feature-card .feat-icon .icon { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Use cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.use-case-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px;
}
.use-case-item .uc-num {
  width: 32px;
  height: 32px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.use-case-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.use-case-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Materials/tags */
.materials-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.material-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.material-tag .icon { width: 14px; height: 14px; color: var(--yellow); }

/* Comparison / differentiators */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}
.diff-col { padding: 0; }
.diff-col-header {
  padding: 16px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.diff-col-header.bad  { background: #f3f4f6; color: #6b7280; }
.diff-col-header.good { background: var(--navy); color: var(--yellow); }
.diff-row {
  display: flex;
}
.diff-cell {
  flex: 1;
  padding: 12px 20px;
  font-size: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.diff-cell.bad  { color: #9ca3af; background: #fafafa; }
.diff-cell.bad::before  { content: '✕'; color: #d1d5db; font-weight: 700; flex-shrink: 0; }
.diff-cell.good { color: var(--text); background: #fff; }
.diff-cell.good::before { content: '✓'; color: var(--yellow); font-weight: 700; flex-shrink: 0; }

/* Social proof / stats bar */
.stats-bar {
  background: var(--yellow);
  padding: 32px 0;
}
.stats-inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.stat-item span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,.7);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 64px;
  color: var(--yellow);
  line-height: 0.6;
  display: block;
  margin-bottom: 16px;
}
.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-author strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.testimonial-author span {
  font-size: 12px;
  color: var(--text-muted);
}
.testimonial-stars {
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

/* Coverage grid */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.coverage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 20px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.coverage-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 2px 12px rgba(245,124,0,.2);
}
.coverage-card.featured {
  border-color: var(--yellow);
  background: rgba(245,124,0,.06);
}
.coverage-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.coverage-card span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Proceso timeline */
.process-timeline {
  position: relative;
  margin-top: 40px;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 0 0 36px 0;
  position: relative;
}
.timeline-num {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--yellow);
}
.timeline-body h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  padding-top: 10px;
}
.timeline-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Override sobre fondo oscuro */
.section-dark .timeline-body h4 { color: var(--white); }
.section-dark .timeline-body p { color: rgba(255,255,255,.78); }
.section-dark .process-timeline::before { background: rgba(255,255,255,.15); }
.section-dark .timeline-num { border-color: var(--ink); box-shadow: 0 0 0 2px var(--orange); }

/* Presupuesto page — form first */
.presupuesto-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.presupuesto-form-col {
  position: sticky;
  top: 90px;
}
.presupuesto-trust {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.presupuesto-trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.presupuesto-trust-item .icon { width: 18px; height: 18px; color: var(--yellow); flex-shrink: 0; }

/* Empresa page */
.empresa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.empresa-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.empresa-value {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.empresa-value:last-child { border-bottom: none; }
.empresa-value .val-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,124,0,.12);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  flex-shrink: 0;
}
.empresa-value h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.empresa-value p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.empresa-data {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.empresa-data h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}
.empresa-data-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.empresa-data-row:last-child { border-bottom: none; }
.empresa-data-row dt { color: var(--text-muted); font-weight: 600; }
.empresa-data-row dd { color: var(--navy); font-weight: 700; text-align: right; }

/* Interlinks section */
.interlinks-section {
  background: var(--gray-bg);
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.interlinks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.interlink-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.interlink-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.interlink-card .il-icon {
  width: 40px;
  height: 40px;
  background: rgba(245,124,0,.12);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  flex-shrink: 0;
}
.interlink-card .il-icon .icon { width: 20px; height: 20px; }
.interlink-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.interlink-card span { font-size: 12px; color: var(--text-muted); }

/* FAQ expandible */
.faq-accordion { margin-top: 40px; }
.faq-accordion-item {
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-accordion-item + .faq-accordion-item { }
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s;
}
.faq-question:hover { background: var(--gray-bg); }
.faq-question.open { background: var(--navy); color: var(--white); }
.faq-question .faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--white);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-answer.open {
  display: block;
  padding-top: 16px;
}

/* Navbar dropdown */
.navbar-links .has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  min-width: 240px;
  z-index: 200;
  overflow: hidden;
  padding-top: 8px;
  /* Estado oculto por defecto */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  /* Al salir: desvanecer 0.15s, luego ocultar visibilidad */
  transition: opacity 0.15s ease, visibility 0s 0.15s;
}
/* Puente invisible para no perder el hover al bajar al dropdown */
.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
/* Al hacer hover: esperar 0.5s, luego aparecer en 0.15s */
.has-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease 0.5s, visibility 0s 0.5s;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy) !important;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--gray-bg); color: var(--navy) !important; }
.dropdown-menu .icon { width: 16px; height: 16px; color: var(--yellow); flex-shrink: 0; }
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,.6);
  margin-left: 6px;
  vertical-align: middle;
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .navbar-links.open .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,.06);
    min-width: 100%;
    /* En móvil: sin delay, siempre visible cuando el menú está abierto */
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    padding-top: 0;
  }
  .navbar-links.open .dropdown-menu a {
    color: rgba(255,255,255,.8) !important;
    padding-left: 32px;
    background: transparent;
    border-color: rgba(255,255,255,.08);
  }
  .navbar-links.open .dropdown-menu a:hover { background: rgba(255,255,255,.1); }
  .feature-grid, .use-cases-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-col-header.bad, .diff-cell.bad { display: none; }
  .presupuesto-layout, .empresa-grid { grid-template-columns: 1fr; }
  .presupuesto-form-col { position: static; }
  .interlinks-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 32px; }
}

@media (max-width: 480px) {
  .coverage-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   TWO-COL GRID (reutilizable, responsive)
   ============================================================= */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col-grid.gap-40 { gap: 40px; }
.two-col-grid.cols-narrow { grid-template-columns: 1fr 1.4fr; gap: 56px; }

@media (max-width: 768px) {
  .two-col-grid,
  .two-col-grid.cols-narrow { grid-template-columns: 1fr; gap: 40px; }
}
