/*Hides page Header (Title and Footer)*/
.page-header, .site-footer{
    display: none !important;
}

.libLoader{
    display: none !important;
}

body{
    background: #c7c7c7 !important;
}


/*****************************
01) Header Section
*****************************/
/* 🌐 Base (mobile first) */
.site-header .site-branding {
    display: flex !important;
    align-items: center;
    flex-direction: row-reverse !important; /* evita que se apilen */
    justify-content: center;        /* centra el bloque dentro del header */
    gap: 12px;                      /* espacio entre logo y texto */
}

.site-header .custom-logo {
    width: 60px;   /* tamaño inicial logo */
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.site-header .custom-logo:hover {
    opacity: 0.8;
}

.site-header .header-inner .site-branding.show-logo .site-title.showtitle {
        display: inline-block !important;
}

.site-header .header-inner .site-branding.show-logo .site-title.showtitle a{
        color: #cccccc;
}

.site-header .header-inner .site-branding.show-logo .site-title.showtitle a:hover{
        color: #ffffff;
}

.site-header .site-title {
    font-size: 2em !important;
    margin-top: 0rem !important;
    margin-right: 0.7rem !important;
    font-weight: bold;
    display: inline-block !important; /* fuerza inline al lado del logo */
    text-align: left;
    opacity: 0.6;


}

/* 💻 Tablet (>= 768px) */
@media (min-width: 768px) {
    .site-header .custom-logo {
        width: 75px;
    }
    .site-header .site-title {
        font-size: 2.3em !important;
        margin-top: 0rem !important;
        margin-right: 0.7rem !important;
    }
}

/* 🖥️ Desktop (>= 1024px) */
@media (min-width: 1024px) {
    .site-header .custom-logo {
        width: 90px;
    }
    .site-header .site-title {
        font-size: 2.7em !important;
        margin-top: 0.3rem !important;
        margin-right: 1rem !important;
    }
}




/**************************************
02) Menu
**************************************/


/* --- Hamburguesa --- */
/* Contenedor del toggle */
.site-navigation-toggle {
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1001; /* encima del menú */
}

/* Líneas de la hamburguesa */
.site-navigation-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  /*background: #fff;*/
  border-radius: 2px;
}

/* Estado abierto: X */
.site-navigation-toggle.open span:nth-child(1) {
  transform: none;
  background: transparent; /* ocultamos primera línea */
}

.site-navigation-toggle.open span:nth-child(2) {
  transform: none;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  transform: rotate(45deg);
}

.site-navigation-toggle.open span:nth-child(3) {
  transform: none;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  transform: rotate(-45deg);
}



/* --- Desktop menu --- */
.site-navigation {
  display: flex;
}

.site-navigation ul.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation ul.menu > li {
  position: relative;
}

.site-navigation ul.menu > li > a {
  color: #fff;
  padding: 15px 20px;
  text-decoration: none;
}

.site-navigation ul.menu > li:hover > a {
  color: #ccc;
}

/* Submenu Desktop */
.site-navigation ul.menu li.menu-item-has-children > ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
}

.site-navigation ul.menu li.menu-item-has-children:hover > ul.sub-menu {
  display: block;
}

.site-navigation ul.menu li.menu-item-has-children > ul.sub-menu li a {
  display: block;
  color: #fff;
  padding: 10px 15px;
}

.site-navigation ul.menu li.menu-item-has-children > ul.sub-menu li a:hover {
  background: #333;
}

/* --- Mobile menu --- */
@media (max-width: 767px) {
  .site-navigation {
    display: none;
  }

  .site-navigation-toggle-holder {
    display: flex;
  }

  .site-navigation-dropdown {
    display: none; /* oculto por defecto */
    background: #111; /* background del menú mobile */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    margin-top: 0px !important;
  }

  .site-navigation-dropdown ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-navigation-dropdown li.menu-item-has-children .menu-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
  }

  .site-navigation-dropdown li.menu-item-has-children .menu-item-wrapper a {
    color: #fff;
    text-decoration: none;
  }

  .site-navigation-dropdown li.menu-item-has-children .submenu-toggle {
    font-size: 22px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    user-select: none;
  }

  .site-navigation-dropdown li.menu-item-has-children > ul.sub-menu {
    display: none;
    flex-direction: column;
    background: #222;
    margin: 0;
    padding-left: 0;
  }

  .site-navigation-dropdown li.menu-item-has-children div.menu-item-wrapper{
    background: #55595c;
  }
  
  /*Zero padding for first level 1 inside the div wrapper*/
  .site-navigation-dropdown li.menu-item-has-children div.menu-item-wrapper a{
    padding-left: 0 !important;
  }

  .site-navigation-dropdown li.menu-item-has-children > ul.sub-menu li a {
    padding-left: 40px !important;
    color: #fff;
    display: block;
  }

  .site-navigation-dropdown li.menu-item-has-children > ul.sub-menu li a:hover {
    background: #333;
  }
}

