/* =============================================
   REFYCON PRO - Subpáginas (zonas/ y servicios/)
   Se carga DESPUÉS de styles.css y reutiliza sus
   variables, navbar, formulario, proyectos y footer.
   ============================================= */

/* --- Hero de subpágina (misma estética que #hero) --- */
.page-hero {
  margin-top: 64px;
  position: relative;
  min-height: 560px;
  background: var(--dark-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.page-hero .hero-bg {
  background-position: center;
  opacity: 1;
}
.page-hero .hero-bg::after {
  background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 55%, rgba(0,0,0,0.35) 100%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --- Botones --- */
.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-solid { background: var(--blue-cta); color: var(--white); border: 2px solid var(--blue-cta); }
.btn-solid:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-wa { background: #25d366; border-color: #25d366; }
.btn-wa:hover { background: #1eb956; border-color: #1eb956; }

/* --- Breadcrumb (franja como #locations) --- */
.breadcrumb-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-mid); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--blue-primary); }
.breadcrumb .sep { color: var(--blue-primary); }
.breadcrumb [aria-current] { color: var(--text-dark); }

/* --- Secciones --- */
.sp-section { padding: 64px 20px; background: var(--white); }
.sp-section.alt { background: var(--light-bg); }
.section-header p {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Tarjetas de servicio con texto --- */
.sp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sp-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.sp-section.alt .sp-card { border-color: transparent; box-shadow: var(--shadow); }
a.sp-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); transform: translateY(-3px); border-color: transparent; }
.sp-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sp-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background: var(--light-blue-bg);
  font-size: 44px;
}
.sp-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.sp-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  line-height: 1.35;
}
.sp-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-top: 8px; }
.sp-card ul { margin-top: 12px; }
.sp-card li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 6px;
}
.sp-card li::before { content: '✓'; position: absolute; left: 0; color: var(--blue-primary); font-weight: 700; }
.sp-card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-cta);
}

/* --- Chips de barrios / zonas --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}
.chip .pin-icon { font-size: 13px; }
a.chip { transition: color var(--transition), border-color var(--transition); }
a.chip:hover { color: var(--blue-primary); border-color: var(--blue-primary); }

/* --- Bloque texto + imagen --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.split-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-primary);
}
.split h2 {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: var(--text-dark);
  margin-top: 10px;
}
.split .section-line { margin: 14px 0 0; }
.split p { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-top: 18px; }
.split-img { position: relative; }
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.img-badge {
  position: absolute;
  left: -20px;
  bottom: -20px;
  background: var(--blue-cta);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(37,99,235,0.35);
}
.img-badge strong { display: block; font-size: 30px; font-weight: 800; line-height: 1; }
.img-badge span { font-size: 12px; letter-spacing: 0.5px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.stat {
  background: var(--light-blue-bg);
  border-radius: 8px;
  padding: 18px 20px;
}
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--blue-cta); line-height: 1.1; }
.stat span { font-size: 12px; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 26px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-dark); }
.checks .badge-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-cta);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* --- Pasos del proceso --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  padding: 26px 22px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue-cta);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dark); }
.step p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-top: 8px; }

/* --- Gremios --- */
.trades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.trade {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
}
.trade span:first-child { font-size: 18px; }

/* --- FAQ --- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq details[open] { border-color: var(--blue-primary); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--light-blue-bg);
  color: var(--blue-cta);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font-size: 14px; color: var(--text-mid); line-height: 1.75; }

/* --- Banda CTA final --- */
.cta-band {
  background: var(--dark-nav);
  padding: 56px 20px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}
