/* ============================================================
   RUZ CONSTRUCTORA — components.css
   Componentes compartidos por todas las páginas.
   Usa los tokens de marca definidos en style.css (:root)
   ============================================================ */

/* ── Utilidades globales ─────────────────────────────────── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--cp); color: var(--cd); padding: 10px 16px;
  border-radius: var(--radius); font-family: var(--font-head); font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ca); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.btn-sm-ruz { padding: 10px 18px !important; font-size: .76rem !important; }
main { display: block; }

/* Header sólido en páginas interiores */
#header.is-solid { background: var(--cm); }
.nav-menu { gap: 2px; }
.nav-menu a { padding: 8px 10px; white-space: nowrap; }
@media (max-width: 1499px) {
  .nav-menu a { font-size: .74rem; padding: 8px 8px; }
  .nav-menu a .fa { display: none; }
  .nav-menu .btn-ruz-primary { padding: 9px 16px; }
}
/* 7 opciones de menú: hamburguesa desde 1199px para que nada se corte */
@media (max-width: 1199px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}
.marca-card img { max-height: 70px; filter: grayscale(1) contrast(1.1); opacity: .8; }
.mobile-menu-contact {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu-contact a { border: 0 !important; padding: 8px 0 !important; text-transform: none !important; font-size: .85rem !important; }

/* Botones de navegación de carruseles */
.swiper-nav-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--gray-200); background: var(--white); color: var(--cm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s; cursor: pointer;
}
.swiper-nav-btn:hover { background: var(--cp); border-color: var(--cp); color: var(--cd); }
.swiper-nav-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* Volver arriba */
.back-to-top {
  position: fixed; right: 36px; bottom: 104px; z-index: 899;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--cm); color: var(--white); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .3s;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--cp); color: var(--cd); }

/* ── PAGE HERO con foto real ─────────────────────────────── */
.page-hero--photo { min-height: 440px; padding: 130px 0 70px; }
.page-hero--photo .page-hero-bg { opacity: .55; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.page-hero--photo .page-hero-overlay {
  background: linear-gradient(100deg, rgba(0,31,68,.96) 0%, rgba(0,31,68,.82) 45%, rgba(2,46,92,.45) 100%);
}
.page-hero--photo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--cp), var(--ca) 60%, transparent);
}
@keyframes heroZoom { to { transform: scale(1); } }
.breadcrumb-ruz { flex-wrap: wrap; }
.breadcrumb-ruz a:hover { color: var(--cp); }
.page-hero-title span { color: var(--cp); }
.page-hero-sub { max-width: 620px; }
.page-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-hero-badges span {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.9); border-radius: 100px; padding: 7px 16px;
  font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(6px);
}
.page-hero-badges i { color: var(--cp); }

/* ── Secciones base ──────────────────────────────────────── */
.mosaic-section, .marcas-section, .faq-section, .testimonios-section,
.links-section, .quote-section, .proj-carousel-section, .newsletter-section, .intro-split {
  padding: var(--section-py) 0;
}
.mosaic-section--off, .testimonios-section--light, .links-section { background: var(--off-white); }
.mosaic-section--light, .faq-section, .proj-carousel-section--light, .quote-section { background: var(--white); }
.mosaic-section--navy, .proj-carousel-section--navy, .testimonios-section--navy { background: var(--cm); }
.mosaic-section--navy .section-title, .proj-carousel-section--navy .section-title, .testimonios-section--navy .section-title { color: var(--white); }
.mosaic-section--navy .section-subtitle, .proj-carousel-section--navy .section-subtitle { color: rgba(255,255,255,.65); }
.section-title span { color: var(--cb); }
.section-navy .section-title span, .mosaic-section--navy .section-title span,
.proj-carousel-section--navy .section-title span, .testimonios-section--navy .section-title span { color: var(--cp); }

/* ============================================================
   GALERÍA MASONRY / MOSAICO
   ============================================================ */
