/*!
 * ESTUDIOS WILLIAMS
/*! */

/*--------------------------------------------------------------
# GENERAL
--------------------------------------------------------------*/
  :root {
    scroll-behavior: smooth;
  }

  ::-moz-selection {
    background: rgba(0,0,0,0.1);
    text-shadow: none;
  }
  ::selection {
    background: rgba(0,0,0,0.1);
    text-shadow: none;
  }

  body, header, section, footer, 
  .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    min-width: 280px;
  }

  a {
    color: var(--color-links);
    text-decoration: none;
  }
  a:hover {
    color: var(--color-links-hover);
    text-decoration: none;
  }

/*--------------------------------------------------------------
# DISABLE AOS ANIMATION DELAY ON MOBILE DEVICES
--------------------------------------------------------------*/
  @media screen and (max-width: 768px) {
    [data-aos-delay] {
      transition-delay: 0 !important;
    }
  }

/*--------------------------------------------------------------
# HEADER
--------------------------------------------------------------*/
  .header {
    background: rgba(var(--color-white-rgb), 0.9);
    transition: all 0.5s;
    z-index: 997;
  }
  .header.sticked {
    background: var(--color-white);
    box-shadow: 0 0 20px rgba(var(--color-default-rgb), 0.2);
  }

  .header .logo h1 {
    width: 204px;
    height: 70px;
    margin: 0;
    background: url(../images/Rodriguez-Ernesto.svg) no-repeat left center;
    background-size: contain;
    font-size: 14px;
    line-height: 16px;
    text-indent: -99999px;
    transition: 0.3s;
  }
  @media (min-width: 400px) {
    .header .logo h1 {
      width: 260px;
    }
  }
  @media (min-width: 992px) {
    .header .logo h1 {
      width: 320px;
      height: 100px;
    }
    .header.sticked .logo h1 {
      width: 290px;
      height: 70px;
    }
  }

/*--------------------------------------------------------------
# DESKTOP NAVIGATION 
--------------------------------------------------------------*/
  @media (min-width: 768px) {
    .navbar {
      padding: 0;
      position: relative;
    }
    .navbar ul {
      margin: 0;
      padding: 0;
      display: flex;
      list-style: none;
      align-items: center;
    }
    .navbar li {
      position: relative;
    }
    .navbar > ul > li {
      white-space: nowrap;
    }
    .navbar a, .navbar a:focus {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 15px;
      font-size: 14px;
      color: var(--color-default);
      white-space: nowrap;
      transition: 0.3s;
      position: relative;
    }

    .navbar a.bg-primary.color-white, .navbar a.bg-primary.color-white:focus {
      margin: 0 15px;
      transition: 0.3s;
    }
    .navbar a.bg-primary.color-white:hover {
      opacity: 0.7;
    }

    .navbar a i, .navbar a:focus i {
      font-size: 14px;
      line-height: 0;
      margin-left: 5px;
    }
    .navbar > ul > li > a:before {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      bottom: 0;
      left: 0;
      background-color: var(--color-primary);
      visibility: hidden;
      transform: scaleX(0);
      transition: all 0.3s ease-in-out 0s;
    }
    .navbar a:hover:before, .navbar li:hover > a:before, .navbar .active:before {
      visibility: visible;
      transform: scaleX(0.7);
    }
    .navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
      color: var(--color-primary);
    }
    .navbar .dropdown a:hover:before, .navbar .dropdown:hover > a:before, .navbar .dropdown .active:before {
      visibility: hidden;
    }
    .navbar .dropdown a:hover, .navbar .dropdown .active, .navbar .dropdown .active:focus, .navbar .dropdown:hover > a {
      color: var(--color-white);
      background: var(--color-secondary);
    }
    .navbar .dropdown ul {
      display: block;
      position: absolute;
      left: 0;
      top: 100%;
      margin: 0;
      padding: 0 0 10px 0;
      z-index: 99;
      opacity: 0;
      visibility: hidden;
      background: var(--color-secondary);
      transition: 0.3s;
    }
    .navbar .dropdown ul li {
      min-width: 200px;
    }
    .navbar .dropdown ul a {
      padding: 10px 20px;
      font-size: 17px;
      text-transform: none;
      color: rgba(var(--color-white-rgb), 0.5);
    }
    .navbar .dropdown ul a i {
      font-size: 14px;
    }
    .navbar .dropdown ul a:hover, .navbar .dropdown ul .active, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
      color: var(--color-white);
      background: var(--color-primary);
    }
    .navbar .dropdown:hover > ul {
      opacity: 1;
      visibility: visible;
    }
    .navbar .megamenu {
      position: static;
    }
    .navbar .megamenu ul {
      right: 0;
      padding: 10px;
      display: flex;
    }
    .navbar .megamenu ul li {
      flex: 1;
    }
    .navbar .megamenu ul li a, .navbar .megamenu ul li:hover > a {
      color: rgba(var(--color-white-rgb), 0.5);
      background: none;
    }
    .navbar .megamenu ul li a:hover, .navbar .megamenu ul li .active, .navbar .megamenu ul li .active:hover {
      color: var(--color-white);
      background: var(--color-primary);
    }
    .navbar .dropdown .dropdown ul {
      top: 0;
      left: calc(100% - 30px);
      visibility: hidden;
    }
    .navbar .dropdown .dropdown:hover > ul {
      opacity: 1;
      top: 0;
      left: 100%;
      visibility: visible;
    }
  }
  @media (min-width: 768px) and (max-width: 1366px) {
    .navbar .dropdown .dropdown ul {
      left: -90%;
    }
    .navbar .dropdown .dropdown:hover > ul {
      left: -100%;
    }
  }

