/* =========================================================
   OBRA NUEVA — SOLO MAIN
   Requiere: <main class="page-obra"> ... </main>
========================================================= */

/* ===== CONTENEDOR ===== */
.page-obra {
  color: #3f5146;
}

/* (si ya tienes .container global, puedes borrar esto) */
.page-obra .container {
  width: min(1750px, 100% - 3rem);
  margin: 0 auto;
}

/* ===== LOGO INLINE (solo dentro del main) ===== */
.page-obra .logo-inline {
  display: inline-block;
  width: 75px;
  height: 20px;
  background-image: url("../images/logo-visitia.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: 0px;
  margin-left: -6px;
}

/* =========================================================
   HERO
========================================================= */
.page-obra .section-hero {
  margin-top: 110px;
  margin-bottom: 90px;
}

.page-obra .hero-headline {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #1e2e2a;
  max-width: 1800px;
  margin-left: 70px;
}

.page-obra .hero-headline span {
  display: block;
  color: #1d7a67;
  font-weight: 900;
  margin-top: 6px;
}

.page-obra .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 40px;
  align-items: center;
}

/* ===== CARD TEXTO IZQ ===== */
.page-obra .card-green-light {
  background: #ffffff;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  line-height: 1.6;
}

.page-obra .enter,
.page-obra .promotoras-features,
.page-obra .editorial-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-obra .enter li,
.page-obra .promotoras-features li,
.page-obra .editorial-list li {
  position: relative;
  padding-left: 18px;
  margin-top: 20px;
}

.page-obra .enter li::before,
.page-obra .promotoras-features li::before,
.page-obra .editorial-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #2ba383, #71d6bb);
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0.65em;
  transform: translateY(-50%);
}

.page-obra .enter {
  margin-top: 18px;
}

.page-obra .enter li {
  margin-bottom: 12px;
}

/* ===== CARRUSEL HERO ===== */
.page-obra .video-box.image-carousel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 360px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
}

.page-obra .carousel-track {
  position: absolute;
  inset: 0;
}

.page-obra .carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  will-change: opacity;
}

.page-obra .carousel-img.active {
  opacity: 1;
  z-index: 2;
}

/* =========================================================
   HERO TIMELINE
========================================================= */
.page-obra .hero-timeline {
  position: relative;
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  gap: 120px;
}

.page-obra .hero-timeline::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 4px;
  background: linear-gradient(90deg, #f8c242, #ffe28a);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(248,194,66,0.45);
  z-index: 0;
}

.page-obra .hero-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.page-obra .hero-timeline-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffe28a, #f8c242);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 14px rgba(248,194,66,0.18),
    0 14px 40px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 2;
}

.page-obra .hero-timeline-dot img {
  width: 28px;
  height: 28px;
  filter: brightness(0);
}

.page-obra .hero-timeline-hover {
  position: absolute;
  bottom: 96px;
  background: linear-gradient(180deg, #ffffff, #fff7db);
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2f2b;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transition: 0.25s ease;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(248,194,66,0.45);
  white-space: nowrap;
}

.page-obra .hero-timeline-item:hover .hero-timeline-hover {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-obra .hero-timeline-item:hover .hero-timeline-dot {
  transform: scale(1.12);
}

/* =========================================================
   PROMOTORAS
========================================================= */
.page-obra .promotoras-band {
  width: 100%;
  padding: 50px 0;
  background: transparent;
  overflow: hidden;
}

.page-obra .promotoras-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
  border-radius: 42px;
  padding: 70px 80px;
  max-width: 1240px;
  margin: 0 auto;
  box-shadow:
    0 35px 120px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.45s ease;
}

.page-obra .promotoras-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(221, 217, 207, 0.38), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.page-obra .promotoras-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 50px 150px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(79,182,165,0.25);
}

.page-obra .promotoras-card:hover::before {
  opacity: 1;
}

.page-obra .promotoras-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.page-obra .promotoras-layout.reverse {
  grid-template-columns: 1.25fr 1fr;
}

.page-obra .promotoras-carousel {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 330px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0,0,0,0.7);
}