.mosaic-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.mosaic-filters--scroll {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity;
  scrollbar-width: thin; mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.mosaic-filters--scroll .filter-btn { flex-shrink: 0; scroll-snap-align: start; }
.mosaic-filters .filter-btn span {
  display: inline-block; min-width: 22px; margin-left: 4px; padding: 1px 6px;
  border-radius: 20px; background: var(--gray-50); color: var(--gray-500);
  font-size: .66rem; line-height: 1.5;
}
.mosaic-filters .filter-btn.active span, .mosaic-filters .filter-btn:hover span { background: rgba(255,255,255,.2); color: var(--white); }
.mosaic-section--navy .filter-btn { background: transparent; border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.75); }
.mosaic-section--navy .filter-btn.active, .mosaic-section--navy .filter-btn:hover { background: var(--cp); border-color: var(--cp); color: var(--cd); }

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 10px;
}
.mosaic-item {
  position: relative; display: block; overflow: hidden;
  border-radius: 10px; background: var(--gray-100);
  isolation: isolate;
  animation: mosaicIn .5s ease both;
}
.mosaic-item.m-big  { grid-column: span 2; grid-row: span 2; }
.mosaic-item.m-wide { grid-column: span 2; }
.mosaic-item.m-tall { grid-row: span 2; }
.mosaic-item.is-hidden, .mosaic-item.is-filtered { display: none; }
.mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .4s;
}
.mosaic-item:hover img { transform: scale(1.08); }
.mosaic-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
  background: linear-gradient(to top, rgba(0,31,68,.88) 0%, rgba(0,31,68,.15) 55%, transparent 100%);
  opacity: 0; transition: opacity .35s;
}
.mosaic-item:hover .mosaic-overlay, .mosaic-item:focus-visible .mosaic-overlay { opacity: 1; }
.mosaic-zoom {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cp); color: var(--cd);
  display: flex; align-items: center; justify-content: center;
  transform: scale(.6); transition: transform .35s;
}
.mosaic-item:hover .mosaic-zoom { transform: scale(1); }
.mosaic-caption { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .9rem; line-height: 1.25; transform: translateY(8px); transition: transform .35s; }
.mosaic-caption small { display: block; color: var(--cp); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 2px; }
.mosaic-item:hover .mosaic-caption { transform: none; }
@keyframes mosaicIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 991px) {
  .mosaic-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 575px) {
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 6px; }
  .mosaic-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,31,68,.7), transparent 55%); }
  .mosaic-zoom { display: none; }
  .mosaic-caption { font-size: .72rem; transform: none; }
}

/* ── Lightbox ─────────────────────────────────────────────── */
.ruz-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,15,35,.96); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 60px 70px;
  animation: lbIn .25s ease;
}
.ruz-lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.ruz-lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.ruz-lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ruz-lb-figure figcaption {
  display: flex; gap: 18px; justify-content: space-between; align-items: center; width: 100%;
  color: rgba(255,255,255,.8); font-size: .86rem; padding-top: 14px;
}
.ruz-lb-caption a { color: var(--cp); margin-left: 8px; font-weight: 600; }
.ruz-lb-count { font-family: var(--font-head); font-weight: 700; color: var(--cp); white-space: nowrap; }
.ruz-lb-close, .ruz-lb-nav {
  position: absolute; border: 0; color: var(--white);
  background: rgba(255,255,255,.1); border-radius: 50%;
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: background .25s, color .25s;
}
.ruz-lb-close:hover, .ruz-lb-nav:hover { background: var(--cp); color: var(--cd); }
.ruz-lb-close { top: 16px; right: 16px; }
.ruz-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ruz-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575px) {
  .ruz-lightbox { padding: 60px 8px 80px; }
  .ruz-lb-prev, .ruz-lb-next { top: auto; bottom: 14px; transform: none; }
  .ruz-lb-prev { left: calc(50% - 60px); } .ruz-lb-next { right: calc(50% - 60px); }
}

/* ============================================================
   MARCAS — carrusel loop cada 3 s
   ============================================================ */