.cta-band h2 .blue { color: var(--blue-light); }
.cta-band p { max-width: 560px; margin: 12px auto 0; font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.cta-band .hero-actions { justify-content: center; }

/* Formulario del hero: pequeño ajuste para el selector */
.page-hero .form-select-minimal { color: var(--white); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .sp-cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .trades { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  /* En subpáginas el formulario se muestra debajo del texto en móvil */
  .page-hero .hero-content { flex-direction: column; align-items: stretch; }
  .page-hero .hero-form-wrapper { display: block; width: 100%; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-img { order: -1; }
  .img-badge { left: 16px; bottom: -16px; }
}
@media (max-width: 768px) {
  .page-hero { min-height: auto; }
  .sp-section { padding: 48px 20px; }
  .trades { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn-solid, .hero-actions .btn-ghost { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .sp-cards, .steps { grid-template-columns: 1fr; }
  .checks, .stats { grid-template-columns: 1fr; }
  .split h2 { font-size: 22px; }
}

@media (max-width: 520px) {
  .sp-card-icon { aspect-ratio: auto; padding: 28px 0; }
}

/* --- Urgencias --- */
.page-hero-urgent .hero-bg {
  background: radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.35), transparent 55%),
              linear-gradient(135deg, #0b1220 0%, #111827 60%, #0d0d0d 100%);
}
.page-hero-urgent .hero-bg::after { display: none; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: livepulse 1.8s infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.urgent-box { text-align: center; }
.urgent-phone {
  display: block;
  margin-top: 18px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--white);
}
.urgent-box .btn-submit { text-align: center; }
.btn-wa-block { background: #25d366; }
.btn-wa-block:hover { background: #1eb956; }
.urgent-note { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.55); }
.sp-cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.sp-cards-2 .sp-card-icon { aspect-ratio: auto; padding: 28px 0; }
@media (max-width: 520px) { .sp-cards-2 { grid-template-columns: 1fr; } }

/* --- Páginas legales (cookies, aviso legal) --- */
.legal-hero {
  margin-top: 64px;
  background: var(--dark-nav);
  padding: 56px 20px 48px;
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}
.legal-hero h1 .blue { color: var(--blue-light); }
.legal-hero p { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.65); }
.legal { max-width: 820px; margin: 0 auto; color: var(--text-mid); font-size: 15px; line-height: 1.8; }
.legal h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 36px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--blue-cta);
}
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 0; }
.legal li { position: relative; padding-left: 20px; margin-top: 8px; }
.legal li::before { content: '•'; position: absolute; left: 4px; color: var(--blue-cta); font-weight: 700; }
.legal a { color: var(--blue-cta); text-decoration: underline; }
.legal button.btn-solid { cursor: pointer; font-family: inherit; }
.legal-table { overflow-x: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.legal-table th { background: var(--light-blue-bg); color: var(--text-dark); text-align: left; padding: 10px 12px; font-weight: 700; }
.legal-table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; }

/* --- Blog --- */
.legal-hero .hero-kicker { justify-content: center; }
.post-meta { font-size: 13px; color: var(--text-light); margin-top: 0; }
.post-lead { font-size: 17px; line-height: 1.75; color: var(--text-dark); background: var(--light-blue-bg); border-left: 4px solid var(--blue-cta); padding: 18px 20px; border-radius: 0 8px 8px 0; }
.legal.post ol { margin-top: 12px; padding-left: 22px; }
.legal.post ol li { padding-left: 4px; margin-top: 8px; }
.legal.post ol li::before { content: none; }
.post-cta { margin: 40px 0 8px; background: var(--dark-nav); color: var(--white); border-radius: 10px; padding: 26px 24px; }
.post-cta h3 { font-size: 20px; font-weight: 800; color: var(--white); }
.post-cta p { color: rgba(255,255,255,0.75); margin-top: 8px; }
.post-cta .hero-actions { margin-top: 18px; }
.post-cta a { text-decoration: none; }
.faq-in-article { margin-top: 16px; }
.faq-in-article details p { margin-top: 0; }
.post-sources li { font-size: 14px; }
.post-note { font-size: 13px; color: var(--text-light); font-style: italic; margin-top: 24px; }
.legal .post-cta a.btn-solid, .legal .post-cta a.btn-ghost { color: var(--white); text-decoration: none; }
.legal a.sp-card, .legal .sp-card-link { text-decoration: none; }

/* ===== Páginas de proyecto (galería de obra) ===== */
.gallery-sub { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 22px 0 10px; }
.gallery { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { margin: 0; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.gallery-item a { display: block; overflow: hidden; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; transition: transform .4s ease; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption { padding: 12px 14px; font-size: 13.5px; line-height: 1.55; color: var(--text-mid); }
.gallery-item figcaption strong { color: var(--text-dark); }
.compare { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .gallery-item img { aspect-ratio: 3/4; }
.split .chips { justify-content: flex-start; }
.compare figcaption { text-align: center; }
.compare .tag { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #e9ecef; color: var(--text-dark); }
.compare .tag-done { background: var(--blue-cta); color: var(--white); }
.container.narrow { max-width: 820px; margin: 0 auto; }
.lead-center { text-align: center; font-size: 16px; line-height: 1.75; color: var(--text-mid); }
.lead-center a { color: var(--blue-primary); font-weight: 600; }
.project-feature { max-width: 1100px; margin: 36px auto 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.10); text-decoration: none; color: inherit; }
.project-feature img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.project-feature-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.project-feature-body .split-eyebrow { margin: 0; }
.project-feature-body h3 { font-size: 22px; line-height: 1.3; color: var(--text-dark); margin: 0; }
.project-feature-body p { font-size: 14.5px; line-height: 1.65; color: var(--text-mid); margin: 0; }
.project-feature-body .more { color: var(--blue-cta); font-weight: 700; font-size: 14.5px; }
.project-feature:hover .more { text-decoration: underline; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature img { min-height: 0; aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .compare { gap: 10px; }
  .project-feature-body { padding: 20px; }
}

/* Blog: rejilla de 3 artículos y figura dentro del artículo */
.sp-cards-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .sp-cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sp-cards-3 { grid-template-columns: 1fr; } }
.post-figure { margin: 22px 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.post-figure figcaption { font-size: 13.5px; color: var(--text-mid); margin-top: 8px; text-align: center; }
