@import 'base.css';
@import 'header.css';
@import 'footer.css';
@import 'variables.css';


.site-main {
  width: 100%;
}

/*Sección Hero*/

.hero-seccion {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-around;
  width: 100%;
  height: 100vh;
  color: #fff;
  padding: 8rem 20rem 0 20rem;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  opacity: 0.40;
  z-index: 1; 
}

.hero-video-mobile {
  display: none;
}

.hero-btn {
  display: flex;
  justify-content: start;
  column-gap: 3em;
  text-align: center;


}


.hero-btn a {
  padding: 1.5em 2.5em;
  background: #fff;
  color: #000;
  font-size: 1em;
  font-weight: 600;
  border: 2px solid #fff;
  border-radius: 20px;
  width: 50%;
  transition: all ease 0.2s;
}

.hero-btn a:hover {
  background: #D64550;
  border: 2px solid #D64550;
  color: #000;
}


.hero-seccion h2 {
  font-size: 1.4em;
  line-height: 36px;
  font-weight: 400;
}

.hero-col1 {
  display: flex;
  flex-direction: column;
  row-gap: 3em;
  z-index:5;
}

.hero-col2 {
  display: flex;
  flex-direction: column;
  row-gap: 3em;
  width: 50%;
}

@media only screen and (min-width: 1440px) and (max-width: 1800px) {

  .hero-seccion {
    padding: 6rem 11rem 0 11rem;
  }

}
  
@media only screen and (min-width: 1124px) and (max-width: 1440px) {
  .hero-seccion {
    padding: 6rem 5.5rem 0 5.5rem;
    column-gap: 0;
  }

  .hero-col1 {
    display: flex;
    flex-direction: column;
    row-gap: 3em;
    width: 80%;
  }

  .hero-col2 {
    display: flex;
    flex-direction: column;
    row-gap: 3em;
    width: 20%;
  }

}


@media only screen and (min-width: 768px) and (max-width: 1124px) {
  .hero-btn {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 2em;
  }

  .hero-col1,
  .hero-col2 {
    width: 100%;
    row-gap: 1.8em;
  }

  .hero-seccion {
    width: 100%;
    height: 100vh;
    padding: 3rem 2rem 5rem 2rem;
    justify-content: center;
    align-items: start;
    text-align: center;
    flex-wrap: wrap;
  }

  .hero-seccion h2 {
    font-size: 1em;
    font-weight: 400;
    line-height: 28px;
  }

  .hero-btn a {
    padding: 1.2rem 0.1rem;
    width: 80%;
    font-size: 0.9rem;
  }

  .hero-video {
    display: none;
  }

  .hero-video-mobile {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.40;
    z-index: 1; 
  }

}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .hero-seccion {
    align-self: center;
    width: 100%;
    height: 100vh;
    flex-wrap: wrap;
    padding: 2rem 1rem;
    text-align: center;
  }

  .hero-video {
    display:none;
  }

  .hero-video-mobile {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.40;
    z-index: 1; 
  }

  .hero-btn {
    flex-wrap: wrap;
    row-gap: 2rem;
    column-gap: 2rem;
  }

  .hero-btn a {
    padding: .80rem .15rem;
    width: 80%;
    font-size: 1rem;
  }

  .hero-seccion h2 {
    font-size: 1em;
    line-height: 26px;
  }

  .hero-seccion h1 {
    font-size: 1.9em;
    line-height: 44px;
  }

}

/*Cards-Cubos soluciones disponibles*/

.scene-wrap {
  padding: 2.5rem 1rem 2rem;
  font-family: 'DM Sans', sans-serif;
}

.scene {
  display: flex;
  flex-wrap: wrap;
  gap: 8rem;
  justify-content: center;
}


.cube-wrap {
  width: 350px;
  height: 350px;
  perspective: 1250px;
  cursor: pointer;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-6deg) rotateY(0deg);
  transition: transform .7s cubic-bezier(.4, .2, .2, 1);
}

