/* =============================================
   TWL Proceso — Nuestro Proceso page styles
   ============================================= */

/* Neutralizar estilos base de .twl (twl-pages.css) */
.twl-proceso {
  overflow: visible !important;
  background: transparent !important;
  font-family: 'Poppins', sans-serif;
}

/* Header: fondo negro sólido en página proceso */
body.twl-page-active .top_panel_navi {
  background: #0a0a0a !important;
}
body.twl-page-active .top_panel_navi.custom-stuck {
  background: #0a0a0a !important;
}

/* Kill white block from parent theme wrappers */
body.twl-page-active .page_content_wrap,
body.twl-page-active .content_wrap,
body.twl-page-active .body_wrap,
body.twl-page-active .page_wrap {
  background: #0a0a0a !important;
}

/* Footer: visible por encima del main (exclude twl-footer-final for parallax) */
body.twl-page-active .footer_wrap,
body.twl-page-active footer,
body.twl-page-active .page_content_wrap ~ *:not(.twl-footer-final) {
  position: relative;
  z-index: 10;
}

.hero,
.pin-spacer {
  position: relative;
  z-index: 0 !important;
}

/* Hero */
.twl-proceso .hero {
  position: relative;
  height: clamp(520px, 78vh, 860px);
  overflow: hidden;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}

.twl-proceso .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.twl-proceso .hero__video {
  width: 100% !important; /* override inline width:1920 */
  height: 100% !important;
  object-fit: cover;
  transform: translateZ(0);
}

.twl-proceso .hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 50% 50%, rgba(0,0,0,.25), rgba(0,0,0,.75)),
    linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.75) 100%);
  opacity: 1;
}

.twl-proceso .hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(18px, 3vw, 54px);
  gap: 10px;
  color: #fff;
}

.twl-proceso .hero__kicker {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.2vw, 16px);
  margin: 0;
  opacity: .95;
}

.twl-proceso .hero__title {
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(42px, 6vw, 96px);
  line-height: 1;
  margin: 0;
  color: #ff6a00;
}

.twl-proceso .hero__subtitle {
  font-size: clamp(16px, 1.6vw, 22px);
  max-width: 980px;
  margin-top: 6px;
  opacity: .95;
}

/* Presentation sections: layout from v1.css */
.twl-proceso .seccion-proceso {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 32px;
  padding-right: 32px;
}

.twl-proceso .seccion-proceso .content {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-top: 198px !important;
  padding-bottom: 313px !important;
  gap: 128px !important;
  float: none !important;
  position: relative;
  z-index: 5 !important;
}

@media (max-width: 749px) {
  .twl-proceso .seccion-proceso .content {
    display: flex !important;
    flex-direction: column !important;
    gap: 64px !important;
    padding-top: 128px !important;
    padding-bottom: 128px !important;
  }
}

@media (max-width: 575px) {
  .twl-proceso .seccion-proceso .content {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}

@media (min-width: 750px) {
  .twl-proceso .seccion-proceso .content .text {
    flex-basis: 450px !important;
    flex-shrink: 1 !important;
    min-width: 0;
  }
}

.twl-proceso .seccion-proceso .content .text h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
}

.twl-proceso .seccion-proceso .content .text p {
  margin-top: 32px;
}

.twl-proceso .seccion-proceso .content picture {
  border-radius: 30px !important;
  overflow: hidden !important;
  max-width: calc(100% - 64px) !important;
  flex-shrink: 0 !important;
}

@media (max-width: 575px) {
  .twl-proceso .seccion-proceso .content picture {
    max-width: unset !important;
    flex-shrink: 1 !important;
  }
}

@media (min-width: 750px) {
  .twl-proceso .seccion-proceso .content picture {
    flex-basis: 628px !important;
    min-width: 0;
  }
}

.twl-proceso .seccion-proceso .content picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

/* Section 1: curtain + premium look */
.twl-proceso section#Presentation.seccion-proceso1 {
  position: relative;
  overflow: clip;
  margin-top: -80px !important;
  padding: clamp(70px, 8vw, 120px) 0;
  padding-top: 80px !important;
  z-index: auto !important;
  background:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px),
    #0a0a0a;
  background-size: 24px 24px;
}