/*--------------------------------------------------------------
# MOBILE NAVIGATION
--------------------------------------------------------------*/
  @media (max-width: 767px) {
    .navbar {
      position: fixed;
      top: 0;
      left: -100%;
      width: calc(100% - 70px);
      bottom: 0;
      transition: 0.3s;
      z-index: 9997;
    }
    .navbar ul {
      position: absolute;
      inset: 0;
      padding: 10px 0;
      margin: 0;
      background: rgba(var(--color-default-rgb), 0.7);
      overflow-y: auto;
      transition: 0.3s;
      z-index: 9998;
    }
    .navbar a, .navbar a:focus {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      color: rgba(var(--color-white-rgb), 0.7);
      white-space: nowrap;
      transition: 0.3s;
    }
    .navbar a i, .navbar a:focus i {
      font-size: 14px;
      line-height: 0;
      margin-left: 5px;
    }
    .navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
      color: var(--color-white);
    }
    .navbar .dropdown ul, .navbar .dropdown .dropdown ul {
      position: static;
      display: none;
      padding: 10px 0;
      margin: 10px 20px;
      transition: all 0.5s ease-in-out;
      border: 1px solid rgba(var(--color-default-rgb), 0.3);
    }
    .navbar .dropdown > .dropdown-active, .navbar .dropdown .dropdown > .dropdown-active {
      display: block;
    }

    .mobile-nav-toggle {
      display: block !important;
      color: var(--color-default-rgb);
      font-size: 30px;
      cursor: pointer;
      line-height: 0;
      transition: 0.5s;
      position: absolute;
      top: 20px;
      z-index: 9999;
      right: 20px;
    }
    .mobile-nav-toggle.bi-x {
      color: var(--color-white);
    }

    .mobile-nav-active {
      overflow: hidden;
      z-index: 9995;
      position: relative;
    }
    .mobile-nav-active .navbar {
      left: 0;
    }
    .mobile-nav-active .navbar:before {
      content: "";
      position: fixed;
      inset: 0;
      background: rgba(var(--color-default-rgb), 0.8);
      z-index: 9996;
    }
  }

