/*===================================Hero========================================*/
.section__hero {
    position: relative;
    padding: 120px 20px 50px 20px;
}

.section__hero iframe{
    position: absolute;
    z-index: 1;
    width: 100%;
}

.section__hero h1{
    font-size: 3rem;
    line-height: 3.2rem;
    font-weight: 500;
}


.section__hero h1 em{
    color:var(--green);
    font-style: normal;
}

.section__hero p{
    font-size: 1.2rem;
}

/* VIDEO */
.hero-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-1;
}

/* oscurece un poco */
.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:-1;
}





@media (hover: hover) and (pointer: fine) {
    .section__hero {
        padding: 200px 20px 200px 20px;
    }
    .section__hero h1{
        font-size: 5rem;
        line-height: 5.2rem;
    }

    .section__hero p{
        font-size: 1.3rem;
    }

   
}


/* capacidad */
.section__capacidad{
    background-color: white;
}

.section__capacidad span.badge{
    color:var(--green);
    font-size: .9rem;
    text-align: start;
    padding: 0px;
}

.section__capacidad h2{
    color:var(--dark);
    font-weight: bold;;
}

.section__capacidad .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.section__capacidad .stats-row .stat-item strong {
    display: block;
    margin-bottom: 0px;
    font-size: 1.7rem;
    color:var(--green);
}

.section__capacidad .stats-row .stat-item span {
    font-size: .8rem;
    line-height: 15px !important;
    display: flex;
}


@media (hover: hover) and (pointer: fine) {
    .section__capacidad .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .section__capacidad .stats-row .stat-item strong {      
      font-size: 2.2rem;
     
  }

  .section__capacidad .stats-row .stat-item span {
      font-size: 1rem;
      
  }
}


/* Define */
.section__define {
    background:#F8F8F8;
}

.section__define span.badge{
    color:var(--green);
    font-size: .9rem;
    text-align: start;
    padding: 0px;
}

.section__define h2{
    color:var(--dark);
    font-weight: bold;;
}

.section__define h4{
    color:var(--dark);
    font-weight: bold;;
}

.section__define .custom-border {
   
    background: var(--dark);
    border-radius: 10px;
    box-shadow: 0px 10px 40px -30px;
    height: 100%;
    box-shadow: 0px 10px 40px -20px var(--dark);
}

@media (hover: hover) and (pointer: fine) {
    
}


/* ---- Contenedor de sección ---- */
.servicios { background: var(--bg-warm); }
.servicios h2 { margin-bottom: 24px; max-width: 14ch; }
.servicios h2 em { font-style: italic; color: var(--accent); font-feature-settings: "ss01"; }
.servicios .sub { color: var(--fg-2); margin-bottom: 64px; max-width: 48ch; font-size: 17px; }

/* ---- ACCORDION HORIZONTAL (desktop) ---- */
.serv-grid {
  display: flex;
  gap: 8px;
  height: clamp(480px, 58vw, 600px);
  isolation: isolate;
}

.serv {
  position: relative;
  flex: 1 1 0;
  flex-grow: 1;
  min-width: 80px;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow .8s cubic-bezier(.4, 0, .2, 1);
}
.serv:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Panel abierto por defecto (primero, o el que tenga .is-open vía JS) */
.serv.is-default { flex-grow: 4; }
.serv-grid:hover .serv.is-default { flex-grow: 1; }

/* Panel expandido por hover o foco */
.serv-grid .serv:hover,
.serv-grid .serv:focus-visible,
.serv-grid .serv.is-open { flex-grow: 4; }

/* ---- Imagen / placeholder ---- */
.serv__photo {
  position: absolute !important;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}
.serv__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.serv__photo::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%);
}

/* ---- Contenido sobre la imagen ---- */
.serv__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  pointer-events: none;
}

.serv__num {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em;
  align-self: flex-start;
}

/* ---- Título vertical (estado colapsado) ---- */
.serv__title-v {
  position: absolute;
  left: 28px;
  bottom: 28px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  opacity: 1;
  transition: opacity .35s ease;
  white-space: nowrap;
  z-index: 4;
}
.serv-grid:not(:hover) .serv.is-default .serv__title-v,
.serv-grid .serv:hover .serv__title-v,
.serv-grid .serv:focus-visible .serv__title-v,
.serv-grid .serv.is-open .serv__title-v {
  opacity: 0;
  transition-duration: .15s;
}

