/* ============================================================
   PROYECTON — Page styles (subpáginas)
   ============================================================ */

/* ── Active link en navbar ─────────────────────────────────── */
.nav-link.current {
  color: #fff;
  background: rgba(174,11,11,0.85);
}
.navbar.scrolled .nav-link.current {
  color: var(--white);
  background: var(--red);
}

/* ─────────────────────────────────────────────────────────────
   PAGE BANNER (hero pequeño de subpágina)
   ───────────────────────────────────────────────────────────── */
.page-banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(174,11,11,0.85) 0%,
    rgba(17,17,17,0.78) 100%
  );
  z-index: 0;
}
.page-banner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  color: var(--white);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep {
  opacity: 0.5;
  font-size: 0.7rem;
}
.page-banner h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.page-banner h1 em { font-style: normal; color: #ffcccc; }
.page-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   PAGE CONTENT WRAPPER
   ───────────────────────────────────────────────────────────── */
.page-section {
  padding: 5rem 2rem;
}
.page-section.alt { background: var(--bg); }
.page-section.dark { background: var(--accent); color: rgba(255,255,255,0.85); }
.page-section.dark .section-title { color: var(--white); }
.page-section.dark .section-label { color: #ff6666; }
.page-section.red { background: var(--red); color: var(--white); }
.page-section.red .section-title { color: var(--white); }
.page-section.red .section-label { color: rgba(255,255,255,0.9); }

.page-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.page-inner.narrow { max-width: 860px; }

/* ── Two columns con texto + imagen ───────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse > div:first-child { order: 2; }
.two-col-text .section-title { margin-bottom: 1.5rem; }
.two-col-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.two-col-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.two-col-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.two-col-image:hover img { transform: scale(1.04); }

/* ── Feature list (✓ items) ───────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  transition: var(--transition);
}
.feature-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.page-section.alt .feature-row { background: var(--white); }
.feature-row .feature-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row .feature-icon svg { width: 14px; height: 14px; color: var(--white); }
.feature-row-text {
  flex: 1;
}
.feature-row-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.feature-row-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Info cards (3 columnas) ──────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.info-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.info-card-num {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.info-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Section heading centered ─────────────────────────────── */
.section-heading-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-heading-center .section-title { margin-bottom: 1rem; }
.section-heading-center p {
  color: var(--text-muted);
  font-size: 1rem;
}
.page-section.dark .section-heading-center p,
.page-section.red .section-heading-center p {
  color: rgba(255,255,255,0.8);
}

/* ─────────────────────────────────────────────────────────────
   CONTACTO — formulario y mapa
   ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-info-item:hover {
  border-color: var(--red);
  transform: translateX(4px);
}
.contact-info-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--red-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon svg { width: 18px; height: 18px; color: var(--red); }
.contact-info-text h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-info-text p {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}
.contact-info-text a {
  color: var(--dark);
  transition: var(--transition);
}
.contact-info-text a:hover { color: var(--red); }

/* Form */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(174,11,11,0.10);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font);
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-checkbox input { margin-top: 3px; accent-color: var(--red); }
.form-checkbox a { color: var(--red); text-decoration: underline; }

.contact-map {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  border: none;
}
.contact-map iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   SERVICE PAGE — galería y proceso
   ───────────────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.process-step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border-top: 4px solid var(--red);
}
.process-num {
  position: absolute;
  top: -16px;
  left: 1.5rem;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.process-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin: 0.5rem 0 0.75rem;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Service hero gallery (3 imágenes) ────────────────────── */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.service-gallery .gallery-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.service-gallery .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-gallery .gallery-item:hover img { transform: scale(1.06); }

/* ─────────────────────────────────────────────────────────────
   NOSOTROS — values grid
   ───────────────────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}
.value-icon {
  width: 64px; height: 64px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}
.value-card:hover .value-icon { background: var(--red); }
.value-icon svg { width: 28px; height: 28px; color: var(--red); transition: var(--transition); }
.value-card:hover .value-icon svg { color: var(--white); }
.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.value-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────
   FINANCIACIÓN — opciones
   ───────────────────────────────────────────────────────────── */
.fin-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.fin-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.fin-card.featured {
  border-color: var(--red);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.fin-card.featured::before {
  content: 'Más popular';
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 12px;
}
.fin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.fin-card.featured:hover { transform: translateY(-12px); }
.fin-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.fin-card .fin-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  display: block;
}
.fin-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.fin-features li {
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fin-features li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
}
.fin-features li:last-child { border-bottom: none; }

/* ─────────────────────────────────────────────────────────────
   GESTIONES — timeline
   ───────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: var(--red);
  opacity: 0.2;
}
.timeline-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 80px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 18px;
  width: 24px; height: 24px;
  background: var(--red);
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 3px var(--red);
}
.page-section.alt .timeline-item::before { border-color: var(--bg); }
.timeline-item h4 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .info-grid,
  .process-grid,
  .values-grid,
  .fin-options { grid-template-columns: repeat(2, 1fr); }
  .service-gallery { grid-template-columns: repeat(2, 1fr); }
  .two-col { gap: 3rem; }
}

@media (max-width: 768px) {
  .page-banner { min-height: 280px; padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem; }
  .page-banner h1 { font-size: 1.9rem; }
  .page-section { padding: 3rem 1.25rem; }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse > div:first-child { order: 0; }

  .info-grid,
  .process-grid,
  .values-grid,
  .fin-options,
  .contact-grid,
  .service-gallery { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .fin-card.featured { transform: none; }

  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 50px; }
  .timeline-item::before { left: 4px; width: 20px; height: 20px; }
}