.twl-proceso section#Presentation.seccion-proceso1::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 30% 40%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 600px at 70% 70%, rgba(0,255,170,.06), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.85) 100%);
  opacity: .95;
}

/* Watermark llanta en secciones 1/3/5 — uses --twl-watermark-url set via PHP inline style */
.twl-proceso section#Presentation.seccion-proceso1::before,
.twl-proceso section#Presentation.seccion-proceso3::before,
.twl-proceso section#Presentation.seccion-proceso5::before {
  content: "";
  position: absolute;
  right: -220px;
  bottom: -280px;
  width: 920px;
  height: 920px;
  background: var(--twl-watermark-url, none) no-repeat center / contain;
  opacity: .18;
  filter: blur(.2px) saturate(1.05) contrast(1.05);
  transform: rotate(-14deg);
  pointer-events: none;
  will-change: transform;
  animation: wheelFloat 9s ease-in-out infinite;
  z-index: 0;
}

/* Section 1: content above overlays */
.twl-proceso section#Presentation.seccion-proceso1 .content {
  position: relative;
  z-index: 2;
  width: min(1220px, 92vw) !important;
  max-width: none !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(22px, 4vw, 70px) !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  float: none !important;
}

.twl-proceso section#Presentation.seccion-proceso1 .text {
  max-width: 520px;
  color: rgba(255,255,255,.84);
  padding: 30px;
}

.twl-proceso section#Presentation.seccion-proceso1 .text p,
.twl-proceso section#Presentation.seccion-proceso3 .text p {
  margin-top: 14px;
  color: rgba(255,255,255,.62);
  line-height: 1.6;
  font-size: 15px;
}

/* Sections 3 & 5 (dark) */
.twl-proceso section#Presentation.seccion-proceso3,
.twl-proceso section#Presentation.seccion-proceso5 {
  background:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px),
    #0a0a0a;
  background-size: 24px 24px;
}

/* Title block */
.twl-proceso .section-title-vc {
  text-align: left;
  color: white !important;
  font-size: clamp(14px, 1.8vw, 22px) !important;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  display: inline-block;
  line-height: 1.3 !important;
  overflow: visible !important;
  white-space: normal !important;
}

.twl-proceso .h2-propio-blanco { font-size: clamp(20px, 2vw, 24px) !important; }

.twl-proceso .section-title-vc .first-letter-box {
  position: relative;
  display: inline-block;
  color: black !important;
  text-transform: uppercase;
  font-size: 32px !important;
}

.twl-proceso .section-title-vc .green-box {
  position: absolute;
  inset: -22px -0.35em -41px -27px;
  background: #FF6B00 !important;
  transform: skewX(-15deg);
  border-radius: 2px;
  z-index: -1;
  overflow: hidden;
  width: 40px;
  height: 60px;
}

.twl-proceso .section-title-vc .first-letter {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  display: inline-block;
  font-weight: 800;
}

/* Green-box position per section */
.twl-proceso .seccion-proceso1 .green-box {
  inset: -5px -0.35em -41px 71px !important;
}
.twl-proceso .seccion-proceso2 .green-box {
  inset: -4px -0.35em -41px 29px !important;
}
.twl-proceso .seccion-proceso3 .green-box {
  inset: -5px -0.35em -41px -4px !important;
}
.twl-proceso .seccion-proceso4 .green-box {
  inset: -7px -0.35em -41px 27px !important;
}
.twl-proceso .seccion-proceso5 .green-box {
  inset: -4px -0.35em -41px 82px !important;
}
.twl-proceso .seccion-proceso3 .first-letter,
.twl-proceso .seccion-proceso5 .first-letter {
  font-size: 40px !important;
}
.twl-proceso .seccion-proceso6 .green-box {
  inset: -3px -0.35em -41px 44px !important;
}

.twl-proceso .section-title-vc .green-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 20%,
    rgba(255,255,255,0.25) 35%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0.25) 65%,
    rgba(255,255,255,0.08) 80%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: shine 2.25s ease-in-out infinite;
  z-index: 1;
  filter: blur(3px);
  pointer-events: none;
}

.twl-proceso .section-title-vc .green-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.1) 25%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.1) 75%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: shineGlow 2.25s ease-in-out infinite;
  z-index: 2;
  filter: blur(4px);
  pointer-events: none;
}

