/* Paleta de colores */
:root {
    --naranja: #f39c12;
    --gris-oscuro: #343a40;
    --gris-fondo:   #0b0c0c;
    --naranja-fondo-cards:#dd7912; 
    
    --blanco: #ffffff;
    --negro: #000000;
    --amarillo-acento: #f58e08;
    --gradiente-marca: #FF9408; /*  linear-gradient(180deg, #F5D020, #F53803); */
    --gris-cards: #1d1c1e;
}


/* // #1d1917 */

@font-face {
  font-family: "blast"; /* Nombre que usarás en CSS */
  src: url("../assets-webp/fonts/Rhythm of the Blast.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Tipografía */
html,
body {
    overflow-x: clip;
}

body {
    font-family: "Quicksand", sans-serif;
    color: var(--gris-oscuro);
    /*  background:  linear-gradient(var(--amarillo-acento), var(--naranja));  */
}

h1,
h2 {
    color: #333;
    /* font-family: "Dancing Script", cursive; */
    /*font-family: "Quicksand", sans-serif; */
    font-family: 'barlow';
    font-size: 35px;
}

h3,
h4,
h5,
h6 {/* 
    font-family: "Quicksand", sans-serif; */
    font-family: 'barlow';
}

span {
    color: #f58e08;
    font-family: 'barlow';
    /* font-family: "Quicksand", sans-serif; */
    font-weight: 500;
   /*  font-size: 1.5 rem; */


   /*  font-family: "Dancing Script", cursive; */
}

.navbar-brand {
    font-family: 'Lobster', cursive;
    /* Script elegante */
}
.noPadding{
    padding-left: 0px;
    padding-right: 0px;
}

.mini{
    width: 24vw;
    height: 33vh;
    padding: 0;
}

.mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}

.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Animaciones */
.fade-in {
    animation: fadeIn ease 2s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*cta home*/

.cta-section {
    position: relative;
    background-image: url('assets-webp/portadas/__1395_podria ser para el encabezado del inicio.webp');
    background-size: cover;
    background-position: center;
    height: 300px;
    color: white;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* capa oscura para contraste */
}

.cta-content {
    position: relative;
    height: 100%;
}

.footer-top {
    background: linear-gradient(to right, #d53c00, #ffbc25);
    color: white;
    padding: 20px 0;
    font-family: 'Dancing script', sans-serif;
}

.footer-top a.btn {
    background-color: #4a6cf7;
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
}

.footer-bottom {
    background-color: #000;
    color: #bbb;
    padding: 20px 0;
}

.footer-bottom a {
    color: #bbb;
    text-decoration: none;
}

.footer-bottom a:hover,
.navbar .nav-link:hover {
    color: #ee7512 !important;
}

.footer-logo {
    max-width: 150px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: transparent;
    color: #ee7512;
    border-color: #ee7512;
}

.footer-copy {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 10px;
}

.btn-naranja {
    display: inline-block;
    background: #ee7512;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    padding: 7px 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: "Barlow", sans-serif;


}

.btn-naranja:hover {
    opacity: 0.8;
    text-decoration: none;
}

.bg-gris-oscuro {
    background-color: var(--gris-fondo);
}

.card-servicio {
    background-color: var(--naranja-fondo-cards);
    border-radius: 8px;
    padding: 1.5rem;
    color: #fff;
    height: 100%;
}

.card-servicio-2{
    background: var(--gris-cards);
}

.card-servicio-img {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 1.75rem;
    color: #fff;
    overflow: hidden;
}

.card-servicio-img::before,
.card-servicio-img-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0.05) 65%, rgba(0,0,0,0) 85%);
    z-index: 0;
}

.card-servicio-img > *,
.card-servicio-img-orange > * {
    position: relative;
    z-index: 1;
}

.card-servicio-img h6,
.card-servicio-img p,
.card-servicio-img-orange h6,
.card-servicio-img-orange p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.card-servicio-img-orange {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 1.75rem;
    color: #fff;
    overflow: hidden;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    grid-auto-rows: minmax(250px, auto);
}

.servicios-grid h6 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.4px;
}

.servicios-grid p {
    font-size: 0.9rem;
    font-weight: 400;
    color: #fff;
}

.icon-circle-sm {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
}

.icon-circle-sm i {
    font-size: 1rem;
}

/* Lista de la tarjeta vertical de servicios incluidos */
.servicio-lista {
    padding: 0.5rem 0.75rem;
}

.servicio-lista li:not(.serv-list-head) {
    opacity: 0.85;
}

.servicio-lista .icon-circle-outline {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    margin-bottom: 0;
}

.servicio-lista .icon-circle-outline i {
    font-size: 1.3rem;
}

.serv-list-head {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--naranja);
    text-align: center;
    width: 100%;
}

.icon-circle-orange,
.icon-circle-outline {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle-orange {
    background: var(--naranja-fondo-cards);
}

.icon-circle-orange i,
.icon-circle-outline i {
    font-size: 1.6rem;
    color: #fff;
}

.icon-circle-outline {
    border: 2px solid #fff;
    margin-bottom: 0.5rem;
}

.grid-row-sm {
    min-height: 240px;
}

.redondo {
    border-radius: 5px;
}


@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }

    .cta-section {
        height: 250px;
    }

    .btn-naranja {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    #redes-sociales {
        padding-top: 20px;
    }

   
