/* ==========================================================================
   PLANEX HERO SLIDER - CSS (v2.5.0)
   1. PC: Tipografía e impacto visual escalados para equilibrar la foto de 605x689.
   2. Mobile-First Real: Foto limpia panorámica (sin arcos deformes) + Ficha compacta en 1 pantallazo.
   3. Línea coral contenida únicamente en el texto (sin desbordar detrás del botón).
   ========================================================================== */

/* Fondo Full Bleed pantalla completa */
.planex-slider-fullbleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--planex-slider-bg, #FAF7F2);
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  transition: background-color 0.4s ease;
}

/* Contenedor centrado amplio */
.planex-slider-wrapper {
  max-width: 1540px;
  margin: 0 auto;
  padding: 40px 40px 30px 40px;
  position: relative;
  box-sizing: border-box;
  font-family: inherit;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
}

.planex-slider-wrapper,
.planex-slider-wrapper * {
  box-sizing: border-box;
}

/* Escenario con altura fija para evitar saltos en PC */
.planex-slider-stage {
  position: relative;
  min-height: 700px;
}

/* Slide individual en PC: Columna de texto equilibrada + Foto de 605px */
.planex-slide {
  display: none;
  grid-template-columns: minmax(0, 1.25fr) 605px;
  gap: 60px;
  align-items: center;
  min-height: 690px;
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
  box-sizing: border-box;
}

.planex-slide.active {
  display: grid;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   COLUMNA IZQUIERDA (PC): TEXTOS ESCALADOS Y JERARQUÍA EQUILIBRADA
   -------------------------------------------------------------------------- */
.planex-content-col {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrow / Texto superior */
.planex-eyebrow {
  font-family: inherit;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: #64748B;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 16px;
}

/* Logo del Proyecto (PC) */
.planex-slide-logo-wrap {
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
}

.planex-slide-logo {
  max-height: var(--planex-logo-h, 85px);
  max-width: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.04));
}

/* Accesibilidad SEO */
.planex-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Título Display escalado en PC */
.planex-display-title {
  font-family: inherit;
  font-size: clamp(38px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  color: #0F172A;
  margin: 0 0 22px 0;
  letter-spacing: -1px;
}

/* Caja de acento lateral: SOLO envuelve el título y párrafo (NO el botón) */
.planex-accent-box {
  border-left: 4.5px solid #FF5E62;
  padding-left: 28px;
  margin-bottom: 28px;
  max-width: 820px;
}

.planex-accent-title {
  font-family: inherit;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 14px 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.planex-desc {
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  max-width: 740px;
}

/* CTA: Botón separado de la caja de acento */
.planex-cta-container {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.planex-btn-gradient {
  font-family: inherit;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #FF1361 0%, #FF6A00 100%);
  color: #FFFFFF !important;
  text-decoration: none !important;
  border: none;
  padding: 16px 44px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 19, 97, 0.3);
  transition: all 0.25s ease;
  text-align: center;
}

.planex-btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 19, 97, 0.4);
  color: #FFFFFF !important;
}

/* Formulario con campo de entrada */
.planex-lead-form {
  max-width: 460px;
  margin-top: 4px;
}

.planex-input-label {
  font-family: inherit;
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 9px;
}

.planex-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planex-input {
  font-family: inherit;
  width: 100%;
  padding: 14px 22px;
  border: 1.5px solid #E5DDD3;
  border-radius: 50px;
  background: #FFFFFF;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.planex-input:focus {
  border-color: #FF5E62;
  box-shadow: 0 0 0 3px rgba(255, 94, 98, 0.15);
}

/* --------------------------------------------------------------------------
   COLUMNA DERECHA: FOTO DE IMPACTO ARQUITECTÓNICO (PC)
   -------------------------------------------------------------------------- */
.planex-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.planex-arch-frame {
  width: 605px;
  max-width: 100%;
  height: 689px;
  overflow: hidden !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.16);
  background-color: transparent !important;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.planex-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: inherit !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: transform 0.8s ease;
}