/* --- Desktop show menu if needed --- */
@media (min-width: 768px) {
  .site-navigation {
    display: flex !important;
  }

  .site-header.menu-dropdown-tablet:not(.menu-layout-dropdown) .site-navigation.show{
    display: flex !important;
  }

  .site-navigation-toggle-holder {
    display: none !important;
  }

  .site-navigation-dropdown {
    display: none !important;
  }
}




/*END OF MENU*/

/*evita conflicto*/
  .site-navigation-dropdown ul.menu > li li {
    max-height: none !important;      
    transform: scaleY(1) !important;  
    transform-origin: top !important; 
    transition: none !important;      
    display: block !important;       
  }

/*****************************
Title Section
*****************************/

#myvica-block .title{
    display: flex !important;
    justify-content: center !important; /* horizontal */
    text-align: center !important;
    align-items: center !important;     /* vertical */
}

#myvica-block .title h1,
#myvica-block .title h2,
#myvica-block .title h3,
#myvica-block .title h4,
#myvica-block .title h5,
#myvica-block .title h6
{
    color: #343434 !important;
    text-align: center !important;
}


.site-header{
     background: #2a2a2a !important;
    color: #fff !important;
}



/*****************************
Bottom Section
*****************************/

.bottom-section{
    background: #424242;
    color: #fff;
}


.bottom-section .footer-portal a ,
.bottom-section .footer-portal  p{
    color: #fff !important;
    transition: color 0.3s ease; /* transición suave */
    font-size: 1.2rem !important;
}


.bottom-section .footer-portal  a:hover {
    color: #a0a0a0 !important; /* color al hacer hover, ejemplo: naranja */
}


.bottom-section .social svg{
    fill: #fff !important;
    transition: fill 0.3s ease; /* transición suave */
    height: 1.8rem !important;
    width: 1.8rem !important;
}

.bottom-section .social svg:hover{
    fill: #a0a0a0 !important;}

/*****************************
Footer Section
*****************************/

.footer-section{
    background: #2a2a2a;
    color: #fff;
}




/*****************************
US-section
Services-Section
Contact-Section
*****************************/
.us-section, 
.services-section,
.contact-section{ 
    margin-top: 3rem !important;
    margin-bottom: 2rem !important; 
}

.contact-section svg{ 
    fill:#2a2a2a !important;
}

.us-section > div > div,
.services-section  > div > div,
.contact-section > div > div {
    width: 92% !important;
    justify-items: center !important;
}

.us-section h2,
.services-section h2,
.contact-section h2
{
    font-size: 2rem;
    margin-bottom: 1.5rem !important;   
    /*background: rgba(44, 44, 44, 0.311) !important;*/  
    color: #121212;
}

.us-section p,
.services-section p,
.contact-section p{
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.05rem;
    margin-bottom: 0.2rem !important;   
}


/*More than 320 px widht*/
@media (min-width: 320px) {
    .us-section p,
    .services-section p,
    .contact-section p
    {
        text-align: justify !important;
        text-align-last: left !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        text-wrap: balance !important;  
    }
}


/*More than 600 px widht*/
@media (min-width: 600px) {
    .us-section h2,
    .services-section h2
    .contact-section h2
    {
        font-size: 2.2rem;
        margin-bottom: 1rem !important;   
    }

    .us-section p,
    .services-section p,
    .contact-section p
    {
        font-size: 1.3rem;
        margin-bottom: 0.2rem !important;  
    }
}

/*More than 800 px widht*/
@media (min-width: 800px) {
    .us-section h2,
    .services-section h2,
    .contact-section h2
    {
        font-size: 2.4rem;
        margin-bottom: 1rem !important;   
    }

    .us-section p,
    .services-section p,
    .contact-section p
    {
        font-size: 1.4rem;
        margin-bottom: 0.2rem !important;  
        text-align: justify; 
    }
}

/*More than 1024 px widht*/
@media (min-width: 1024px) {
    .us-section,
    .services-section,
    .contact-section{
        margin-top: 4rem !important;
        margin-bottom: 2rem !important;   
    }
    .us-section h2,
    .services-section h2,
    .contact-section h2
    {
        font-size: 2.6rem;
        margin-bottom: 1rem !important;   
    }

    .us-section p,
    .services-section p,
    .contact-section p 
    {    
        font-size: 1.6rem;
        margin-bottom: 0.2rem !important;
        text-align: justify;   
    }

}


/*****************************
Gallery Section
*****************************/


/**********************/
/* 02.c Galleria 4/5 */
/**********************/

.gallery4-5-mobile{
  width: 100% !important;
  max-width: 1024px !important;   /* límite máximo */
  margin: 0 auto !important;      /* centrar en pantalla grande */
  /*background: rgb(160, 160, 255);*/

  /* Fallback para navegadores viejos */
  position: relative !important;
  padding-top: 125% !important; /* 5/4 = 1.25 = 125% */
  overflow: hidden !important;
}

.gallery4-5-mobile .e-con{
  --padding-inline-start: 0px !important;
  padding-inline-start: 0 !important;
  --padding-inline-end: 0px !important;
  padding-inline-end: 0px !important;
}


.content4-5 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;             /* flex para centrar contenido */
  justify-content: center !important;   /* centra horizontal */
  align-items: center !important;       /* centra vertical */
}