/* ---- Bloque horizontal (estado expandido) ---- */
.serv__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s .25s ease, transform .5s .25s ease;
}
.serv-grid:not(:hover) .serv.is-default .serv__bottom,
.serv-grid .serv:hover .serv__bottom,
.serv-grid .serv:focus-visible .serv__bottom,
.serv-grid .serv.is-open .serv__bottom {
  opacity: 1;
  transform: translateY(0);
}

.serv__title {
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #fff;
  max-width: 12ch;
  text-wrap: balance;
}

.serv__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background .2s, transform .25s;
}
.serv__arrow svg { width: 18px; height: 18px; }
.serv-grid .serv:hover .serv__arrow,
.serv-grid .serv:focus-visible .serv__arrow,
.serv-grid .serv.is-open .serv__arrow,
.serv-grid:not(:hover) .serv.is-default .serv__arrow {
  background: var(--accent);
}

/* ---- Spec (solo visible expandido) ---- */
.serv .photo__spec {
  opacity: 0;
  transition: opacity .3s;
}
.serv-grid:not(:hover) .serv.is-default .photo__spec,
.serv-grid .serv:hover .photo__spec,
.serv-grid .serv:focus-visible .photo__spec,
.serv-grid .serv.is-open .photo__spec {
  opacity: 1;
  transition-delay: .25s;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .serv,
  .serv__bottom,
  .serv__title-v,
  .serv__arrow,
  .serv .photo__spec { transition-duration: .01ms !important; }
}

/* ---- MOBILE: grid 2x2 ---- */
@media (max-width: 960px) {
  .serv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
  }
  .serv {
    min-width: 0;
    height: 320px;
    flex: none;
  }
  .serv__title-v { display: none; }
  .serv__bottom { opacity: 1 !important; transform: none !important; }
  .serv .photo__spec { opacity: 1 !important; }
  .serv__arrow { background: var(--accent) !important; }
  .serv__title { font-size: 22px; }
}


/* Serviam */
.section__serviam{
  background:#F8F8F8;
}

.section__serviam span.badge{
    color:var(--green);
    font-size: .9rem;
    text-align: start;
    padding: 0px;
}

.section__serviam h2{
    color:var(--dark);
    font-weight: bold;;
}

.section__serviam .box{
  border-radius: 10px;
  background-color: var(--dark);
  padding: 20px;
  box-shadow: 0px 10px 40px -20px var(--dark);
  overflow: hidden;
  position: relative;
  z-index: 1;
}



.section__serviam .box span{
  color:var(--green);
  font-size: 120px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -4px;
}

@media (hover: hover) and (pointer: fine) {
    .section__serviam .box{
      padding: 40px;
    }

    .section__define .custom-border{
      padding: 40px!important;
    }
    
}


/* footer */
footer{background-color: transparent;}
footer .site-primary-footer-wrap[data-section="section-primary-footer-builder"]{
  background-color: transparent;
}

/* footer */

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]{
    border:none;
}

.footer-widget-area[data-section="section-fb-html-1"] .ast-builder-html-element span.badge{
    color:var(--green);
    font-size: .9rem;
    text-align: start;
    padding: 0px;
}

.footer-widget-area[data-section="section-fb-html-1"] .ast-builder-html-element ul{
  padding: 0px;
}


.footer-widget-area[data-section="section-fb-html-1"] .ast-builder-html-element ul li span {
  color:white;
  font-size: .9rem;
}

.footer-widget-area[data-section="section-fb-html-1"] .ast-builder-html-element ul li a{
  color:var(--green);
  font-size: .9rem;
}

.footer-widget-area[data-section="section-fb-html-1"] .ast-builder-html-element ul li a:hover{
  text-decoration: underline!important;
}

footer form{
  padding: 20px;
  border-radius: 10px;
  background: #ffffff;
  max-width: 600px;
  margin: auto;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type=reset],
input[type=tel],
input[type=date],
select,
textarea{
  width: 100%;
  border-radius: 0px;
  border-color: transparent;
  border-bottom: 1px solid var(--text);
}

footer form label{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row{
  max-width: 1280px;
}

input[type=submit],
input[type=submit]:hover,
input[type=submit]:focus{
  background-color: var(--green);
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    footer form{
      padding: 40px;
    }
}


.site-footer::before {
    content: '';
    position: absolute;
    background-image: url(../img/nube.svg);
    background-size: cover;
    background-repeat: no-repeat;
    top: 250px;
    left: 0;
    width: 100vw;
    height: 200vh;
    z-index: -1;
    background-position-y: center;
    background-attachment: fixed;
    filter: blur(100px);
    opacity: 0.2;
}