/*--------------------------------------------------------------
# PORTADA
--------------------------------------------------------------*/
  section.portada {
    position: relative;
    overflow: hidden;
  }

  .video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  z-index: -100;
}
  .custom-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  /* jpg */
  .no-webp .portada .custom-video {
    background-image: url("../images/portada.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }
  @media screen and (min-width: 0px) {
    .portada {
      height: 100vh;
    }
    .custom-video {
      object-fit: cover;
      width: 100vw;
      height: 100vh;
    }
  }

  .overlay {
    background: linear-gradient(to top, rgba(var(--color-black-rgb),0.3), transparent 25%);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  .portada-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    width: 100%;
    margin-left: -50%;
    text-align: center;
  }
  .btn-scroll-down {
    display: inline-block;
    font-size: 26px;
    color: var(--color-white) !important;
    text-align: center;
    margin: 0 auto 25px;

    -webkit-animation: pulse 1.5s infinite;
    animation: pulse 1.5s infinite;
  }

  @-webkit-keyframes pulse {
    0% {
      -webkit-transform: translate(0, 0);
              transform: translate(0, 0);
    }
    50% {
      -webkit-transform: translate(0, 10px);
              transform: translate(0, 10px);
    }
    100% {
      -webkit-transform: translate(0, 0);
              transform: translate(0, 0);
    }
  }
  @keyframes pulse {
    0% {
      -webkit-transform: translate(0, 0);
              transform: translate(0, 0);
    }
    50% {
      -webkit-transform: translate(0, 10px);
              transform: translate(0, 10px);
    }
    100% {
      -webkit-transform: translate(0, 0);
              transform: translate(0, 0);
    }
  }

/*--------------------------------------------------------------
# SECTIONS & SECTION HEADER
--------------------------------------------------------------*/
  section {
    overflow: hidden;
  }

  .section-header {
    text-align: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }
  @media (min-width: 1200px){
    .section-header h2 {
      font-size: 2rem;
    }
  }

  .section-header h2.icons-title-blue, 
  .section-header h2.icons-title-brown {
    display: inline-block;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    background-size: 18px;
    padding: 12px 24px 15px;
  }
  .section-header h2.icons-title-blue {
    background-image: url(../images/icon-title-left-blue.png), url(../images/icon-title-right-blue.png);
  }
  .section-header h2.icons-title-brown {
    background-image: url(../images/icon-title-left-brown.png), url(../images/icon-title-right-brown.png);
  }

  .section-header p {
    margin: 0 auto;
  }
  @media (min-width: 1200px) {
    .section-header p {
      max-width: 80%;
      line-height: 2!important;
    }
  }

/*--------------------------------------------------------------
# SERVICIOS
--------------------------------------------------------------*/
  section.servicios {
    padding: 60px 0;
    background: #F5F5F5;
  }
  .servicios .service-item {
    padding: 20px 30px 26px;
    transition: all ease-in-out 0.4s;
    height: 100%;
    border-radius: 10px;
  }

  .servicios .service-item .icon-1, 
  .servicios .service-item .icon-2, 
  .servicios .service-item .icon-3, 
  .servicios .service-item .icon-4, 
  .servicios .service-item .icon-5, 
  .servicios .service-item .icon-6, 
  .servicios .service-item .icon-7,
  .servicios .service-item .icon-8,
  .servicios .service-item .icon-9 {
    display: block;
    width: 100%;
    height: 150px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain;
    margin-bottom: 15px;
  }
  .servicios .service-item .icon-1 {
    background-image: url("../images/servicios/icon-01.png");
  }
  .servicios .service-item .icon-2 {
    background-image: url("../images/servicios/icon-02.png");
  }
  .servicios .service-item .icon-3 {
    background-image: url("../images/servicios/icon-03.png");
  }
  .servicios .service-item .icon-4 {
    background-image: url("../images/servicios/icon-04.png");
  }
  .servicios .service-item .icon-5 {
    background-image: url("../images/servicios/icon-05.png");
  }
  .servicios .service-item .icon-6 {
    background-image: url("../images/servicios/icon-06.png");
  }
  .servicios .service-item .icon-7 {
    background-image: url("../images/servicios/icon-07.png");
  }
  .servicios .service-item .icon-8 {
    background-image: url("../images/servicios/icon-08.png");
  }
  .servicios .service-item .icon-9 {
    background-image: url("../images/servicios/icon-09.png");
  }

  .servicios .service-item h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  .servicios .service-item p {
    margin-bottom: 0;
  }

  .service-img {
    width: 100%; 
    border-radius: 15px;
  }

  .servicios .service-item:hover {
    transform: translateY(-10px);
  }

/*--------------------------------------------------------------
# BANNER-MATERIALES
--------------------------------------------------------------*/
  section.banner-materiales {
    padding: 200px 0;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: cover;
    position: relative;
    color: var(--color-white);
    text-align: center;
  }
  /* webP */
.banner-materiales {
    background-image: url("../images/banner-materiales.jpg");
  }

  @media (min-width: 576px) {
    section.banner-materiales {
      text-align: left;
    }
  }

/*--------------------------------------------------------------
# QUIENES-SOMOS
--------------------------------------------------------------*/
  section.quienes-somos {
    padding: 60px 0;
  }
  .quienes-somos .quienes-somos-img {
    position: relative;
    margin: 50px 0 0 60px;
    background: #F5F5F5;
  }

  .quienes-somos .quienes-somos-img:before {
    position: absolute;
    inset: -35px 0 0 -80px;
    z-index: -1;
    content: "";
    background: url("../images/quienes-somos-trama.png") top left;
    background-repeat: no-repeat;
  }
  @media (min-width: 768px) {
    .quienes-somos .quienes-somos-img:before {
      inset: -80px 0 0 -80px;
    }
  }
  @media (min-width: 1200px) {
    .quienes-somos p {
      line-height: 2!important;
    }
  }

/*--------------------------------------------------------------
# CARROUSEL-FOTOS-1
--------------------------------------------------------------*/
  section.carrousel-fotos-1 {
    padding: 10px 0 0;
  }

/*--------------------------------------------------------------
# CLIENTES
--------------------------------------------------------------*/
  section.clientes {
    padding: 50px 0;

  }

  @media (min-width: 1200px) {
    .clientes .section-header p {
      max-width: 40%;
    }
  }

  /*--------------------------------------------------------------
# PROVEEDORES
--------------------------------------------------------------*/
  section.proveedores {
    padding: 50px 0;
  }

  @media (min-width: 1200px) {
    .proveedores .section-header p {
      max-width: 40%;
    }
  }

/*--------------------------------------------------------------
# CARROUSEL-FOTOS-2
--------------------------------------------------------------*/
  section.carrousel-fotos-2 {
    padding: 60px 0 0;
  }

/*--------------------------------------------------------------
# CONTACTO
--------------------------------------------------------------*/
  section.contacto {
    padding: 60px 0;
    background: #F5F5F5;
  }

  .contacto .info {
    padding: 30px;
    border-radius: 15px;
    background: var(--color-white);
    box-shadow: 0 0 20px rgba(var(--color-black-rgb), 0.1);
    overflow: hidden;
  }
  .contacto .info-item + .info-item {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(var(--color-default-rgb), 0.1);
  }
  .contacto .info-item i {
    font-size: 24px;
    color: var(--color-secondary);
    margin-right: 20px;
  }
  .contacto .info-item h4 {
    padding: 0;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #A2ABB0;
  }
  .contacto .info-item p, 
  .contacto .info-item a {
    padding: 0;
    margin-bottom: 0;
    font-size: 1rem;
    font-family: 'sinkin_sans_500';
    font-weight: normal;
    color: var(--color-default) !important;
  }

  .contacto .form-control {
    background: var(--color-gray);
    color: var(--color-default);
    border: none;
    border-radius: 12px;
    box-shadow: none !important;
    font-size: 15px;
    height: 48px;
    padding: 10px 20px;
  }
  .contacto .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--color-gray) inset !important;
    -webkit-text-fill-color: var(--color-default) !important;
  }
  .contacto textarea.form-control {
    height: 140px;
    resize: vertical;
  }
  @media (min-width: 992px) {
    .contacto textarea.form-control {
      height: 198px;
    }
  }
  @media (min-width: 1200px) {
    .contacto textarea.form-control {
      height: 180px;
    }
  }

  .btn {
    padding: 8px 15px;
    font-size: 12px;
    line-height: var(--bs-body-line-height);
    border: none;
    border-radius: 20px;
    box-shadow: none !important;
    transition: 0.3s;
  }
  .btn:hover {
    opacity: 0.7;
  }
  .btn .spinner-border {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 5px;
  }

  .invalid-feedback, 
  .valid-feedback {
    font-size: 11px;
  }
  .invalid-feedback {
    color: var(--color-red);
  }
  .valid-feedback {
    color: var(--color-green);
  }

  .alert {
    padding: 10px 20px;
    margin: 15px 0 0;
    font-size: 13px;
    border-radius: 5px;
  }
  .alert-dismissable, .alert-dismissible {
    padding-right: 35px;
  }