.marcas-section { padding: 80px 0; }
.marcas-section--light { background: var(--white); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.marcas-section--dark { background: var(--cd); }
.marcas-section--dark .section-title { color: var(--white); }
.marcas-section--dark .section-title span { color: var(--cp); }
.marcas-section--dark .section-subtitle { color: rgba(255,255,255,.6); }
.marcas-head { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.marcas-head .section-title { margin-bottom: 0; }
.marcas-head .section-subtitle { margin: 0; max-width: 460px; }
.marcas-slider-wrap { position: relative; }
.marcas-slider-wrap::before, .marcas-slider-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.marcas-section--light .marcas-slider-wrap::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.marcas-section--light .marcas-slider-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.marcas-section--dark .marcas-slider-wrap::before { left: 0; background: linear-gradient(90deg, var(--cd), transparent); }
.marcas-section--dark .marcas-slider-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--cd), transparent); }
.marca-card {
  height: 110px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--gray-100); box-shadow: 0 4px 18px rgba(2,46,92,.06);
  display: flex; align-items: center; justify-content: center; padding: 18px 22px;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.marca-card img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s; }
.marca-card:hover { transform: translateY(-4px); border-color: var(--cp); box-shadow: 0 10px 30px rgba(2,46,92,.12); }
.marca-card:hover img, .marcas-swiper .swiper-slide-active .marca-card img { filter: none; opacity: 1; }
.marcas-swiper .swiper-slide-active .marca-card { border-color: var(--cp); }
.marcas-progress { height: 3px; background: var(--gray-100); border-radius: 3px; margin: 26px auto 0; max-width: 220px; overflow: hidden; }
.marcas-section--dark .marcas-progress { background: rgba(255,255,255,.12); }
.marcas-progress span { display: block; height: 100%; width: 0; background: var(--cp); }
.marcas-progress span.run { animation: marcaBar 3s linear forwards; }
@keyframes marcaBar { from { width: 0; } to { width: 100%; } }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { background: var(--off-white); padding: 70px 0; }
.newsletter-box {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--cm) 0%, var(--cb) 100%);
  border-radius: 22px; padding: 52px 48px; color: var(--white);
  box-shadow: 0 24px 60px rgba(2,46,92,.25);
}
.newsletter-box::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  border: 2px solid rgba(245,214,8,.25); border-radius: 50%;
}
.newsletter-deco { position: absolute; right: 30px; bottom: -30px; font-size: 9rem; color: rgba(255,255,255,.05); line-height: 1; }
.newsletter-box .section-label { color: var(--cp); }
.newsletter-title { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 12px; }
.newsletter-title span { color: var(--cp); }
.newsletter-text { color: rgba(255,255,255,.75); margin-bottom: 16px; }
.newsletter-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.newsletter-perks li { font-size: .84rem; color: rgba(255,255,255,.85); display: flex; gap: 6px; align-items: center; }
.newsletter-perks i { color: var(--cp); }
.newsletter-form { position: relative; z-index: 1; }
.newsletter-fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }
.newsletter-fields input {
  height: 54px; border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: var(--white); padding: 0 16px; font-size: .92rem; min-width: 0;
}
.newsletter-fields input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-fields input:focus { outline: none; border-color: var(--cp); background: rgba(255,255,255,.14); }
.newsletter-fields .btn-ruz { height: 54px; justify-content: center; }
.newsletter-consent { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .8rem; color: rgba(255,255,255,.65); }
.newsletter-consent a { color: var(--cp); text-decoration: underline; }
@media (max-width: 767px) {
  .newsletter-box { padding: 36px 22px; }
  .newsletter-fields { grid-template-columns: 1fr; }
}

