/* Shared detail pages design */
.detail-page {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: #f9fafb;
  color: #1f2937;
}

.detail-page *,
.detail-page *::before,
.detail-page *::after {
  box-sizing: border-box;
}

/* Detail page navbar */
.detail-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.detail-nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.detail-nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 7px;
  filter: none;
  transition: transform 0.3s ease;
}

.detail-nav-brand:hover .detail-nav-logo {
  transform: scale(1.05);
}

.detail-nav-text {
  display: flex;
  flex-direction: column;
}

.detail-nav-name {
  font-size: 12px;
  font-weight: 700;
  color: #1a4d2e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.detail-nav-sub {
  font-size: 9px;
  font-weight: 500;
  color: #6b6b6b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1b5e20;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid #c6e8c6;
  border-radius: 8px;
  background: #f0faf0;
  transition: all 0.2s ease;
}

.detail-nav-back:hover {
  background: #e0f5e0;
  border-color: #1b5e20;
  transform: translateX(-2px);
}

/* Hero band */
.detail-hero {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 45%, #33691e 100%);
  padding: 40px 0 32px;
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(139, 195, 74, 0.1);
  filter: blur(60px);
  pointer-events: none;
}

.detail-hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: 5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.08);
  filter: blur(40px);
  pointer-events: none;
}

.detail-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.detail-breadcrumb a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.detail-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.detail-breadcrumb span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.detail-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(139, 195, 74, 0.18);
  border: 1px solid rgba(139, 195, 74, 0.3);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  color: #8bc34a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.detail-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 680px;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.detail-meta strong {
  color: rgba(255, 255, 255, 0.8);
}

.detail-meta-dot {
  color: rgba(255, 255, 255, 0.25);
}

/* Body wrapper */
.detail-body {
  background: #f9fafb;
  padding: 36px 0 60px;
}

.detail-body-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.detail-article h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1a4d2e;
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-article h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.detail-article h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a4d2e;
  margin: 18px 0 8px;
}

.detail-article p {
  font-size: 14px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 14px;
}

.detail-article p.detail-lead {
  font-size: 15px;
  font-weight: 500;
  color: #1a4d2e;
  line-height: 1.65;
  padding-left: 14px;
  border-left: 3px solid #4caf50;
  margin-bottom: 20px;
}

.detail-article p.meta {
  font-size: 12px;
  color: #6b7280;
  border: 0;
  padding: 0;
  margin-bottom: 16px;
}

/* CTA block */
.detail-cta-block {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0;
}

.detail-cta-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.detail-cta-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.4;
  border: none;
  padding: 0;
}

.detail-cta-btn {
  background: #ffffff;
  color: #1b5e20;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: inline-block;
}

.detail-cta-btn:hover {
  background: #f0faf0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Glassmorphism sidebar */
.detail-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-top-color: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 16px rgba(27, 94, 32, 0.07), inset 0 1px 0 rgba(255, 255, 255, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.glass-panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4caf50;
  margin-bottom: 8px;
}

.glass-panel-stat {
  font-size: 26px;
  font-weight: 700;
  color: #1a4d2e;
  line-height: 1;
  margin-bottom: 3px;
}

.glass-panel-stat span {
  font-size: 15px;
  color: #6b6b6b;
  font-weight: 400;
}

.glass-panel-note {
  font-size: 11px;
  color: #6b6b6b;
  margin-top: 3px;
  line-height: 1.4;
}

.glass-panel-permit-answer {
  font-size: 14px;
  font-weight: 600;
  color: #1a4d2e;
  margin-bottom: 3px;
}

.glass-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  margin: 0;
}

.glass-checklist li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #1a4d2e;
}

.glass-checklist li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8f5e9;
  border: 1.5px solid #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%234CAF50' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.glass-panel--green {
  background: rgba(27, 94, 32, 0.06);
  border-color: rgba(76, 175, 80, 0.2);
  border-top-color: rgba(139, 195, 74, 0.3);
}

.glass-panel--green .glass-panel-label {
  color: #1b5e20;
}

.glass-phone {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1a4d2e;
  text-decoration: none;
  margin-bottom: 3px;
  transition: color 0.2s;
}

.glass-phone:hover {
  color: #1b5e20;
}

.glass-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  background: #1b5e20;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  justify-content: center;
}

.glass-whatsapp-btn:hover {
  background: #2e7d32;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .detail-nav-inner,
  .detail-hero-inner,
  .detail-body-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-nav-inner {
    padding: 10px 16px;
  }

  .detail-nav-back {
    font-size: 13px;
    padding: 8px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .detail-hero {
    padding: 32px 0 24px;
  }

  .detail-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
  }

  .detail-badge {
    font-size: 11px;
    padding: 5px 11px;
  }

  .detail-article {
    font-size: 15px;
  }

  .detail-article h2 {
    font-size: 16px;
    margin: 20px 0 10px;
  }

  .detail-article h3 {
    font-size: 14px;
  }

  .detail-article p {
    font-size: 15px;
    line-height: 1.6;
  }

  .detail-body-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .detail-sidebar {
    position: static;
    order: -1;
    gap: 10px;
  }

  .glass-panel {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .glass-panel-stat {
    font-size: 22px;
  }

  .glass-checklist li {
    font-size: 14px;
  }

  .detail-cta-block {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 12px;
  }

  .detail-cta-text h3 {
    font-size: 15px;
  }

  .detail-cta-text p {
    font-size: 13px;
  }

  .detail-cta-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    min-height: 44px;
  }

  .detail-nav-logo {
    width: 32px;
    height: 32px;
  }

  .detail-nav-name {
    font-size: 11px;
  }

  .detail-nav-sub {
    font-size: 8px;
  }

  .detail-meta {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .detail-nav-inner {
    padding: 8px 12px;
  }

  .detail-hero-inner {
    padding: 0 12px;
  }

  .detail-body-inner {
    padding: 0 12px;
    gap: 16px;
  }

  .detail-hero {
    padding: 24px 0 20px;
  }

  .detail-hero h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .detail-nav-back {
    font-size: 11px;
    padding: 6px 10px;
  }

  .detail-article p {
    font-size: 14px;
  }

  .detail-cta-block {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .glass-panel {
    padding: 12px 14px;
  }

  .glass-panel-stat {
    font-size: 20px;
  }

  .glass-panel-label {
    font-size: 9px;
  }

  .glass-checklist li {
    font-size: 13px;
  }
}

/* Projects portfolio page (proyectos.html / projects.html) */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0 8px;
}

.pf-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 8px rgba(27, 94, 32, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pf-card:hover {
  transform: translateY(-2px);
  border-color: #c6e8c6;
  box-shadow: 0 6px 18px rgba(27, 94, 32, 0.1);
}

.pf-card-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4caf50;
}

.pf-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1a4d2e;
  margin: 0;
  line-height: 1.3;
}

.pf-card-service {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.pf-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

@media (max-width: 768px) {
  .pf-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pf-card {
    padding: 14px 16px;
  }

  .pf-card p {
    font-size: 14px;
  }

  .pf-card h3 {
    font-size: 15px;
  }
}