/* Footer Style */
    i.red {
        color: #BC0213;
    }

    .gal-container {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    footer {
        font-family: 'Quicksand', sans-serif;
    }

    footer a,
    footer a:hover {
        color: #88C425;
    }

    /* gallery */
    .gallery-title {
        font-size: 36px;
        color: #3F6184;
        text-align: center;
        font-weight: 500;
        margin-bottom: 70px;
    }

    .filter-button {
        font-size: 18px;
        border: 2px solid #3F6184;
        padding: 5px 10px;
        text-align: center;
        color: #3F6184;
        margin-bottom: 30px;
        background: transparent;
    }

    .filter-button:hover,
    .filter-button:focus,
    .filter-button.active {
        color: #ffffff;
        background-color: #3F6184;
        outline: none;
    }

    .gallery_product {
        margin: 0px;
        padding: 0;
        position: relative;
    }

    .noPadding {
        padding: 0 !important;
    }

    .gallery_product img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery_product .img-info {
        position: absolute;
        background: rgba(0, 0, 0, 0.5);
        left: 0;
        right: 0;
        bottom: 0;
        padding: 20px;
        overflow: hidden;
        color: #fff;
        top: 0;
        display: none;
        -webkit-transition: 2s;
        transition: 2s;
    }

    .gallery_product:hover .img-info {
        display: block;
        -webkit-transition: 2s;
        transition: 2s;
    }

}
.servicios-icon {
    color: var(--naranja);
}

.mb-gap {
    margin-bottom: 4.5rem;
}

.cabin-main-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.cabin-btn {
    margin-top: 20px;
}

.cabin-label {
    color: var(--naranja);
}

.caract-text {
    color: var(--gris-oscuro);
}

.gallery-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
  height: 7px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--naranja);
  border-radius: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-scroll a {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.gallery-scroll a img {
  height: 100px;
  width: 150px;
  object-fit: cover;
}

.full-width-bg {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.feature-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.cabin-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  justify-content: flex-start;
}

.cabin-features > .col-4 {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  padding: 0;
}

.cabin-features > .col-4 > .d-flex {
  background: rgba(138, 138, 138, 0.11);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  width: auto;
  justify-content: flex-start;
  white-space: nowrap;
  font-size: 0.9rem;
  gap: 0.35rem !important;
}

.form-control:focus {
  border-color: var(--naranja);
  box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

.contact-item i {
  color: var(--naranja);
  font-size: 1.3rem;
  width: 2rem;
  text-align: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-item strong {
  font-weight: 500;
  color: #555;
}

.contact-item span,
.contact-item a {
  color: var(--gris-oscuro);
  text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus {
  color: var(--gris-oscuro);
  text-decoration: none;
}

.map-banner {
  width: 100%;
  line-height: 0;
}

.map-banner iframe {
  display: block;
}

.form-wrapper {
  max-width: 520px;
}

.form-box {
  background: rgba(138, 138, 138, 0.11);
  border-radius: 8px;
  padding: 3rem;
}

/* ========== ESTILOS PERSONALIZADOS PARA NAVEGACIÓN DE GALERÍAS ========== */

/* Contenedor principal de navegación */
.fancybox-custom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 153, 8, 0.3);
  margin-top: 10px;
  border-radius: 0 0 4px 4px;
}

/* Botones de navegación */
.fancybox-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 2px solid #ff7b00;
  background: linear-gradient(135deg, #ff7b00 0%, #ff9408 100%);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 123, 0, 0.3);
}

.fancybox-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff9408 0%, #ffb333 100%);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(255, 123, 0, 0.5);
}

.fancybox-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.fancybox-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #999 0%, #bbb 100%);
  border-color: #999;
  box-shadow: none;
}

.fancybox-nav-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contador de imágenes */
.fancybox-counter {
  background: rgba(255, 123, 0, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ff7b00;
  min-width: 80px;
  text-align: center;
}

.fancybox-counter .counter-text {
  color: #ff7b00;
  font-weight: 600;
  font-family: "Quicksand", sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Responsivo: En pantallas pequeñas, reducir tamaño de botones */
@media (max-width: 768px) {
  .fancybox-custom-nav {
    gap: 12px;
    padding: 12px 15px;
  }
  
  .fancybox-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  
  .fancybox-counter .counter-text {
    font-size: 12px;
  }
}

/* Responsivo: En pantallas muy pequeñas */
@media (max-width: 480px) {
  .fancybox-custom-nav {
    gap: 8px;
    padding: 10px 10px;
  }
  
  .fancybox-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .fancybox-counter {
    padding: 6px 12px;
    min-width: 70px;
  }
  
  .fancybox-counter .counter-text {
    font-size: 11px;
  }
}

/* Asegurar que los botones de Fancybox original no interfieran */
.fancybox-button {
  z-index: 999;
}

/* ========== FIN ESTILOS NAVEGACIÓN GALERÍAS ========== */

/* ========== DISTRIBUCIÓN RESPONSIVE ========== */
/* Estas reglas preservan el sistema visual y solo reorganizan el layout. */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    padding-top: 0.75rem;
  }

  .navbar .nav-link {
    padding: 0.5rem 0;
  }

  .cabin-main-img,
  .feature-img {
    height: 320px;
  }

  .mb-gap > .row.gx-5 {
    --bs-gutter-x: 2rem;
  }

  #formulario-contacto .row {
    --bs-gutter-x: 2rem;
  }
}