/* Feedback de formularios */
.form-feedback { margin: 12px 0 0; font-size: .88rem; font-weight: 600; min-height: 1.2em; }
.form-feedback.ok { color: #16a34a; }
.form-feedback.err { color: #dc2626; }
.newsletter-form .form-feedback.ok { color: #86efac; }
.newsletter-form .form-feedback.err { color: #fca5a5; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios-section .swiper-testimonios { padding: 6px 4px 50px !important; }
.testimonios-section .swiper-slide { height: auto; }
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-text { flex: 1; }
.testimonial-project {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--gray-100); color: var(--ca); font-size: .8rem; font-weight: 600;
}
.testimonial-project img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
.testimonial-project:hover { color: var(--cb); }
.testi-pagination .swiper-pagination-bullet { background: var(--gray-300); }
.testi-pagination .swiper-pagination-bullet-active { background: var(--cb); width: 24px; border-radius: 4px; }
.reviews-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  margin-top: 10px; padding: 22px; border-radius: 16px; background: var(--white);
  border: 1px dashed var(--gray-200); text-align: center;
}
.reviews-cta p { margin: 0; color: var(--gray-600); font-size: .92rem; }
.reviews-cta-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(245,214,8,.18); color: var(--cs); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-aside { margin-top: 28px; border-radius: 16px; overflow: hidden; background: var(--cm); box-shadow: var(--shadow); }
.faq-aside img { width: 100%; height: 180px; object-fit: cover; }
.faq-aside-body { padding: 20px; }
.faq-aside-body p { color: var(--white); font-family: var(--font-head); font-weight: 700; margin-bottom: 12px; }
.faq-aside-body p i { color: var(--cp); margin-right: 6px; }
.faq-accordion .accordion-item { border: 1px solid var(--gray-100); border-radius: 14px !important; overflow: hidden; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(2,46,92,.04); }
.faq-accordion .accordion-button {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--cm);
  padding: 20px 22px; gap: 14px; background: var(--white); box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) { background: var(--off-white); color: var(--cb); }
.faq-accordion .accordion-button::after { background-size: 1rem; }
.faq-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: rgba(12,151,218,.1); color: var(--ca); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.accordion-button:not(.collapsed) .faq-num { background: var(--cp); color: var(--cd); }
.faq-accordion .accordion-body { padding: 4px 22px 22px 70px; color: var(--gray-600); font-size: .93rem; line-height: 1.75; }
@media (max-width: 575px) { .faq-accordion .accordion-body { padding-left: 22px; } }

/* ============================================================
   CTA con foto
   ============================================================ */
.cta-photo { position: relative; overflow: hidden; padding: 120px 0; background: var(--cm); }
.cta-photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.cta-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,31,68,.94) 0%, rgba(2,46,92,.84) 50%, rgba(12,151,218,.35) 100%);
}
.cta-photo::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--cp) 0%, var(--ca) 60%, transparent 100%); }
.cta-photo .cta-geo-1, .cta-photo .cta-geo-2 { z-index: 1; }
.cta-photo .container { position: relative; z-index: 2; }
.cta-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin-top: 30px; }
.cta-trust span { color: rgba(255,255,255,.75); font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.cta-trust i { color: var(--cp); }

/* ============================================================
   ENLACES RELACIONADOS
   ============================================================ */
.link-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--gray-100); box-shadow: 0 4px 18px rgba(2,46,92,.05);
  transition: transform .35s, box-shadow .35s;
}
.link-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.link-card-img { display: block; height: 140px; overflow: hidden; }
.link-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.link-card:hover .link-card-img img { transform: scale(1.08); }
.link-card-body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 20px 20px; flex: 1; }
.link-card-icon {
  position: absolute; top: -24px; left: 20px; width: 48px; height: 48px; border-radius: 12px;
  background: var(--cp); color: var(--cd); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(245,214,8,.35);
}
.link-card-body strong { font-family: var(--font-head); color: var(--cm); font-size: 1rem; }
.link-card-body > span:not(.link-card-icon) { color: var(--gray-500); font-size: .86rem; line-height: 1.55; flex: 1; }
.link-card-body em { font-style: normal; color: var(--ca); font-weight: 700; font-size: .8rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   COTIZACIÓN RÁPIDA
   ============================================================ */
.quote-section { background: var(--off-white); }
.quote-box { border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: 0 24px 60px rgba(2,46,92,.12); border: 1px solid var(--gray-100); }
.quote-visual { position: relative; background-size: cover; background-position: center; min-height: 380px; }
.quote-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,31,68,.92), rgba(5,98,163,.78)); }
.quote-visual-inner { position: relative; z-index: 1; padding: 44px 38px; color: var(--white); height: 100%; display: flex; flex-direction: column; }
.quote-tag { align-self: flex-start; background: rgba(245,214,8,.15); border: 1px solid rgba(245,214,8,.35); color: var(--cp); border-radius: 100px; padding: 5px 14px; font-size: .72rem; font-weight: 700; font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.quote-visual h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 18px 0 20px; }
.quote-visual h2 span { color: var(--cp); }
.quote-visual ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: auto; }
.quote-visual li { display: flex; gap: 10px; color: rgba(255,255,255,.85); font-size: .92rem; }
.quote-visual li i { color: var(--cp); }
.quote-phone { margin-top: 28px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--white); display: inline-flex; gap: 10px; align-items: center; }
.quote-phone i { color: var(--cp); }
.quote-form { padding: 40px 38px; }
.ruz-form-label { display: block; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cm); margin-bottom: 6px; }
.ruz-form-label .req { color: var(--ca); }
.quote-form .ruz-form-control {
  width: 100%; border: 1.5px solid var(--gray-100); border-radius: var(--radius); background: var(--off-white);
  padding: 12px 14px; font-size: .92rem; color: var(--gray-900); transition: border-color .2s, background .2s;
}
.quote-form .ruz-form-control:focus { outline: none; border-color: var(--ca); background: var(--white); box-shadow: 0 0 0 4px rgba(12,151,218,.1); }
.quote-form .ruz-form-control.error { border-color: #dc2626; }
.privacy-inline { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--gray-600); }
.privacy-inline a { color: var(--ca); text-decoration: underline; }
@media (max-width: 991px) { .quote-visual { min-height: 0; } .quote-form, .quote-visual-inner { padding: 30px 22px; } }