.cube-wrap:hover .cube,
.cube-wrap.flipped .cube {
  transform: rotateX(-6deg) rotateY(-90deg);
}

.face {
  position: absolute;
  width: 350px;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 1.3em;
  padding: 1.2rem;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.face-front {
  transform: rotateY(0deg) translateZ(175px);
}

.face-right {
  transform: rotateY(90deg) translateZ(175px);
}

.face-back {
  transform: rotateY(180deg) translateZ(175px);
}

.face-left {
  transform: rotateY(-90deg) translateZ(175px);
}

.face-top {
  transform: rotateX(90deg) translateZ(175px);
}

.face-bottom {
  transform: rotateX(-90deg) translateZ(175px);
}

.face-icon {
  font-size: 2.2rem;
  margin-bottom: .6rem;
  line-height: 1;
}

.face-title {
  font-family: 'Poppins', serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  margin-bottom: .25rem;
}

.face-sub {
  color: #1a1a1a;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  opacity: .90;
  text-align: center;
}

.face-desc {
  font-size: .9rem;
  text-align: center;
  line-height: 1.5;
  margin-bottom: .9rem;
}

.cta-btn {
  font-family: 'Poppins', sans-serif;
  font-size: .80rem;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid #fff;
  cursor: pointer;
  color: #fff;
  background: transparent;
  transition: opacity .2s;
}

.cta-btn:hover {
  color: #fff;
  border-color: #D64550;
  background: #D64550;
}

.c1 .face-front,
.c1 .face-top,
.c1 .face-bottom,
.c1 .face-back {
  background: #fff;
  color: #000;
  border: 3px solid #1a1a1a;
}

.c1 .face-front .face-title {
  color: #000;
}

.c1 .face-right {
  background: #000;
  color: #fff;
  border: 1px solid #9FE1CB;
}

.c1 .face-right .face-title {
  color: #fff;
}

.c1 .face-left {
  background: #0F6E56;
  color: #5DCAA5;
  border: 1px solid #1D9E75;
}

.c2 .face-front,
.c2 .face-top,
.c2 .face-bottom,
.c2 .face-back {
  background: #fff;
  color: #000;
  border: 3px solid #000;
}

.c2 .face-front .face-title {
  color: #000;
}

.c2 .face-right {
  background: #000;
  color: #fff;
  border: 1px solid #F5C4B3;
}

.c2 .face-right .face-title {
  color: #fff;
}

.c2 .face-left {
  background: #993C1D;
  color: #F0997B;
  border: 1px solid #D85A30;
}

.c3 .face-front,
.c3 .face-top,
.c3 .face-bottom,
.c3 .face-back {
  background: #fff;
  color: #000;
  border: 3px solid #000;
}

.c3 .face-front .face-title {
  color: #000;
}

.c3 .face-right {
  background: #000;
  color: #fff;
  border: 1px solid #CECBF6;
}

.c3 .face-right .face-title {
  color: #fff;
}

.c3 .face-left {
  background: #534AB7;
  color: #AFA9EC;
  border: 1px solid #7F77DD;
}

/* Cubo 4 — Black*/
.c4 .face-front,
.c4 .face-top,
.c4 .face-bottom,
.c4 .face-back {
  background: #fff;
  color: #000;
  border: 3px solid #000;
}

.c4 .face-front .face-title,
.c4 .face-top .face-title,
.c4 .face-bottom .face-title {
  color: #000;
}

.c4 .face-right {
  background: #000;
  color: #fff;
  border: 3px solid #000;
}

.c4 .face-right .face-title {
  color: #fff;
}

.c4 .face-left {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.c4 .face-left .face-title {
  color: #000;
}

/* Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background .4s ease;
}

.lb-overlay.open {
  background: rgba(0, 0, 0, .88);
  pointer-events: all;
}

.lb-box {
  width: min(92vw, 660px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  transform: scale(.15);
  opacity: 0;
  transform-origin: var(--origin-x, 50%) var(--origin-y, 50%);
  transition: transform .42s cubic-bezier(.22, .9, .36, 1), opacity .35s ease;
}

.lb-overlay.open .lb-box {
  transform: scale(1);
  opacity: 1;
}

.lb-close {
  align-self: flex-end;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: .9rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  font-family: 'DM Sans', sans-serif;
}

.lb-close:hover {
  background: rgba(255, 255, 255, .25);
}

.lb-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  align-self: flex-start;
}

.lb-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
}

.lb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s;
}

.lb-img-wrap img.fade {
  opacity: 0;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .45);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
}

.lb-arrow:hover {
  background: rgba(0, 0, 0, .75);
}

.lb-arrow.prev {
  left: .7rem;
}

.lb-arrow.next {
  right: .7rem;
}

.lb-counter {
  font-size: .72rem;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .07em;
}

@media only screen and (min-width: 700px) and (max-width:1024px) {

  .cube-wrap {
    width: 250px;
    height: 250px;
  }

  .face {
    width: 250px;
    height: 250px;
    row-gap: 0.3em;
    padding: 1rem;
  }

  .cta-btn {
    font-size: 0.75rem;
    padding: .4rem .9rem;
  }

  .scene {
    gap: 5rem;
  }

  .face-icon svg {
    width: 50px;
    height: auto;
  }

  .face-desc {
    margin-bottom: .3rem;
  }

  .face-front {
    transform: rotateY(0deg) translateZ(120px);
  }

  .face-right {
    transform: rotateY(90deg) translateZ(120px);
    row-gap: 0.8rem;
  }

  .face-back {
    transform: rotateY(180deg) translateZ(120px);
  }

  .face-left {
    transform: rotateY(-90deg) translateZ(120px);
  }

  .face-top {
    transform: rotateX(90deg) translateZ(120px);
  }

  .face-bottom {
    transform: rotateX(-90deg) translateZ(120px);
  }

}

@media only screen and (min-width: 300px) and (max-width:700px) {

  .scene-wrap {
    display: flex;
    flex-direction: column;
  }

  .scene {
    flex-wrap: wrap;
  }

  .cube-wrap {
    width: 300px;
    height: 300px;
  }

  .face {
    width: 300px;
    height: 300px;
    padding: 1rem;
  }

  .face-front {
    transform: rotateY(0deg) translateZ(140px);
  }

  .face-right {
    transform: rotateY(90deg) translateZ(140px);
  }

  .face-back {
    transform: rotateY(180deg) translateZ(140px);
  }

  .face-left {
    transform: rotateY(-90deg) translateZ(140px);
  }

  .face-top {
    transform: rotateX(90deg) translateZ(150px);
  }

  .face-bottom {
    transform: rotateX(-90deg) translateZ(140px);
  }

  .hint .desktop {
    display: none;
  }

  .lb-arrow {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

/*Lista de características */

.item-destacado {
  display: flex;
  align-items: start;
  column-gap: .70em;
}

.icon-centro {
  align-items: center;
}

.item-destacado h4 {
  font-size: 1em;
}

.item-destacado a {
  font-size: 1em;
}

.item-destacado svg {
  width: 40px;
  height: auto;
}

.item-destacado:hover a svg h4 {
  color: #D64550;
  fill: #D64550;
}

.item-feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: .70em;
}
    

@media (max-width:800px) {
  .item-destacado {
    column-gap: .70em;
  }
  
  .item-destacado svg {
    width: 100%;
    height: auto;
    max-width: 45px;
  }

  .item-feature {
    display: flex;
    align-items: center;
    column-gap: .70em;
    flex-wrap: wrap;
  }

}

/*Layout Noticias*/

.noticia-wrap {
  display: flex;
  flex-direction: row;
  align-items: self-start;
  column-gap: 4em;
  padding: 3em 2em;
}

.container-noticia {
  display: flex;
  flex-direction: column;
  row-gap: 2em;
}

.container-noticia img {
  width: 100%;
  height: auto;
}

.noticia-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  margin-bottom: 10px;
}

