html, body {
  overflow-x: hidden;
  width: 100%;
}
dialog.dialog-nc {
    padding: 14px 20px;
    background: white;
    max-width: 450px;
    padding-top: 2rem;
    border-radius: 20px;
    border: 0;
    overflow: hidden;
    box-shadow: 0 5px 30px 0 rgb(0 0 0 / 10%);
    animation: fadeIn 1s ease both;
    &::backdrop {
        animation: fadeIn 1s ease both;
        background: rgb(255 255 255 / 40%);
        z-index: 2;
        backdrop-filter: blur(20px);
    }
    .x {
        filter: grayscale(1);
        border: none;
        background: none;
        position: absolute;
        top: 1px;
        right: -4px;
        transition: ease filter, transform 0.3s;
        cursor: pointer;
        transform-origin: center;
        font-size: 25px;
        &:hover {
            filter: grayscale(0);
            transform: scale(1.1);
        }
    }
    h2 {
        font-weight: 600;
        font-size: 2rem;
        padding-bottom: 1rem;
    }
    p {
        font-size: 1rem;
        line-height: 1.3rem;
        padding: 0.5rem 0;
        
    }
    .dialog-nc-img{
       img {
        width: 100%;
        height: auto;
        object-fit: cover;
       }
    }
    .btn-dialog{
      padding: 9px 25px;
      background: var(--main-color);
      color: #fff;
      text-decoration: none;
      position: relative;
      text-align: center;
      margin: 0 auto;
      display: table;
      font-size: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

button.nova_form_btn {
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-btn-spinner {
  display: none;
  width: 34px;
  height: 34px;
  background: transparent;
  box-sizing: border-box;
  border-top: 4px solid green;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-radius: 100%;
  margin-right: 15px;
  animation: spin 0.6s ease-out infinite;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.loading-infinite-nc{
  display:none;
  width:100%;
  padding: 14px 25px;
}

.loader-dots-nc {
  width: 15px;
  margin:0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: linf 1s infinite linear alternate;
}

.ws-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2;
}
.ws-container svg {
    width: 80px;
    height : 80px;
}


@keyframes linf {
    0%  {box-shadow: 20px 0 #dadada, -20px 0 var(--main-color);background: #dadada }
    33% {box-shadow: 20px 0 #dadada, -20px 0 var(--main-color);background: var(--main-color)}
    66% {box-shadow: 20px 0 var(--main-color),-20px 0 #dadada; background: var(--main-color)}
    100%{box-shadow: 20px 0 var(--main-color),-20px 0 #dadada; background: #dadada }
}

.logo-brand{
    width: 81px;
    height: auto;
}

.nav-menu a {
    font-size: 22px;
}

.item-service{
    width: 63px;
    margin: 0 auto;
    text-align: center;
}
.banner-main{
    opacity: 0.3;
}
.text-f {
    font-size: 30px;
}

form label.error{
    color: #df4e4e;
}

.site-header {
  --header-h: 80px;        /* = h-20 de Tailwind */
  --logo-grande: 130px;    /* logo arriba de todo */
  --logo-pequeno: 56px;    /* logo después del scroll */
  --logo-top: 6px;         /* distancia al borde superior en estado grande */
  --logo-top-small: calc((var(--header-h) - var(--logo-pequeno)) / 2);
}

@media (max-width: 767px) {
  .site-header {
    --logo-grande: 92px;
    --logo-pequeno: 52px;
  }
}

/* No cortar el logo cuando se sale de la barra */
.site-header {
  overflow: visible;
}

.logo-link {
  display: block;
  align-self: flex-start;            /* se pega arriba y "cuelga" hacia abajo */
  margin-top: var(--logo-top);
  flex-shrink: 0;
  transition: margin-top .3s ease;
}

.logo-brand {
  display: block;
  width: var(--logo-grande);
  height: var(--logo-grande);
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: width .3s ease, height .3s ease, border-width .3s ease, box-shadow .3s ease;
}

/* Estado con scroll: logo pequeño, centrado dentro de la barra */
.site-header.is-scrolled .logo-link {
  margin-top: var(--logo-top-small);
}

.site-header.is-scrolled .logo-brand {
  width: var(--logo-pequeno);
  height: var(--logo-pequeno);
  border-width: 2px;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .logo-link,
  .logo-brand {
    transition: none;
  }
}

@media (max-width: 767px) {
  .logo-link {
    position: absolute;              /* sale del flujo, se centra respecto al header */
    left: 50%;
    top: var(--logo-top);
    margin-top: 0;
    transform: translateX(-50%);
    transition: top .3s ease;
  }

  .site-header.is-scrolled .logo-link {
    top: var(--logo-top-small);
    margin-top: 0;
  }
}