/* ============================================================
   CARRUSEL PREMIUM DE PROYECTOS
   ============================================================ */
.proj-swiper { padding: 10px 4px 54px !important; }
.proj-swiper .swiper-slide { height: auto; }
.proj-slide {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(2,46,92,.10); border: 1px solid var(--gray-100);
  transition: transform .4s, box-shadow .4s;
}
.proj-slide:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(2,46,92,.2); }
.proj-slide-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.proj-slide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.proj-slide:hover .proj-slide-img img { transform: scale(1.08); }
.proj-slide-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.proj-slide-cat { font-family: var(--font-head); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ca); }
.proj-slide-body strong { font-family: var(--font-head); color: var(--cm); font-size: 1.08rem; line-height: 1.3; }
.proj-slide-desc { color: var(--gray-500); font-size: .86rem; line-height: 1.55; flex: 1; }
.proj-slide-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--gray-100); font-size: .76rem; color: var(--gray-500); }
.proj-slide-meta i { color: var(--cp); }
.pc-pagination .swiper-pagination-bullet { background: var(--gray-300); }
.pc-pagination .swiper-pagination-bullet-active { background: var(--cb); width: 24px; border-radius: 4px; }
.proj-carousel-section--navy .pc-pagination .swiper-pagination-bullet-active { background: var(--cp); }
.proj-carousel-section--navy .swiper-nav-btn { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }

/* Badge nº de fotos en cards de proyecto */
.project-photos {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(0,31,68,.75); color: var(--white); backdrop-filter: blur(6px);
  border-radius: 100px; padding: 4px 11px; font-size: .72rem; font-weight: 600;
}
.project-photos i { color: var(--cp); }
.project-cat i { margin-right: 2px; }
.project-item { aspect-ratio: auto; overflow: visible; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip { padding: 70px 0; background: var(--cm); position: relative; }
.stats-strip::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,151,218,.12), transparent 60%); }