.noticia-categoria {
  font-weight: 600;
  margin-right: 10px;
  background-color: #2FCBF6;
  padding: 0.8em 1em;
}

.noticia-fecha {
  font-weight: 400;
}

/*Sidebar Noticias*/


.sidebar-noticias {
  border-left: 1px solid #eee;
  padding-left: 20px;
}

.widget-noticias ul {
  list-style: none;
  padding: 0;
}

.widget-noticias li {
  margin-bottom: 10px;
}

.widget-noticias a {
  text-decoration: none;
  color: #111;
}

.widget-noticias a:hover {
  text-decoration: none;
  color: #2FCBF6;
}

@media only screen and (min-width: 1366px) {
  .noticia-wrap {
    margin: 0 18em;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1440px) {
  .noticia-wrap {
    margin: 0 3em;
  }

}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .noticia-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }

  .sidebar-noticias {
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
  }

  .sidebar-noticias {
    width: 100%;
  }

}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .noticia-wrap {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2.5em 1.5em;
  }

  .container-noticia {
    padding: 1em 0 2em 0;
    width: 100%
  }

  .sidebar-noticias {
    width: 100%;
    padding-left: 0;
  }

  .container-noticia img {
    width: 100%;
    height: auto;
  }

}

/*Slide noticias*/