@keyframes shine {
  0% { left: -100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

@keyframes shineGlow {
  0% { left: -100%; opacity: 0; }
  15% { opacity: 0.9; }
  50% { opacity: 1; }
  85% { opacity: 0.9; }
  100% { left: 150%; opacity: 0; }
}

/* Card float (section 1 image) */
.twl-proceso .media-float {
  display: block;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 30px 90px rgba(0,0,0,.55),
    0 12px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

/* Light sections */
.twl-proceso .is-light {
  position: relative;
  background: #ffffff;
  color: #0b0f17;
  overflow: clip;
}

.twl-proceso .is-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/fondo.jpg");
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.twl-proceso .is-light::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 20% 30%, rgba(0,0,0,.03), transparent 55%),
    radial-gradient(900px 520px at 80% 70%, rgba(0,0,0,.035), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.04), transparent 40%, rgba(0,0,0,.05));
}

.twl-proceso .is-light > * {
  position: relative;
  z-index: 5 !important;
}

.twl-proceso .is-light .text p { color: rgba(11,15,23,.72); }

/* Line container — definitive layer system */
.twl-proceso .line-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  pointer-events: none;
  z-index: 2 !important;
}

.twl-proceso .line-container svg {
  position: absolute !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  overflow: visible;
}

.twl-proceso .line-container path {
  fill: none;
  stroke: #ff6a00;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 18px rgba(255,106,0,.4));
  stroke-dasharray: 99999;
  stroke-dashoffset: 99999;
}

/* Sections no stacking context */
.twl-proceso .seccion-proceso {
  position: relative;
  z-index: auto !important;
}

/* Text above line */
.twl-proceso .seccion-proceso .text,
.twl-proceso .seccion-proceso h1,
.twl-proceso .seccion-proceso h2,
.twl-proceso .seccion-proceso h3,
.twl-proceso .seccion-proceso p,
.twl-proceso .seccion-proceso .section-title-vc {
  position: relative;
  z-index: 25 !important;
}

/* Images above line */
.twl-proceso .seccion-proceso picture,
.twl-proceso .seccion-proceso img {
  position: relative;
  z-index: 30 !important;
}

/* Line hide on mobile (from v1.css) */
@media (max-width: 575px) {
  .twl-proceso .line-container { display: none; }
}

/* Floating animations */
@keyframes wheelFloat {
  0%, 100% { transform: rotate(-14deg) translateY(0); }
  50% { transform: rotate(-14deg) translateY(-18px); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Override video hero overlay to pure black on proceso */
.twl-proceso .twl-vh__hero > div[style*="linear-gradient"] {
  background: linear-gradient(135deg, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.75) 50%, rgba(0,0,0,0.92) 100%) !important;
}

/* CTA inside section 6 */
.twl-proceso .proceso-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 0 32px 128px;
  position: relative;
  z-index: 5;
  width: 100%;
}

.twl-proceso .proceso-cta-inner .btn-cta {
  display: inline-block;
  background: #ff6a00;
  color: #fff !important;
  padding: 18px 44px;
  border-radius: 46px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
  animation: ctaGlow 2s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,0,0.45); }
  50% { box-shadow: 0 0 0 20px rgba(255,106,0,0); }
}

.twl-proceso .proceso-cta-inner .btn-cta:hover {
  background: #e55b00;
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 8px 30px rgba(255,106,0,0.35);
}

.twl-proceso .proceso-cta-inner p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: #0b0f17;
}

.twl-proceso .proceso-cta-inner p a {
  color: #17243D;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.twl-proceso .proceso-cta-inner p a:hover {
  color: #ff6a00;
}

@media (max-width: 575px) {
  .twl-proceso .proceso-cta-inner {
    padding: 0 16px 64px;
  }
  .twl-proceso .proceso-cta-inner .btn-cta {
    font-size: 14px;
    padding: 12px 24px;
  }
  .twl-proceso .proceso-cta-inner p a {
    font-size: 22px;
  }
}

/* ── Green-box responsive ── */
@media (max-width: 767px) {
  .twl-proceso .section-title-vc .green-box {
    width: 28px !important;
    height: 42px !important;
    inset: -6px -0.35em -30px -10px !important;
  }
}