@media (max-width: 767.98px) {
  .navbar .container,
  main.container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .navbar .navbar-collapse {
    padding: 0.75rem 0 0.25rem;
  }

  .page-header .hero-section > img,
  body > header:not(.hero-section) .hero-section > img {
    height: 48vh !important;
    min-height: 260px;
  }

  .page-header .gallery-title,
  body > header:not(.hero-section) .gallery-title {
    font-size: clamp(4.5rem, 23vw, 8rem) !important;
    line-height: 0.85;
    padding: 0 0.75rem;
  }

  main h2 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    overflow-wrap: break-word;
  }

  header.hero-section > .hero-section > img:not(.position-absolute) {
    height: 60vh !important;
    min-height: 340px;
    object-fit: cover;
    object-position: center center;
  }

  header.hero-section > .hero-section > img.position-absolute {
    width: 78% !important;
  }

  main.container.w-100 > section.text-center {
    padding-top: 2.5rem !important;
  }

  main.container.w-100 > section.text-center > div {
    padding: 0 1rem !important;
  }

  main.container.w-100 .row.align-items-center > div[class*="mb-4"],
  main.container.w-100 .row.align-items-center .feature-img {
    margin-bottom: 0 !important;
  }

  main.container.w-100 > .container.my-5 > .row.align-items-center + .row.align-items-center {
    margin-top: 2rem;
  }

  main.container.w-100 .row.align-items-center .p-5 {
    padding: 1rem 1.75rem 1.5rem !important;
  }

.mb-gap {
    margin-bottom: 3rem;
  }

  .mb-gap > .row.align-items-stretch {
    row-gap: 3rem;
  }

  .mb-gap.mb-gap-serv {
    margin-bottom: 0.75rem;
  }

  .serv-sec > .row.align-items-stretch {
    row-gap: 0.5rem;
  }

  .mb-gap > .row.align-items-stretch > [class*="col-"] {
    margin-bottom: 0;
  }

  .mb-gap > .row.gx-5 {
    --bs-gutter-x: 1.5rem;
  }

  .cabin-main-img,
  .feature-img {
    height: 260px;
  }

  .gallery-scroll a img {
    width: 120px;
    height: 80px;
  }

  #formulario-contacto .row {
    --bs-gutter-y: 2.5rem;
  }

  #formulario-contacto .ps-5 {
    padding-left: 0 !important;
  }

  #formulario-contacto .text-muted.w-75 {
    width: 100% !important;
    margin-bottom: 2rem !important;
  }

  .form-box {
    padding: 1.75rem;
  }
}

/* Grilla y galería de la página de servicios */
.gallery-complejo > div {
  display: flex;
}

.gallery-complejo .fancybox {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-complejo .fancybox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .servicios-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .servicios-grid > div {
    grid-column: span 3 !important;
    grid-row: auto !important;
  }

  .servicios-grid > div:nth-child(1),
  .servicios-grid > div:nth-child(6) {
    grid-column: span 6 !important;
  }

  .servicios-grid > div:nth-child(9) .card-servicio {
    height: auto !important;
  }
}

@media (max-width: 767.98px) {
  .servicios-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 0.75rem;
  }

  .servicios-grid > div {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .servicios-grid > div:nth-child(9) .card-servicio {
    height: auto !important;
    min-height: 250px !important;
  }

  .servicios-grid .card-servicio-img,
  .servicios-grid .card-servicio-img-orange {
    min-height: 220px;
  }

  .gallery-complejo .fancybox {
    aspect-ratio: 3 / 2;
  }
}

/* En móvil, los bloques editoriales siempre priorizan el contenido antes de la imagen. */
@media (max-width: 767.98px) {
  main.container.w-100 .row.align-items-center > div:has(> a > .feature-img),
  main.container > section.mb-gap > .row.align-items-stretch > div:has(.cabin-main-img),
  main.container > section.mb-gap > .row.align-items-stretch:not(.gx-5) > div:has(> a > img) {
    order: 2;
  }

  main.container.w-100 .row.align-items-center > div:not(:has(> a > .feature-img)),
  main.container > section.mb-gap > .row.align-items-stretch > div:not(:has(.cabin-main-img)),
  main.container > section.mb-gap > .row.align-items-stretch:not(.gx-5) > div:not(:has(> a > img)) {
    order: 1;
  }
}

/* ToChat/WhatsApp: forzar botón a la derecha (API tiene rightpos=false) */
.chatwith {
  left: unset !important;
  right: var(--xAxis, 10px) !important;
}

.chatwith .chatwith-mainbutton-wrapper {
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
}

.chatwith .chatwith-notification {
  right: 0;
  left: unset;
}