.planex-arch-frame:hover .planex-arch-img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   PUNTOS DE NAVEGACIÓN
   -------------------------------------------------------------------------- */
.planex-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 35px;
}

.planex-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D9D1C5;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.planex-dot.active {
  background: #FF5E62;
  width: 32px;
  border-radius: 20px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE: PANTALLAS MEDIANAS (1100px - 1380px)
   -------------------------------------------------------------------------- */
@media (max-width: 1380px) {
  .planex-slider-wrapper {
    padding: 35px 30px;
  }
  .planex-slide {
    grid-template-columns: 1.15fr 490px;
    gap: 40px;
    min-height: 590px;
  }
  .planex-slider-stage {
    min-height: 600px;
  }
  .planex-arch-frame {
    width: 490px;
    height: 560px;
  }
}

@media (max-width: 1100px) {
  .planex-slide {
    grid-template-columns: 1fr 400px;
    gap: 30px;
    min-height: 490px;
  }
  .planex-slider-stage {
    min-height: 500px;
  }
  .planex-arch-frame {
    width: 400px;
    height: 460px;
  }
  .planex-display-title {
    font-size: 38px;
  }
  .planex-accent-title {
    font-size: 22px;
  }
  .planex-desc {
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE MÓVIL: MOBILE-FIRST REAL Y PROFESIONAL (< 900px)
   Foto panorámica limpia sin cortes raros + Línea contenida + 1 pantallazo
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .planex-slider-wrapper {
    padding: 18px 16px 16px 16px;
    max-width: 100%;
  }

  .planex-slider-stage {
    min-height: auto;
  }

  .planex-slide {
    display: none;
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    align-items: flex-start;
  }

  .planex-slide.active {
    display: flex;
    flex-direction: column;
  }

  /* 1. FOTO EN MÓVIL: Marco panorámico limpio, nítido y con esquinas parejas */
  .planex-image-col {
    order: 1;
    width: 100%;
    margin-bottom: 2px;
  }

  .planex-arch-frame {
    width: 100%;
    max-width: 100%;
    height: 220px;
    border-radius: 18px !important; /* Esquinas suaves parejas: CERO deformación */
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  }

  .planex-arch-img {
    border-radius: 18px !important;
    object-position: center center;
  }

  /* 2. CONTENIDO EN MÓVIL */
  .planex-content-col {
    order: 2;
    padding: 0 2px;
    width: 100%;
    max-width: 100%;
  }

  .planex-eyebrow {
    font-size: 12.5px;
    margin-bottom: 6px;
  }

  .planex-slide-logo-wrap {
    margin-bottom: 10px;
    justify-content: flex-start;
  }

  .planex-slide-logo {
    max-height: 42px;
    max-width: 220px;
  }

  .planex-display-title {
    font-size: 25px;
    line-height: 1.15;
    margin: 0 0 8px 0;
    white-space: normal;
  }

  /* Línea coral contenida ÚNICAMENTE en el texto */
  .planex-accent-box {
    border-left: 3.5px solid #FF5E62;
    padding-left: 14px;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .planex-accent-title {
    font-size: 17.5px;
    line-height: 1.3;
    margin: 0 0 6px 0;
  }

  .planex-desc {
    font-size: 13.5px;
    line-height: 1.45;
    margin: 0;
    color: #4B5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Botón fuera de la caja de acento: ocupa el ancho completo en el pulgar */
  .planex-cta-container {
    margin-top: 0;
    width: 100%;
  }

  .planex-btn-gradient {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 19, 97, 0.25);
  }

  .planex-lead-form {
    max-width: 100%;
    margin-top: 0;
  }

  .planex-input-label {
    font-size: 12.5px;
    margin-bottom: 6px;
  }

  .planex-input {
    padding: 12px 18px;
    font-size: 14px;
  }

  /* Paginación compacta */
  .planex-dots-container {
    margin-top: 14px;
    gap: 8px;
  }

  .planex-dot {
    width: 8px;
    height: 8px;
  }

  .planex-dot.active {
    width: 22px;
  }
}