.content4-5 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* rellena sin deformar */
  object-position: center !important; /* centra la imagen */
  display: block !important;      /* quita espacios fantasmas */
}

/* Navegadores modernos usan aspect-ratio y anulan el padding */
@supports (aspect-ratio: 4/5) {
  .gallery4-5-mobile {
    padding-top: 0 !important;      /* anulamos fallback */
    aspect-ratio: 4 / 5 !important; /* cuadrado perfecto */
    position: relative !important;
  }

  .content4-5 {
    position: static !important; /* ya no necesita absolute */
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .content4-5 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
  }
}

/*********************/
/* 02.b Galleria 1/1 */
/*********************/

.gallery1-1 {
  width: 100% !important;
  max-width: 1024px !important;   /* límite máximo */
  margin: 0 auto !important;      /* centrar en pantalla grande */
  /*background: rgb(160, 160, 255);*/

  /* Fallback para navegadores viejos */
  position: relative !important;
  padding-top: 100% !important; /* 1/1 = 100% */
  overflow: hidden !important;
}


.content1-1 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;             /* flex para centrar contenido */
  justify-content: center !important;   /* centra horizontal */
  align-items: center !important;       /* centra vertical */
}

.content1-1 img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* rellena sin deformar */
  object-position: center !important; /* centra la imagen */
  display: block !important;      /* quita espacios fantasmas */
}


/* Navegadores modernos usan aspect-ratio y anulan el padding */
@supports (aspect-ratio: 1/1) {
  .gallery1-1 {
    padding-top: 0 !important;      /* anulamos fallback */
    aspect-ratio: 1 / 1 !important; /* cuadrado perfecto */
    position: relative !important;
  }

  .content1-1 {
    position: static !important; /* ya no necesita absolute */
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .content1-1 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
  }
}


/**********************/
/* 02.c Galleria 16/9 */
/**********************/


.gallery16-9 {
  width: 100% !important;
  max-width: 1200px !important;   /* límite máximo */
  margin: 0 auto !important;      /* centrar en pantalla grande */
  /*background: rgb(220, 220, 255);*/

  /* Fallback para navegadores viejos */
  position: relative !important;
  padding-top: 56.25% !important; /* 9 / 16 = 0.5625 → 56.25% */
  overflow: hidden !important;
}

.content16-9 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;             /* flex para centrar contenido */
  justify-content: center !important;   /* centra horizontal */
  align-items: center !important;       /* centra vertical */
}

.content16-9 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* rellena sin deformar */
  object-position: center !important; /* centra la imagen */
  display: block !important;      /* quita espacios fantasmas */
}


/* Navegadores modernos usan aspect-ratio */
@supports (aspect-ratio: 16/9) {
  .gallery16-9 {
    padding-top: 0 !important;       /* quitamos fallback */
    aspect-ratio: 16 / 9 !important; /* formato panorámico */
    position: relative !important;
  }

  .content16-9 {
    position: static !important; /* ya no necesita absolute */
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .content16-9 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
  }

}







/*******************************
08) Custom Gallery Lightbox
********************************/


#full-width-section .row div.gallery-container{
    padding: 10px 0px !important;
}


/* Full-page container */
.custom-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: fit-content; /* Full height of the viewport */
    margin-top: 30px;
    margin-bottom: 30px;
  }

.responsive-box {
    width: 100%; /* Fixed height */
    max-width: 580px; 
    aspect-ratio: 1 / 1; /* Maintain aspect ratio */
    background-color: lightgray; /* Just for visibility */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 0;
}

.responsive-box.box4_5{
   aspect-ratio: 4 / 5 !important; /* Maintain aspect ratio */ 
}