/* ============================================================
   INTRO SPLIT (bloques texto + imagen en páginas interiores)
   ============================================================ */
.intro-split { background: var(--white); }
.intro-collage { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 200px 200px; gap: 12px; }
.intro-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.intro-collage img:first-child { grid-row: span 2; }
.intro-collage-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--cp); color: var(--cd);
  border-radius: 14px; padding: 16px 20px; box-shadow: 0 12px 30px rgba(245,214,8,.35);
  font-family: var(--font-head); line-height: 1.1;
}
.intro-collage-badge strong { display: block; font-size: 2rem; font-weight: 900; }
.intro-collage-badge span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 28px; }
.check-list li { display: flex; gap: 10px; color: var(--gray-700); font-size: .92rem; }
.check-list i { color: var(--ca); font-size: 1.05rem; }
@media (max-width: 575px) { .check-list { grid-template-columns: 1fr; } .intro-collage { grid-template-rows: 150px 150px; } .intro-collage-badge { left: 10px; } }

/* ============================================================
   FOOTER — franja CTA superior
   ============================================================ */
#footer { padding-top: 0; }
.footer-top-cta { background: linear-gradient(90deg, var(--cb), var(--ca)); margin-bottom: 70px; }
.footer-top-inner { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; padding: 30px 0; }
.footer-top-eyebrow { color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-top-eyebrow i { color: var(--cp); }
.footer-top-title { color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0; }
.footer-top-title span { color: var(--cp); }
.footer-top-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-contact-item a { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.5; transition: color .2s; }
.footer-contact-item a:hover { color: var(--white); }
.footer-links--inline { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.footer-links--inline a {
  font-size: .74rem; padding: 4px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,.12);
}
.footer-bottom-links { flex-wrap: wrap; }

/* ============================================================
   PÁGINA PROYECTO (detalle)
   ============================================================ */
.pd-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; padding: 150px 0 60px; background: var(--cd); overflow: hidden; }
.pd-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroZoom 18s ease-out forwards; transform: scale(1.06); }
.pd-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,31,68,.97) 0%, rgba(0,31,68,.65) 50%, rgba(0,31,68,.35) 100%); }
.pd-hero .container { position: relative; z-index: 2; }
.pd-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--cp); color: var(--cd); border-radius: 100px; padding: 6px 16px; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.pd-title { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; max-width: 820px; }
.pd-sub { color: rgba(255,255,255,.78); font-size: 1.06rem; max-width: 640px; margin-top: 12px; }
.pd-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pd-facts span { display: inline-flex; gap: 8px; align-items: center; color: var(--white); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 9px 14px; font-size: .84rem; backdrop-filter: blur(6px); }
.pd-facts i { color: var(--cp); }
.pd-body { padding: var(--section-py) 0 40px; background: var(--white); }
.pd-desc p { color: var(--gray-600); font-size: 1rem; line-height: 1.85; margin-bottom: 16px; }
.pd-alcance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.pd-alcance li { display: flex; gap: 10px; align-items: center; background: var(--off-white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--cm); font-weight: 600; }
.pd-alcance i { color: var(--ca); }
.pd-ficha { background: var(--cm); border-radius: 18px; padding: 28px; color: var(--white); position: sticky; top: 100px; }
.pd-ficha h3 { color: var(--cp); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.pd-ficha dl { margin: 0; }
.pd-ficha .row-f { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.pd-ficha dt { color: rgba(255,255,255,.55); font-weight: 500; }
.pd-ficha dd { margin: 0; text-align: right; font-weight: 600; }
.pd-ficha .btn-ruz, .pd-ficha .btn-whatsapp { width: 100%; justify-content: center; margin-top: 12px; }
.pd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pd-nav a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--off-white); border: 1px solid var(--gray-100); transition: all .3s; }
.pd-nav a:hover { border-color: var(--cp); box-shadow: var(--shadow); }
.pd-nav img { width: 76px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.pd-nav small { display: block; color: var(--gray-400); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.pd-nav strong { color: var(--cm); font-family: var(--font-head); font-size: .92rem; }
.pd-nav .next { flex-direction: row-reverse; text-align: right; }
@media (max-width: 575px) { .pd-alcance, .pd-nav { grid-template-columns: 1fr; } .pd-hero { min-height: 460px; } }

/* ============================================================
   PROYECTOS — portafolio
   ============================================================ */
.portfolio-section { padding: var(--section-py) 0; background: var(--off-white); }
.portfolio-section .project-card { height: 300px; }
.portfolio-count { color: var(--gray-500); font-size: .88rem; margin-bottom: 20px; }
.portfolio-count strong { color: var(--cm); }

/* ============================================================
   SERVICIOS — bloques y proceso
   ============================================================ */
.srv-mini-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.srv-mini-gal a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.srv-mini-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.srv-mini-gal a:hover img { transform: scale(1.1); }
.srv-related { display: inline-flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 22px; }
.srv-related a { font-size: .76rem; font-weight: 600; color: var(--cb); background: rgba(12,151,218,.08); border-radius: 100px; padding: 5px 12px; }
.srv-related a:hover { background: var(--cp); color: var(--cd); }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step-card { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 26px 20px; transition: all .3s; }
.step-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); border-color: var(--cp); }
.step-card i { font-size: 1.6rem; color: var(--cp); }
.step-card h3 { color: var(--white); font-size: 1rem; margin: 14px 0 6px; }
.step-card p { color: rgba(255,255,255,.65); font-size: .84rem; margin: 0; }
.step-card::before { counter-increment: step; content: '0' counter(step); position: absolute; top: 16px; right: 18px; font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; color: rgba(255,255,255,.08); }
@media (max-width: 991px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .steps-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG / LEGALES — sidebar complementaria
   ============================================================ */
.side-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 16px; padding: 22px; box-shadow: 0 4px 18px rgba(2,46,92,.05); margin-bottom: 20px; }
.side-card h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cb); margin-bottom: 14px; }
.side-proj { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.side-proj:last-child { border-bottom: 0; }
.side-proj img { width: 64px; height: 50px; object-fit: cover; border-radius: 8px; }
.side-proj strong { display: block; font-size: .86rem; color: var(--cm); font-family: var(--font-head); line-height: 1.25; }
.side-proj small { color: var(--gray-500); font-size: .74rem; }
.side-cta { background: linear-gradient(150deg, var(--cm), var(--cb)); color: var(--white); border: 0; }
.side-cta h3 { color: var(--cp); }
.side-cta p { color: rgba(255,255,255,.8); font-size: .88rem; }
.side-cta .btn-ruz, .side-cta .btn-whatsapp { width: 100%; justify-content: center; margin-top: 8px; }

/* Contacto: hero compartido antes de los datos */
.page-contacto .datos-section { padding-top: 80px; }
.form-success.is-error { background: rgba(220,38,38,.08) !important; color: #b91c1c !important; border-color: rgba(220,38,38,.3) !important; }

/* Legales: mismo lenguaje visual que el resto de héroes */
.legal-hero {
  position: relative; overflow: hidden; padding: 150px 0 70px !important;
  background: linear-gradient(100deg, rgba(0,31,68,.95), rgba(2,46,92,.82)), url('../images/proyectos/clinica-rehabilitacion/clinica-rehabilitacion-02.jpg') center/cover !important;
}
.legal-hero--terminos { background: linear-gradient(100deg, rgba(0,31,68,.95), rgba(12,56,102,.85)), url('../images/proyectos/los-agaves/los-agaves-43.jpg') center/cover !important; }
.legal-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--cp), var(--ca) 60%, transparent); }

/* Contacto: mapa real */
.map-section iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.9); }

/* Avoid AOS hiding content when JS fails */
.no-js [data-aos] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