.posts-slide-title a {
  color: #000;
}

.posts-carousel {
  position: relative;
  width: 100%;
}

.posts-carousel-viewport {
  overflow: hidden;
}

.posts-carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.posts-slide {
  padding: 15px;
  box-sizing: border-box;
}

/* Slide noticias Desktop 3 */
@media (min-width: 1024px) {
  .posts-slide {
    min-width: 33.3333%;
  }
}

/* Slide noticias Tablet 2 */
@media (min-width: 768px) and (max-width: 1023px) {
  .posts-slide {
    min-width: 50%;
  }
}

/* Slide noticias Mobile 1 */
@media (max-width: 767px) {
  .posts-slide {
    min-width: 100%;
  }

  .posts-slide-title a {
    font-size: 22px;
    line-height: 28px;
  }

}

.posts-slide-image-wrapper {
  position: relative;
}

.posts-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Slide noticias Fecha sobre imagen */

.posts-slide-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  z-index: 5;
}

/* Slide noticias Flechas */

.posts-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}

.posts-prev {
  left: 10px;
}

.posts-next {
  right: 10px;
}

@media (max-width: 767px) {
  .posts-carousel-arrow {
    width: 25px;
    height: 25px;
    top: 35%;
  }

}


/* Fade slider separador */

.fade-slider {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 20px;
}

.fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s ease;
}

/* Fade slider separador - Slide activa */

.fade-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.fade-slide.is-active img {
  transform: scale(1.08);
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .fade-slide img {
    width: 100%;
    height: 360px !important;
  }

}


/*Btn back to top */

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #D64550;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
}

.back-to-top:hover {
  background: #000;
  transform: scale(1.1);
}

/*Btn animado scroll down enlazado a siguiente sección*/

/*<a href="#seccion-siguiente" class="scroll-down">
  <span></span>
</a>*/

.scroll-down {
  position: absolute;
  bottom: -2em;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  width: 30px;
  height: 50px;
  border: 2px solid #000;
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
}

.scroll-down span {
  display: block;
  width: 6px;
  height: 6px;
  margin: 10px auto 0;
  background: #000;
  border-radius: 50%;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/*Cubo animado*/

.title-box {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  row-gap: 3em;
  column-gap: 4em;
}

.cb-cube {
  margin-right: 8em;
}

@media (max-width:800px) {


  .title-box {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    row-gap: 4em;
    text-align: center;
  }

  .cb-cube {
    margin-left: 6em;
  }
}


.cb-cube {
  width: 60px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  animation: cb-rotate 8s linear infinite;

}

.cb-face {
  position: absolute;
  width: 60px;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  box-sizing: border-box;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 6px 1px rgba(255, 255, 255, 0.5),
    0 0 14px 3px rgba(255, 255, 255, 0.2),
    inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.cb-sq {
  background: #fff;
  border-radius: 1px;
}

.cb-face--front {
  transform: translateZ(30px);
}

.cb-face--back {
  transform: rotateY(180deg) translateZ(30px);
}

.cb-face--right {
  transform: rotateY(90deg) translateZ(30px);
}

.cb-face--left {
  transform: rotateY(-90deg) translateZ(30px);
}

.cb-face--top {
  transform: rotateX(90deg) translateZ(30px);
}

.cb-face--bottom {
  transform: rotateX(-90deg) translateZ(30px);
}

.cb-face--front .cb-sq:nth-child(2),
.cb-face--top .cb-sq:nth-child(2) {
  background: #000;
  box-shadow: 0 0 4px rgba(220, 40, 40, 0.7);
}

.cb-face--back .cb-sq:nth-child(3),
.cb-face--bottom .cb-sq:nth-child(3) {
  background: #000;
  box-shadow: 0 0 4px rgba(220, 40, 40, 0.7);
}

.cb-face--right .cb-sq:nth-child(1) {
  background: #000;
  box-shadow: 0 0 4px rgba(220, 40, 40, 0.7);
}

.cb-face--left .cb-sq:nth-child(4) {
  background: #000;
  box-shadow: 0 0 4px rgba(220, 40, 40, 0.7);
}

@keyframes cb-rotate {
  0% {
    transform: rotateX(15deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(15deg) rotateY(360deg);
  }
}


/* ── Wrapper de la seccion -- */
.prc-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  font-family: 'Poppins';
}

.prc-section__heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: #1a1a1a;
  margin-bottom: 3.3rem;
}

.prc-section__sub {
  font-size: .9rem;
  color: #666;
  margin-bottom: 2.5rem;
  letter-spacing: .01em;
}

/* ── Grid de tarjetas ── */
.prc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

@media (max-width: 750px) {
  .prc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
  }
} 


.prc-item__label {
  font-family: 'Poppins';
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #121212;
  margin-bottom: .5rem;
}

/* ══════════════════════════════════════════
       COMPARADOR — núcleo del componente
       ══════════════════════════════════════════ */

.prc-comparator {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--prc-radius);
  border: var(--prc-border);
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  /* permite scroll vertical en móvil */
  background: #e8e8e8;
}

/* Imagen base (plano) — ocupa todo el espacio */
.prc-comparator .prc-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Imagen reveal (render) — recortada a la derecha del divisor */
.prc-comparator .prc-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  clip-path: inset(0 50% 0 0);
  /* valor inicial: mitad */
  will-change: clip-path;
}

/* Línea divisora vertical */
.prc-divider {
  position: absolute;
  top: 0;
  left: 50%;
  /* valor inicial: mitad */
  width: var(--prc-divider-w);
  height: 100%;
  background: var(--prc-divider-clr);
  transform: translateX(-50%);
  pointer-events: none;
  will-change: left;
}

/* Botón circular sobre la línea */
.prc-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--prc-handle-size);
  height: var(--prc-handle-size);
  border-radius: 50%;
  background: var(--prc-handle-bg);
  box-shadow: var(--prc-handle-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--prc-border);
}

/* Badges esquinas */
.prc-badge {
  position: absolute;
  top: 10px;
  padding: var(--prc-badge-pad);
  font-size: var(--prc-badge-size);
  font-weight: var(--prc-badge-weight);
  font-family: 'Poppins';
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--prc-badge-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--prc-badge-radius);
  pointer-events: none;
}

.prc-badge--left {
  left: 10px;
  color: var(--prc-clr-left);
}

.prc-badge--right {
  right: 10px;
  color: var(--prc-clr-right);
}

