/********** Template CSS **********/
:root {
    --primary: #ead6ad;
    --secondary: #191C24;
    --light: #6C7293;
    --dark: #120d09;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 40px 0;
    color: var(--light);
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

/* Navbar dropdown toggle effect SOLO en desktop */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
        /* Bootstrap controla el toggle en mobile */
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: all .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block;
        top: 100%;
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile: dejamos que Bootstrap haga collapse automáticamente */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--light);
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
}


  /* Estilos para el carrusel */
  .carousel-container {
      position: relative;
      width: 100%;
      overflow: hidden;
  }

  .carousel-item {
      position: relative;
      height: 100vh;
      min-height: 500px;
  }

  .carousel-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .carousel-caption {
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
  }

  .caption-content {
      max-width: 900px;
      text-align: center;
      padding: 20px;
  }

  

  /* Estilos para el logo - ESTO ES LO IMPORTANTE */
  .logo-barber {
      max-width: 280px !important;
      width: 100%;
      height: auto;
      margin-bottom: 1.5rem;
      filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.5));
  }

  /* Botón personalizado */
  .btn-primary {
      background-color: var(--primary);
      border-color: var(--primary);
      color: var(--dark);
      font-weight: bold;
      transition: all 0.3s;
  }

  .btn-primary:hover {
      background-color: #b8941f;
      border-color: #b8941f;
      transform: scale(1.05);
  }

  /* Controles del carrusel */
  .carousel-control-prev,
  .carousel-control-next {
      width: 50px;
      height: 50px;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 50%;
      top: 50%;
      transform: translateY(-50%);
      opacity: 0.7;
      transition: opacity 0.3s;
  }

  .carousel-control-prev {
      left: 15px;
  }

  .carousel-control-next {
      right: 15px;
  }

  .carousel-control-prev:hover,
  .carousel-control-next:hover {
      opacity: 0.9;
  }

/* Responsive para tablets */
@media (max-width: 992px) {
    .carousel-item {
        height: 80vh;
        min-height: 450px;
    }

    .logo-barber {
        max-width: 220px !important;
        margin-bottom: 1.2rem;
    }

    .display-2 {
        font-size: 3.2rem !important;
        line-height: 1.2;
    }

    h4 {
        font-size: 1.4rem !important;
        margin-bottom: 0.9rem !important;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .carousel-item {
        height: 75vh;
        min-height: 400px;
    }

    /* Ajuste para subir el contenido en móviles */
    .carousel-caption {
        align-items: flex-start;
        padding-top: 60px;
    }

    .caption-content {
        padding: 15px;
        margin-top: 0;
    }

    .logo-barber {
        max-width: 180px !important;
        margin-bottom: 1rem;
    }

    .display-2 {
        font-size: 2.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2;
    }

    h4 {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }

    .btn {
        padding: 10px 24px;
        font-size: 1.2rem;
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 70vh;
        min-height: 380px;
    }

    /* Ajuste adicional para móviles pequeños */
    .carousel-caption {
        padding-top: 40px;
    }

    .logo-barber {
        max-width: 160px !important;
        margin-bottom: 0.8rem;
    }

    .display-2 {
        font-size: 2.7rem !important;
        line-height: 1.2;
        margin-bottom: 0.9rem !important;
    }

    h4 {
        font-size: 1.4rem !important;
        margin-bottom: 0.7rem !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .btn {
        padding: 9px 20px;
        font-size: 1.15rem;
    }
}

/* Para dispositivos muy pequeños */
@media (max-width: 400px) {
    .display-2 {
        font-size: 2.4rem !important;
    }

    h4 {
        font-size: 1.25rem !important;
    }

    .logo-barber {
        max-width: 140px !important;
    }

    .btn {
        font-size: 1.1rem;
        padding: 8px 18px;
    }

    /* Ajuste final para dispositivos muy pequeños */
    .carousel-caption {
        padding-top: 30px;
    }
}










/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--secondary);
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 1.5rem;
    font-size: 15px;
    background: var(--dark);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}
/********** Personalización de colores **********/

:root {
    --heading-color: #e9e9e9;
    /* Color exclusivo para títulos h1 */
    --paragraph-color: #c09c6a;
    /* Color general de párrafos (si lo deseas usar por defecto) */
    --custom-red: #ff4d4f;
    --custom-green: #28a745;
    --custom-blue: #007bff;
}


/*** Estilo exclusivo para h1 ***/
h1 {
    color: var(--heading-color);
}


/*** Estilo general para párrafos (opcional, si quieres un color base) ***/
p {
    color: var(--paragraph-color);
}


/*** Clases personalizadas para textos de párrafos o cualquier texto ***/
.text-custom-red {
    color: var(--custom-red) !important;
}

.text-custom-green {
    color: var(--custom-green) !important;
}

.text-custom-blue {
    color: var(--custom-blue) !important;
}


/********** Sobrescribe estilos primarios de Bootstrap **********/

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    color: #fff !important;
    background-color: #c09c6a !important;
    /* tu color fijo */
    border-color: #e4c27c !important;
}

.btn-outline-primary {
    color: #e4c27c !important;
    border-color: #e4c27c !important;
}

.btn-outline-primary:hover {
    background-color: #e4c27c !important;
    color: #fff !important;
}


/* ==== Sección de cortes (Fades, Grecas, etc.) ==== */

.cut-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5; /* proporción vertical estética */
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.cut-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

/* texto debajo de cada imagen */
.cut-img + p {
  color: #e9e9e9;
  font-size: 0.95rem;
  font-weight: 500;
}

/* evitar scroll lateral en la galería */
.row.g-3 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden;
}

/* en pantallas pequeñas las imágenes cuadradas */
@media (max-width: 767px) {
  .cut-img {
    aspect-ratio: 1 / 1;
  }
}

/* en pantallas grandes (desktop) más estilizadas */
@media (min-width: 992px) {
  .cut-img {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
  }

  .cut-img + p {
    font-size: 1rem;
  }
}



.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  transition: opacity 0.3s;
}

.close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

.nav-btn {
  color: white;
  font-size: 40px;
  position: absolute;
  top: 50%;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }
