/*GALERIA.HTML*/
    /* ==========================
         Título general de la página
         ========================== */
    .casa-gallery-main-title {
      text-align: center;
      margin-top: 2.5rem;
      margin-bottom: 1.5rem;
      font-weight: 700;
      font-size: 2rem;
      color: #111;
    }

    /* ==========================
         Carruseles de galerías CASA
         ========================== */

    .casa-gallery-section {
      padding: 1rem 1rem 3rem 1rem;
    }

    .casa-gallery-section h4.u-text-1 {
      text-align: center !important;
      margin-bottom: 1.5rem;
    }

    /* Contenedor principal del carrusel:
         sin fondo ni borde, solo imagen + controles */
    .casa-carousel {
      position: relative;
      max-width: 900px;
      margin: 0 auto 2.5rem auto;
      padding: 0;
      background: transparent;
      border-radius: 0;
      box-shadow: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    /* Marco de la imagen */
    .casa-carousel-frame {
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      border-radius: 0.9rem;
      background: transparent;
      position: relative;
    }

    /* Imagen */
    .casa-carousel-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      opacity: 1;
      transition: opacity 0.4s ease;
    }

    /* Botones prev/next sobre la imagen */
    .casa-carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 2.6rem;
      height: 2.6rem;
      border-radius: 999px;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
      background: rgba(0, 0, 0, 0.35);
      color: #fff;
      backdrop-filter: blur(2px);
      transition: background 0.2s ease, box-shadow 0.2s ease,
        transform 0.1s ease;
      z-index: 2;
    }

    .casa-carousel-btn.prev {
      left: 0.6rem;
    }

    .casa-carousel-btn.next {
      right: 0.6rem;
    }

    .casa-carousel-btn:hover {
      background: rgba(0, 0, 0, 0.55);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    }

    .casa-carousel-btn:active {
      transform: translateY(-50%) scale(0.96);
    }

    /* Contador en esquina inferior derecha de la imagen */
    .casa-carousel-counter {
      position: absolute;
      bottom: 0.5rem;
      right: 0.7rem;
      padding: 0.2rem 0.55rem;
      border-radius: 0.75rem;
      background: rgba(0, 0, 0, 0.6);
      color: #f5f5f5;
      font-size: 0.8rem;
      font-family: Arial, sans-serif;
      z-index: 2;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .casa-carousel-frame {
        aspect-ratio: 4 / 3;
      }

      .casa-carousel-btn {
        width: 2.3rem;
        height: 2.3rem;
        font-size: 1.4rem;
      }
    }

    @media (max-width: 576px) {
      .casa-carousel-frame {
        aspect-ratio: 4 / 3;
      }
    }



    /*animación de galerias*/

  /* Fondo tipo cine */
  #sec-galeria {
    min-height: calc(100vh - 260px);
    padding: 3rem 0 4rem;
    background: radial-gradient(circle at center, #10162b 0%, #02040a 100%);
    color: #fff;
  }

  /* TITULOS visibles */
  .casa-gallery-main-title,
  .gallery-subtitle,
  .gallery-subsubtitle {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  }

  .casa-gallery-main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 2.2rem;
  }

  .gallery-subtitle {
    font-size: 1.4rem;
    margin-top: .5rem;
    font-weight: 700;
  }

  .gallery-subsubtitle {
    font-size: 1.1rem;
    opacity: .9;
  }

  /* Separador vibrante */
  .gallery-divider {
    width: 140px;
    height: 3px;
    border-radius: 999px;
    margin: .5rem auto 2rem;
    background: linear-gradient(90deg, #7ae0ff, #ffd394);
  }

  /* Imagen */
  .galeria-img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 30px 65px rgba(0,0,0,.6);
    background: #000;
  }

  /* Wrapper de imagen */
  .gallery-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
  }

  /* BOTONES SUPER VISIBLES */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 3.4rem;
    height: 3.4rem;
    background-size: 50% 50%;
    filter: drop-shadow(0 0 5px rgba(0,0,0,.5));
    transition: 0.25s ease-in-out;
  }

  /* Hover brillante */
  .carousel-control-prev-icon:hover,
  .carousel-control-next-icon:hover {
    background-color: white;
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
  }

  /* Reposición de botones */
  .carousel-control-prev,
  .carousel-control-next {
    width: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-control-prev {
    left: -3.3rem;
  }

  .carousel-control-next {
    right: -3.3rem;
  }

  /* Móviles: botones más cerca */
  @media (max-width: 992px) {
    .carousel-control-prev { left: .5rem; }
    .carousel-control-next { right: .5rem; }
  }

  /* Caption */
  .gallery-caption {
    margin-top: .7rem;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    opacity: .85;
  }


  /*línea divisora de footer*/

  :root{
    --g-bg: #0b0f14;
    --g-accent: #8fd3ff;
  }

  /* Fondo general */
  html, body{
    margin: 0 !important;
    padding: 0 !important;
    background: var(--g-bg) !important;
  }

  main{
    background: var(--g-bg) !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
  }

  #sec-galeria{
    background: var(--g-bg) !important;
    margin: 0 !important;
    padding-bottom: 60px; /* espacio antes de la línea */
  }

  /* ===== LÍNEA DIVISORIA CLARA Y VISIBLE ===== */
  main::after{
    content: "";
    display: block;
    width: 70%;
    max-width: 900px;
    height: 3px;               /* MÁS GRUESA */
    margin: 0 auto 25px auto;  /* separación del footer */
    background: linear-gradient(
      90deg,
      transparent,
      var(--g-accent),
      transparent
    );
    opacity: 1;                /* SIN transparencia */
    box-shadow:
      0 0 6px rgba(143,211,255,.65),
      0 0 14px rgba(143,211,255,.35); /* glow suave */
  }

  /* Footer sin franja blanca */
  footer, .footer, #footer{
    margin-top: 0 !important;
  }