.page-obra .promotoras-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: #1d7a67;
  margin-bottom: 22px;
}

.page-obra .promotoras-lead,
.page-obra .promotoras-impact {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1f2f2b;
  margin-bottom: 18px;
  margin-top: 15px;
}

.page-obra .promotoras-actions {
  margin-top: 26px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================================
   DOBLE SECCIÓN EDITORIAL
========================================================= */
.page-obra .section-double.editorial-double {
  margin: 120px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}

.page-obra .editorial-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
  border-radius: 40px;
  padding: 54px 46px;
  box-shadow:
    0 28px 90px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: 0.45s ease;
}

.page-obra .editorial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.page-obra .editorial-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 50px 140px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(60,120,110,0.18);
}

.page-obra .editorial-card:hover::before {
  opacity: 1;
}

.page-obra .editorial-card.architecture::before {
  background: radial-gradient(circle at top left, rgba(143,227,214,0.45), transparent 60%);
}

.page-obra .editorial-card.reforms::before {
  background: radial-gradient(circle at top left, rgba(255, 213, 155, 0.45), transparent 65%);
}

.page-obra .editorial-header { margin-bottom: 30px; }

.page-obra .editorial-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: white;
  background: #1d7a67;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.page-obra .editorial-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #1e2926;
}

.page-obra .editorial-sub {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1d7a67;
}

.page-obra .editorial-list {
  margin-left: 0;
  margin-top: 24px;
}

.page-obra .editorial-list li {
  margin-bottom: 14px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #1f2f2b;
}

/* =========================================================
   LINKS / CTA
========================================================= */
.page-obra .center {
  display: flex;
  justify-content: center;
  margin: 70px 0 90px;
}