.responsive-box.box16_9{
   aspect-ratio: 16 / 9 !important; /* Maintain aspect ratio */ 
}

@media (min-width: 600px) {
    .responsive-box {
        width: 98%; /* Fixed height */
        max-width: 780px;
    }
    .custom-container {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

@media (min-width: 800px) {
    .responsive-box {
        width: 94%; /* Fixed height */
        max-width: 960px;
    }
    .custom-container {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

@media (min-width: 1024px) {
    .responsive-box {
        width: 95%; /* Fixed height */
        max-width: 1200px;
    }
    .custom-container {
        margin-top: 55px;
        margin-bottom: 55px;
    }
}


/*.custom-gallery-container{
    width: 100%;
    max-width: 1200px;
    max-height: 600px;
    margin: auto;
    padding: 10px;
    display: block;
}*/


/*.custom-dynamic-gallery{
    display: block;
    z-index: 0;
    width: 100%;
    height: 100%;
}*/

.custom-gallery {
    display: flex;
    flex-direction: row;
    z-index: 0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.thumbs-wrapper {
    backface-visibility: hidden;
    display: flex;
    transition: transform 0.5s ease; /* Smooth horizontal slide */
    /*transform: translateX(-1000px);*/   /*Uncomment for having a translation on x*/  
}



.custom-gallery-item {
    display: block;
    height: 100%;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.custom-gallery  a{
    display: block;
    min-height: 100%;
    min-width: 100%;
}


.custom-gallery-thumbnail {
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: 0;
    object-fit: contain; /* Ensures the image covers the space */
    transition: transform 0.5s ease;
}


.custom-gallery-bottom-bar{
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 0.5rem 0.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    justify-items: center;
    justify-content: center;
}

.custom-gallery-bottom-bar.box4_5{
        /*background: rgba(100, 0, 0, 0.6);*/
        padding: 1.5rem 0.2rem;
}

.custom-gallery-bottom-bar.box16_9{
        padding: 1.5rem 0.2rem;
        text-transform: uppercase;
}

.custom-gallery-title {
    width: 100%;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.custom-gallery-bottom-bar.box4_5 > .custom-gallery-title{
    margin-bottom: 1rem;
}

.custom-gallery-button{
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
}

.custom-gallery-button a{
    width: fit-content;
    text-align: center;
    padding: 0.6rem;
    z-index: 22;
    background-color: #ee2c1a;
    color: #fff;
    display: none;
    border-radius: 0.3rem;
}

.custom-gallery-bottom-bar.box4_5 > .custom-gallery-button{
    margin-bottom: 0.5rem;
}

/* Navigation buttons */
.custom-gallery-prev, .custom-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.6rem;
}

/* Navigation buttons */
.custom-gallery-prev.box4_5, .custom-gallery-next.box4_5 {
    top:50%;
}

.custom-gallery-prev {
    left: 1rem;
}

.custom-gallery-next {
    right: 1rem;
}

@media (min-width: 748px) {
    .custom-gallery-bottom-bar{
        padding: 1.5rem 0.2rem;
    }
    .custom-gallery-prev, .custom-gallery-next {
        top: 50%;
        font-size: 2rem;
    }
    .custom-gallery-title  {
        width: 100%;
        font-size: 1.6rem;
    }

    /*Buton en 4_5*/
    .custom-gallery-button{
        width: 35%; 
        font-size: 1.2rem;
    }

}

@media (min-width: 1024px) {
    .custom-gallery-title  {
        width: 100%;
        font-size: 2.3rem;
    }
    .custom-gallery-button{
        width: 35%; 
        font-size: 1.5rem;
    }
}




/*******************************
08) a. Magnific PopUp Overlay
********************************/

/*Remove full screen and zoom view and leave the Magnific PopUp Modal*/
.dialog-type-lightbox, .dialog-widget-content {
    display: none !important;
}

.mfp-figure button{
    font-size: 2rem;
}


.mfp-bottom-bar{
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 10px;
    min-height: fit-content;
}

/* Mostrar el título en la bottom-bar */
.mfp-title {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    width: 70%;
    position: relative;
    line-height: 3.2rem;
}

.mfp-description {
    display: block;
    font-size: 1.5rem;
    line-height: 1.8rem;
    font-weight: bold;
    color: white;
    width: 100%;
    position: relative;
    word-wrap: break-word;
    margin-top: 0.3rem;
}

.mfp-button {
    display: block;
    font-size: 1.6rem;
    line-height: 1.8rem;
    font-weight: bold;
    width: 100%;
    position: relative;
    word-wrap: break-word;
    margin-top: 0.3rem;
}

.mfp-button a{
    background-color: #fa4307;
    color: white;
}