/*--------------------------------------------------------------
# MAPA
--------------------------------------------------------------*/
  section.mapa {

  }
  .mapa .map {
    height: 400px;
  }
  .mapa .map iframe {
    border: 0;
    width: 100%;
    height: 400px;
  }

/*--------------------------------------------------------------
# FOOTER
--------------------------------------------------------------*/
  footer.footer {
    position: relative;
    background: #E6E6E6;
    color: #A3ABB0;
    font-size: 12px;
    padding: 30px 0;
  }

  .footer h3 {
    width: 260px;
    height: 50px;
    margin: 0;
    background: url(../images/Rodriguez-Ernesto.svg) no-repeat left center;
    background-size: contain;
    font-size: 14px;
    line-height: 12px;
    text-indent: -99999px;
  }

  .footer .btn-scroll-top {

  }
  .footer .btn-scroll-top i {
    font-size: 28px;
    color: #172740;
  }

  #call-to-action-whatsapp {
    display:block;
    position:absolute;
    bottom:40px;
    right:10px
}

  footer #williams {
    display: block;
    width: 62px;
    height: 20px;
    position: absolute;
    bottom: 12px;
    right: 30px;
    text-indent: -99999px;
    opacity: 0.4;
    transition: 0.3s;
    background: url(../images/williams.svg) no-repeat center center;
    color:blue;
    background-size: contain;
  }
  footer #williams:hover {
    opacity: 0.6;
  }