/* Hint animado (aparece al cargar, desaparece al primer drag) */
.prc-comparator .prc-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 11px;
  color: #444;
  pointer-events: none;
  animation: prc-hint-fade 3s ease forwards;
  white-space: nowrap;
}

@keyframes prc-hint-fade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }

  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Placeholders (para previsualización sin imágenes) */
.prc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .45;
}

.prc-placeholder--base {
  background: #dae6f3;
  color: #185FA5;
}

.prc-placeholder--reveal {
  background: #d4eade;
  color: #3B6D11;
  clip-path: inset(0 50% 0 0);
}

/* ── Responsivo ── */
@media (max-width: 480px) {
  :root {
    --prc-handle-size: 32px;
    --prc-badge-size: 10px;
    --prc-badge-pad: 2px 7px;
  }

}

/*Carrusel containers*/


.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.carousel-item h3 {
  margin-top: 15px;
  font-size: 22px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

@media (min-width: 768px) {
  .carousel-item {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    min-width: 100%;
  }
}

/* =============================================
   Galería de Proyectos — galeria-proyectos.css
   Prefijo: pgc- (portfolio-gallery-component)
   ============================================= */

.pgc-wrap {
  padding: 2rem 0;
  font-family: inherit;
}

/* Grid */
.pgc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .pgc-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Card */
.pgc-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.40);
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  animation: pgcFadeSlide 0.4s ease both;
}

.pgc-card:hover {
  transform: translateY(-4px);
  border-color: #D64550;
}

@keyframes pgcFadeSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Imagen */
.pgc-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.pgc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.pgc-card:hover .pgc-img-wrap img {
  transform: scale(1.06);
}

/* Overlay hover */
.pgc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pgc-card:hover .pgc-overlay {
  background: rgba(0, 0, 0, 0.18);
}

.pgc-zoom {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pgc-card:hover .pgc-zoom {
  opacity: 1;
}

/* Info */
.pgc-info {
  padding: 0.85rem 1rem 1rem;
}

.pgc-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.pgc-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Botón ver todos */
.pgc-btn-wrap {
  margin-top: 3rem;
  text-align: center;
}

.pgc-btn {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.80);
  border-radius: 8px;
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  font-family: inherit;
}

.pgc-btn:hover {
  color: #fff;
  background: #D64550;
  border: 1px solid #D64550;
}

.pgc-btn:active {
  transform: scale(0.98);
}

/* =============================================
   Lightbox
   ============================================= */

.pgc-lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pgc-lb-backdrop.pgc-lb-open {
  opacity: 1;
  pointer-events: all;
}

.pgc-lb-box {
  background: #fff;
  border-radius: 12px;
  max-width: 820px;
  width: 90%;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pgc-lb-backdrop.pgc-lb-open .pgc-lb-box {
  transform: scale(1);
}

.pgc-lb-imgwrap {
  position: relative;
}

.pgc-lb-imgwrap img {
  width: 100%;
  display: block;
  max-height: 65vh;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.pgc-lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s;
}

.pgc-lb-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.pgc-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.pgc-lb-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.pgc-lb-prev {
  left: 10px;
}

.pgc-lb-next {
  right: 10px;
}

.pgc-lb-body {
  padding: 1rem 1.25rem 1.25rem;
}

.pgc-lb-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.pgc-lb-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.pgc-lb-counter {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/*Form CF7*/


.wpcf7-form {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.wpcf7-form label {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.wpcf7-form span {
  padding: .7rem 0;
}

.wpcf7-form-control-wrap input {
  width: 350px;
  height: 60px;
  border-radius: 5px;
}

.wpcf7-form-control-wrap input:hover {
  cursor: text;
  color:#000;
}


.wpcf7-submit:hover {
  border: 1px solid #D64550;
  background: #D64550;
  color: #fff;
  cursor: pointer;
}

.wpcf7-submit {
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid #000;
  font-family: Poppins;
  font-size: .8em;
  font-weight: 500;
  border-radius: 5px;
}