.page-obra .btn-yellow {
  background: linear-gradient(135deg, #f8c242, #ffe28a);
  color: #1b1b1b;
  border-radius: 999px;
  font-weight: 900;
  padding: 16px 40px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(248,194,66,0.45);
  transition: 0.3s ease;
  text-align: center;
}

.page-obra .btn-yellow:hover {
  transform: translateY(-3px);
}

.page-obra .btn-yellow.big {
  padding: 18px 46px;
  font-size: 1.15rem;
}

.page-obra .orange-link {
  color: #d08900;
  font-weight: 700;
  text-decoration: underline;
}

/* =========================================================
   PROYECTO A MEDIDA / FAQ
========================================================= */
.page-obra .custom-project-section {
  margin: 140px auto;
  max-width: 1100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.page-obra .custom-block.featured {
  background: #1a4d42;
  border-radius: 32px;
  padding: 90px 60px;
  box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.6);
}

.page-obra .custom-block.featured .pill-title {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 28px;
  display: inline-block;
}

.page-obra .custom-block.featured p {
  font-size: 1.17rem;
  line-height: 1.75;
  color: #e9f3ef;
  margin-bottom: 40px;
  max-width: 820px;
}

.page-obra .custom-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 44px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f0f0f;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.page-obra .custom-cta:hover {
  background: #eaeaea;
  transform: translateY(-3px);
}

.page-obra .custom-card.simple {
  background: linear-gradient(180deg, #ffffff, #f6fbf9);
  border-radius: 22px;
  padding: 34px 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.10),
    inset 0 0 0 1px rgba(0,0,0,0.04);
  text-align: center;
}

.page-obra .faq-link {
  font-size: 16px;
  color: #2f9f8a;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(47,159,138,0.4);
  padding-bottom: 2px;
  transition: 0.3s ease;
}

.page-obra .faq-link:hover {
  color: #186b5a;
  border-bottom-color: #186b5a;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1000px) {
  .page-obra .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-obra .video-box.image-carousel {
    height: 260px;
    border-radius: 22px;
  }

  .page-obra .hero-headline {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #1e2e2a;
  max-width: 1800px;
  margin-left: 0px;
}

  .page-obra .hero-timeline {
    gap: 60px;
  }

  .page-obra .hero-timeline::before {
    width: 80%;
  }

  .page-obra .hero-timeline-dot {
    width: 54px;
    height: 54px;
  }

  .page-obra .hero-timeline-dot img {
    width: 24px;
    height: 24px;
  }

  .page-obra .hero-timeline-hover {
    font-size: 12px;
    padding: 12px 14px;
    bottom: 82px;
  }

  .page-obra .promotoras-card {
    padding: 42px 30px;
    border-radius: 32px;
  }

  .page-obra .promotoras-layout,
  .page-obra .promotoras-layout.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .page-obra .promotoras-carousel {
    max-width: 100%;
    height: 260px;
  }

  .page-obra .promotoras-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .page-obra .promotoras-lead,
  .page-obra .promotoras-impact {
    text-align: center;
  }

  .page-obra .promotoras-actions {
    justify-content: center;
  }

  .page-obra .section-double.editorial-double {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .page-obra .editorial-card {
    padding: 40px 30px;
  }

  .page-obra .editorial-title {
    font-size: 1.7rem;
  }

  .page-obra .custom-project-section {
    margin: 90px auto;
    gap: 70px;
  }

  .page-obra .custom-block.featured {
    padding: 50px 24px;
  }

  .page-obra .custom-block.featured .pill-title {
    font-size: 1.5rem;
  }

  .page-obra .custom-block.featured p {
    font-size: 0.95rem;
  }

  .page-obra .btn-yellow.big {
    padding: 14px 36px;
    font-size: 1rem;
  }

  .page-obra .center {
    margin: 60px 0;
  }
}































/* =========================================================
   PAGE OBRA — RESPONSIVE 95% + SAFE AREA + LANDSCAPE
========================================================= */

html, body { overflow-x: hidden; }

:root{
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Contenedor: evita “pegado” en pantallas chicas */
.page-obra .container{
  width: min(1750px, 100% - 2rem);
}

/* Logo inline micro-ajuste */
.page-obra .logo-inline{
  margin-left: -4px;
}

/* =========================
   HERO: spacing + headline fluido
========================= */
.page-obra .section-hero{
  margin-top: clamp(76px, 10vw, 110px);
  margin-bottom: clamp(48px, 8vw, 90px);
  padding-top: var(--safe-top);
}

/* Quita el “offset” duro y hazlo elástico */
.page-obra .hero-headline{
  margin-left: clamp(0px, 4vw, 70px);
  margin-right: 0;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  letter-spacing: clamp(-1px, -0.2vw, -0.5px);
}

/* Grid hero: gap fluido */
.page-obra .hero-grid{
  gap: clamp(22px, 4.5vw, 48px);
  margin-top: clamp(18px, 4vw, 40px);
}

/* Carrusel hero: altura adaptable */
.page-obra .video-box.image-carousel{
  height: clamp(220px, 38vw, 360px);
  border-radius: clamp(20px, 4vw, 28px);
}

/* Card texto: padding fluido */
.page-obra .card-green-light{
  padding: clamp(18px, 3vw, 28px);
  border-radius: clamp(18px, 3vw, 22px);
}

/* =========================
   HERO TIMELINE: anti overflow real
========================= */
.page-obra .hero-timeline{
  gap: clamp(28px, 7vw, 120px);
  padding-inline: 16px;
  flex-wrap: wrap;               /* clave para mobile */
  row-gap: 26px;
}

.page-obra .hero-timeline::before{
  width: min(720px, 92%);
}

/* Dot escala fluida */
.page-obra .hero-timeline-dot{
  width: clamp(50px, 7vw, 64px);
  height: clamp(50px, 7vw, 64px);
}

.page-obra .hero-timeline-dot img{
  width: clamp(22px, 3.2vw, 28px);
  height: clamp(22px, 3.2vw, 28px);
}

/* Tooltip: que no rompa layout en mobile */
.page-obra .hero-timeline-hover{
  font-size: 12px;
  padding: 12px 14px;
  white-space: normal;        /* permite wrap */
  max-width: 240px;
  text-align: center;
}

/* =========================
   PROMOTORAS: grid/paddings fluidos
========================= */
.page-obra .promotoras-band{
  padding: clamp(24px, 5vw, 50px) 0;
}

.page-obra .promotoras-card{
  padding: clamp(26px, 6vw, 70px) clamp(18px, 6vw, 80px);
  border-radius: clamp(26px, 5vw, 42px);
}

.page-obra .promotoras-layout{
  gap: clamp(28px, 6vw, 80px);
}

.page-obra .promotoras-carousel{
  max-width: min(460px, 100%);
  height: clamp(220px, 34vw, 330px);
  border-radius: clamp(22px, 5vw, 36px);
}

.page-obra .promotoras-title{
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}

/* =========================
   DOBLE EDITORIAL: fluido + no overflow
========================= */
.page-obra .section-double.editorial-double{
  margin: clamp(70px, 10vw, 120px) 0;
  gap: clamp(28px, 6vw, 80px);
}

.page-obra .editorial-card{
  border-radius: clamp(24px, 5vw, 40px);
  padding: clamp(26px, 4.5vw, 54px) clamp(20px, 4vw, 46px);
}

.page-obra .editorial-title{
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
}

/* =========================
   CTA / Bottom spacing + safe area
========================= */
.page-obra .center{
  margin: clamp(40px, 7vw, 70px) 0 calc(clamp(60px, 8vw, 90px) + var(--safe-bottom));
  padding-inline: 16px;
}

.page-obra .btn-yellow.big{
  font-size: clamp(16px, 2.1vw, 1.15rem);
  padding: 18px clamp(22px, 6vw, 46px);
  max-width: 520px;
  width: fit-content;
}

/* =========================
   Touch devices: evita “jump” por hover/lift
========================= */
@media (hover: none), (pointer: coarse){
  .page-obra .promotoras-card:hover,
  .page-obra .editorial-card:hover{
    transform: none;
  }
  .page-obra .promotoras-card:hover::before,
  .page-obra .editorial-card:hover::before{
    opacity: 0;
  }
  .page-obra .btn-yellow:hover{
    transform: none;
  }
}

/* =========================================================
   BREAKPOINTS OBLIGATORIOS (mínimos)
========================================================= */

/* <= 1024px (tablet pro) */
@media (max-width: 1024px){
  .page-obra .hero-grid{
    grid-template-columns: 1fr;
  }
  .page-obra .promotoras-layout,
  .page-obra .promotoras-layout.reverse{
    grid-template-columns: 1fr;
  }
  .page-obra .section-double.editorial-double{
    grid-template-columns: 1fr;
  }
}

/* <= 768px (tablet) */
@media (max-width: 768px){
  .page-obra .container{ width: min(1750px, 100% - 1.5rem); }
  .page-obra .hero-headline{ margin-left: 0; }
  .page-obra .promotoras-title,
  .page-obra .promotoras-lead,
  .page-obra .promotoras-impact{
    text-align: center;
  }
  .page-obra .promotoras-actions{
    justify-content: center;
  }
}

/* <= 600px (mobile grande) */
@media (max-width: 600px){
  .page-obra .btn-yellow.big{
    width: 100%;
    max-width: 420px;
    padding: 16px 0;
    text-align: center;
  }
}

/* <= 480px (mobile) */
@media (max-width: 480px){
  .page-obra .hero-timeline-hover{
    max-width: 210px;
  }
}

/* =========================================================
   LANDSCAPE: (max-height: 430px) AND (orientation: landscape)
========================================================= */
@media (max-height: 430px) and (orientation: landscape){
  .page-obra .section-hero{
    margin-top: 62px;
    margin-bottom: 38px;
  }

  .page-obra .hero-grid{
    gap: 18px;
    margin-top: 16px;
  }

  .page-obra .video-box.image-carousel{
    height: 200px;
  }

  .page-obra .hero-timeline{
    margin-top: 18px;
    padding-top: 12px;
    gap: 26px;
  }

  .page-obra .promotoras-band{
    padding: 20px 0;
  }

  .page-obra .promotoras-carousel{
    height: 200px;
  }

  .page-obra .section-double.editorial-double{
    margin: 60px 0;
    gap: 22px;
  }

  .page-obra .custom-project-section{
    margin: 70px auto;
    gap: 50px;
  }

  .page-obra .custom-block.featured{
    padding: 28px 18px;
  }
}