/*--------------------------------------------------------------
# PRELOADER
--------------------------------------------------------------*/
  #preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background: rgba(var(--color-white-rgb),0.7);
    transition: all 0.6s ease-out;
    width: 100%;
    height: 100vh;
  }
  #preloader:before, #preloader:after {
    content: "";
    position: absolute;
    border: 7px solid var(--color-primary);
    border-radius: 50%;
    -webkit-animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  }
  #preloader:after {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
  }

  @-webkit-keyframes animate-preloader {
    0% {
      width: 10px;
      height: 10px;
      top: calc(50% - 5px);
      left: calc(50% - 5px);
      opacity: 1;
    }
    100% {
      width: 72px;
      height: 72px;
      top: calc(50% - 36px);
      left: calc(50% - 36px);
      opacity: 0;
    }
  }
  @keyframes animate-preloader {
    0% {
      width: 10px;
      height: 10px;
      top: calc(50% - 5px);
      left: calc(50% - 5px);
      opacity: 1;
    }
    100% {
      width: 72px;
      height: 72px;
      top: calc(50% - 36px);
      left: calc(50% - 36px);
      opacity: 0;
    }
  }
/* FORZAR VISIBILIDAD EN MÓVILES */
@media screen and (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: translate(0) scale(1) !important;
        pointer-events: auto !important;
        transition: none !important; 
    }
}

/* Solo para Celulares */
@media (max-width: 767px) {

  /* Contenedor tipo Grilla */
  .swiper-fotos-1 .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important; /* Espacio entre fotos */
    transform: none !important; /* Quita el movimiento */
    box-sizing: border-box !important;
  }

  /* Ajuste básico de cada foto */
  .swiper-fotos-1 .swiper-slide {
    height: 250px !important;
    margin: 0 !important;
    display: block !important;
  }

  .swiper-fotos-1 .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* --- PATRÓN 3 - 2 - 3 - 2 (Total 10 fotos) --- */

  /* FILA 1: Fotos 1, 2, 3 (33%) */
  .swiper-fotos-1 .swiper-slide:nth-child(1),
  .swiper-fotos-1 .swiper-slide:nth-child(2),
  .swiper-fotos-1 .swiper-slide:nth-child(3) {
    width: calc(33.33% - 4px) !important;
  }

  /* FILA 2: Fotos 4, 5 (50%) */
  .swiper-fotos-1 .swiper-slide:nth-child(4),
  .swiper-fotos-1 .swiper-slide:nth-child(5) {
    width: calc(50% - 3px) !important;
  }

  /* FILA 3: Fotos 6, 7, 8 (33%) */
  .swiper-fotos-1 .swiper-slide:nth-child(6),
  .swiper-fotos-1 .swiper-slide:nth-child(7),
  .swiper-fotos-1 .swiper-slide:nth-child(8) {
    width: calc(33.33% - 4px) !important;
  }

  /* FILA 4: Fotos 9, 10 (50%) */
  .swiper-fotos-1 .swiper-slide:nth-child(9),
  .swiper-fotos-1 .swiper-slide:nth-child(10) {
    width: calc(50% - 3px) !important;
  }

  /* OCULTAR EL RESTO (Fotos 11 y 12) */
  .swiper-fotos-1 .swiper-slide:nth-child(n+11) {
    display: none !important;
  }
}