/* ================= VARIABLES CONFIGURABLES ================= */
:root {
    /* Foto perfil redimensionable */
    --profile-img-size: 200px; 
    
    /* Configuración del slider de Redes Sociales */
    --icon-size: 45px; 
    --icon-gap: 25px;

    /* Configuración del carrusel de la Galería */
    --gal-thumb-size: 100px; 
    --gal-gap: 15px;         
}


        /* ==========================================
           CONFIGURACIÓN DEL PRELOAD (Modifica aquí)
           ========================================== */
        :root {
            --preload-bg: #121212;         /* Color de fondo oscuro */
            --spinner-color: #3498db;      /* Color del icono de carga */
            --spinner-size: 60px;          /* Tamaño del icono */
            --spinner-speed: 1s;           /* Velocidad de rotación */
            --fade-speed: 0.5s;            /* Tiempo en desaparecer (JS) */
        }

        /* Pantalla completa de carga */
        #preload-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: var(--preload-bg);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999; /* Asegura estar por encima de todo */
            transition: opacity var(--fade-speed) ease, visibility var(--fade-speed);
        }

        /* Icono de carga (Spinner) */
        .loader-icon {
            width: var(--spinner-size);
            height: var(--spinner-size);
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-top-color: var(--spinner-color);
            border-radius: 50%;
            animation: spin var(--spinner-speed) linear infinite;
        }

        /* Animación de rotación */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Previene el scroll del sitio mientras carga */
        body.loading {
            overflow: hidden;
        }

        /* ==========================================
           ESTILOS DE TU WEB (Ejemplo)
           ========================================== */
        body {
            font-family: sans-serif;
            background: #f4f4f4;
            margin: 0;
            padding: 20px;
        }


/* ================= ESTILOS GENERALES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* ================= CONFIGURACIÓN DE FONDO WEB ================= */
.bg-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fondo.png'); /* Enlace a tu imagen de fondo principal */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0px); /* Difuminado graduable del fondo */
    transform: scale(1.05); 
    z-index: -1;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
}

/* ================= CONTENEDOR CENTRAL (TARJETA ENLACES) ================= */
.container {
    background: rgba(255, 255, 255, 0.95); 
    max-width: 450px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    text-align: center;
    padding: 10px 20px;
    backdrop-filter: blur(5px); 
}

/* ================= SECCIÓN CABECERA Y PERFIL ================= */
.profile-img {
    width: var(--profile-img-size);
    height: var(--profile-img-size);
    border-radius: 25px; /* Cuadrado con bordes redondeados */
    object-fit: cover;
    border: 8px solid #000;
    margin-bottom: 20px;
    max-width: 100%; 
}

.title {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0px;
}



/* ================= ENLACES GRANDES Y DESPLEGABLES ================= */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-link, .btn-dropdown-toggle {
    display: block;
    width: 100%;
    padding: 15px;
    background: #742491;
    background: linear-gradient(1deg, rgba(116, 36, 145, 1) 0%, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 1) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 6px rgba(0,123,255,0.15);
    text-align: center;
}

.btn-link:hover, .btn-dropdown-toggle:hover {
    background: #742491;
    transform: translateY(-2px);
}

.dropdown {
    width: 100%;
}

.dropdown-content {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.15s ease-out, 
                visibility 0.2s;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    margin-top: -5px;
    border: 1px solid #e9ecef;
    border-top: none;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    text-align: center;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #e2e6ea;
}

.dropdown.active .dropdown-content {
    max-height: 255px; 
    opacity: 1;
    visibility: visible;
}


/* ================= FORMULARIO DIRECTO A WHATSAPP ================= */
.whatsapp-form-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.whatsapp-form-container h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #222;
    text-align: center;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background-color: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #25d366;
}

.btn-whatsapp-submit {
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-whatsapp-submit:hover {
    background: #128c7e;
}


	/* --- CONTENEDOR PRINCIPAL DEL SLIDER GALERIA  --- */
	
.slider-main-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 60px; /* Colchón vertical para que la elevación de las fotos y sombras no se corten */
  background: transparent;
  box-sizing: border-box;
}

/* Ventana que oculta el desborde con espacio libre para la sombra */
.slider-window {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;   
  margin: -20px 0;   
}

/* Contenedor horizontal con separación más estrecha */
.slider-grid {
  display: flex;
  gap: 12px; /* Espacio estrechado de 20px a 12px para que las fotos ganen tamaño */
  transition: transform 0.3s ease-out;
}

/* Elementos individuales de la galería */
.gallery-item {
  flex: 0 0 calc(25% - 9px); /* Distribución matemática ajustada para la nueva separación estrecha */
  position: relative;
  border-radius: 5px;
  background: transparent;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animación de elevación al pasar el mouse */
.gallery-item:hover {
  transform: translateY(-8px);
}

/* Formato Cuadrado Estricto 1:1 más Grande sin Deformación */
.gallery-item img, .gallery-item video {
  width: 100%;
  aspect-ratio: 1 / 1; 
  object-fit: cover;    
  border-radius: 16px;
  cursor: pointer;
  display: block;
  /* Sombra sutil y compacta pegada al borde */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); 
}

/* --- ICONO DE REPRODUCTOR REDUCIDO Y ESTÉTICO (CENTRADO) --- */
.video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centrado absoluto exacto */
  width: 24px;  /* Reducido de 56px a 44px para una estética más minimalista */
  height: 24px; /* Reducido de 56px a 44px */
  background: rgba(255, 255, 255, 0.25); /* Efecto cristal traslúcido premium */
  backdrop-filter: blur(8px);            
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

/* Triángulo del play escalado proporcionalmente al nuevo círculo */
.video-badge svg {
  width: 15px;  /* Ajustado al nuevo tamaño del círculo */
  height: 15px; 
  fill: #111827; 
  margin-left: 2px; /* Ajuste óptico de centrado de punta */
}

/* Reacción sutil al pasar el cursor */
.gallery-item:hover .video-badge {
  background: rgba(255, 255, 255, 0.40);
  transform: translate(-50%, -50%) scale(1.05);
}

/* --- ADAPTACIÓN PARA MÓVILES --- */
@media (max-width: 900px) {
  .slider-main-wrapper { padding: 20px 0; }
  .slider-window {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .slider-window::-webkit-scrollbar { display: none; }
  .slider-window { -ms-overflow-style: none; scrollbar-width: none; }
  
  .slider-grid { gap: 16px; padding: 0 20px; }
  .gallery-item { flex: 0 0 80%; scroll-snap-align: center; }
  .arrow-btn { display: none !important; }
}

/* --- FLECHAS LATERALES ESCRITORIO (Grises y Modernas) --- */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f3f4f6; 
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 10;
}
.arrow-btn:hover { background-color: #e5e7eb; }
.arrow-btn:active { transform: translateY(-50%) scale(0.95); }
.arrow-btn svg { width: 20px; height: 20px; stroke: #4b5563; } 
.arrow-left { left: 8px; }
.arrow-right { right: 8px; }

/* --- PANTALLA COMPLETA MODAL / LIGHTBOX (Forzado Total) --- */
.lightbox-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.96) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999999 !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; visibility: visible; }

.lightbox-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 16px;
  z-index: 10000000;
}
.control-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.control-btn:hover { background-color: rgba(255, 255, 255, 0.3); }
.control-btn svg { width: 20px; height: 20px; stroke: #ffffff; }

.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 60vh;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: pan-y;
  box-sizing: border-box;
}
.lightbox-stage img, .lightbox-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transition: opacity 0.15s ease;
}

/* --- CARRETE INFERIOR DE MINIATURAS --- */
.thumbs-container {
  width: 100%;
  max-width: 600px;
  margin-top: 30px;
  padding: 0 40px;
  position: relative;
  box-sizing: border-box;
}
.thumbs-window { overflow: hidden; width: 100%; }
.thumbs-wrapper { display: flex; gap: 12px; transition: transform 0.3s ease-out; }

.thumb-item {
  width: 80px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.thumb-item.active { border-color: #ffffff; opacity: 1; transform: scale(1.05); }

.thumb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-arrow:hover { background-color: rgba(255, 255, 255, 0.3); }
.thumb-arrow svg { width: 14px; height: 14px; stroke: #ffffff; }
.thumb-arrow-left { left: 0; }
.thumb-arrow-right { right: 0; }



/* ================= VENTANA PANTALLA COMPLETA (LIGHTBOX) ================= */
.gal-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gal-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.lightbox-main-img {
    max-width: 90%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 30px;
    width: 50px;
    height: 60px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 10px; border-radius: 0 8px 8px 0; }
.lightbox-next { right: 10px; border-radius: 8px 0 0 8px; }

/* CORREGIDO: Pie de miniaturas distribuidas de manera flexible y libre de scrollbar horizontal */
.lightbox-footer {
    margin-top: 25px;
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px;
    padding: 0 20px;
}

.lightbox-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.4;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.lightbox-thumb.active-thumb {
    opacity: 1;
    border-color: #007bff;
    transform: scale(1.1);
}

/* ================= PIE DE MARCA ================= */
.brand-footer {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

.brand-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

/* ================= GALERIA + VIDEO  ================= */
 
 /* Contenedor principal sin fondo */
  .native-slider-scope {
    background: transparent !important;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0;
  }

  /* Carrusel Infinito con aceleración por hardware */
  .native-slider-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 5px;
    scrollbar-width: none; /* Oculta barra en Firefox */
  }
  .native-slider-track::-webkit-scrollbar {
    display: none; /* Oculta barra en Chrome/Safari */
  }

  /* Miniaturas 1:1 Configurables (Cambiar 100px aquí) */
  .native-slider-item {
    scroll-snap-align: start;
    width: 100px !important;
    height: 100px !important;
    flex: 0 0 100px;
    border-radius: 8px; /* Redondez suave */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra */
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* Hover nativo */
  .native-slider-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    z-index: 5;
  }

  .native-slider-item img, 
  .native-slider-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  /* Flechas Grises de Navegación */
  .native-slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }
  .native-nav-btn {
    background: #e0e0e0;
    border: none;
    color: #666;
    font-size: 18px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .native-nav-btn:hover { background: #cccccc; }

  /* Ventana Modal de Expansión Nativa HTML5 (Forzada a Pantalla Completa) */
  .native-modal {
    border: none;
    background: transparent;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
  }
  .native-modal[open] { display: flex; }

  /* Fondo oscuro nativo del navegador */
  .native-modal::backdrop {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(2px);
  }

  /* Contenedor multimedia expandido */
  .native-modal-media-box {
    max-width: 90%;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .native-modal-media-box img,
  .native-modal-media-box video {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
  }

  /* Título inferior */
  .native-modal-caption {
    color: #ffffff;
    font-family: sans-serif;
    font-size: 18px;
    margin: 15px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  }

  /* Carrusel inferior de miniaturas restantes */
  .native-modal-thumbs {
    display: flex;
    gap: 10px;
    max-width: 90%;
    overflow-x: auto;
    padding: 5px;
  }
  .native-thumb-preview {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    object-fit: cover;
    border: 5px solid transparent;
  }
  .native-thumb-preview.active {
    opacity: 1;
    border-color: #000000;
    transform: scale(1.05);
  }

/* Botón cerrar flotante moderno (Ajuste visual milimétrico) */
.native-modal-close {
  /* Posicionamiento */
  position: absolute;
  top: 50px;
  right: 50px;
  
  /* Dimensiones y Caja */
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Estilo Visual */
  background: #000000 ;
  color: #1a1a1a;
  font-size: 18px;
  font-family: system-ui, -apple-system, sans-serif;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  /* Eliminar bordes */
  border: none !important;
  outline: none !important;
  line-height: 0;
  user-select: none;
  
  /* TRUCO DE AJUSTE MANUAL */
  padding-top: -4px;    /* Empuja la X un poco hacia abajo */
  padding-left: 0px;   /* Por defecto, cámbialo a 1px si la ves muy a la derecha */
  
  /* Interacción */
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Efecto Hover */
.native-modal-close:hover {
  background: blue;
  color: #000000;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Efecto Active */
.native-modal-close:active {
  transform: scale(0.95);
}
/* ================= SLIDER REDES SOCIALES  ================= */



      /* --- CONFIGURACIÓN DE VARIABLES (Modifica estos valores) --- */
      :host {
        --avatar-size: 70px;       /* Tamaño del círculo de la foto */
        --name-size: 1.1rem;       /* Tamaño de letra del nombre */
        --text-size: 0.95rem;      /* Tamaño de letra del comentario */
        --stars-size: 1.2rem;      /* Tamaño de las estrellas */
        --font-family: system-ui, -apple-system, sans-serif;
      }

      /* --- ESTILOS ENCAPSULADOS --- */
      .slider-container {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 20px auto;
        overflow: hidden;
        font-family: var(--font-family);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      }
      .slides-wrapper {
        display: flex;
        width: 100%;
      }
      .review-slide {
        min-width: 100%;
        box-sizing: border-box;
        padding: 40px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .avatar {
        width: var(--avatar-size);
        height: var(--avatar-size);
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 12px;
        border: 2px solid #eaeaea;
      }
      .name {
        font-size: var(--name-size);
        font-weight: bold;
        color: #333333;
        margin: 0 0 4px 0;
      }
      .stars {
        font-size: var(--stars-size);
        color: #ffca28;
        margin-bottom: 15px;
        line-height: 1;
      }
      .comment {
        font-size: var(--text-size);
        color: #666666;
        line-height: 1.5;
        margin: 0;
        font-style: italic;
      }
      .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.05);
        color: #333;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: background 0.2s;
        user-select: none;
        z-index: 10;
      }
      .nav-btn:hover {
        background: rgba(0, 0, 0, 0.15);
      }
      .prev { left: 15px; }
      .next { right: 15px; }

/* ================= SLIDER   ================= */

  /* Contenedor principal sin fondo */
  .native-slider-scope {
    background: transparent !important;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0;
  }

  /* Carrusel Infinito con aceleración por hardware */
  .native-slider-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 5px;
    scrollbar-width: none; /* Oculta barra en Firefox */
  }
  .native-slider-track::-webkit-scrollbar {
    display: none; /* Oculta barra en Chrome/Safari */
  }

  /* Miniaturas 1:1 Configurables (Cambiar 100px aquí) */
  .native-slider-item {
    scroll-snap-align: start;
    width: 100px !important;
    height: 100px !important;
    flex: 0 0 100px;
    border-radius: 8px; /* Redondez suave */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra */
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* Hover nativo */
  .native-slider-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    z-index: 5;
  }

  .native-slider-item img, 
  .native-slider-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  /* Flechas Grises de Navegación */
  .native-slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }
  .native-nav-btn {
    background: #e0e0e0;
    border: none;
    color: #666;
    font-size: 18px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .native-nav-btn:hover { background: #cccccc; }

  /* Ventana Modal de Expansión Nativa HTML5 (Forzada a Pantalla Completa) */
  .native-modal {
    border: none;
    background: transparent;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
  }
  .native-modal[open] { display: flex; }

  /* Fondo oscuro nativo del navegador */
  .native-modal::backdrop {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(2px);
  }

  /* Contenedor multimedia expandido */
  .native-modal-media-box {
    max-width: 90%;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .native-modal-media-box img,
  .native-modal-media-box video {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
  }

  /* Título inferior */
  .native-modal-caption {
    color: #ffffff;
    font-family: sans-serif;
    font-size: 18px;
    margin: 15px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  }

  /* Carrusel inferior de miniaturas restantes */
  .native-modal-thumbs {
    display: flex;
    gap: 10px;
    max-width: 90%;
    overflow-x: auto;
    padding: 5px;
  }
  .native-thumb-preview {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    object-fit: cover;
    border: 5px solid transparent;
  }
  .native-thumb-preview.active {
    opacity: 1;
    border-color: #000000;
    transform: scale(1.05);
  }

/* Botón cerrar flotante moderno (Ajuste visual milimétrico) */
.native-modal-close {
  /* Posicionamiento */
  position: absolute;
  top: 50px;
  right: 50px;
  
  /* Dimensiones y Caja */
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Estilo Visual */
  background: #000000 ;
  color: #1a1a1a;
  font-size: 18px;
  font-family: system-ui, -apple-system, sans-serif;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  /* Eliminar bordes */
  border: none !important;
  outline: none !important;
  line-height: 0;
  user-select: none;
  
  /* TRUCO DE AJUSTE MANUAL */
  padding-top: -4px;    /* Empuja la X un poco hacia abajo */
  padding-left: 0px;   /* Por defecto, cámbialo a 1px si la ves muy a la derecha */
  
  /* Interacción */
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Efecto Hover */
.native-modal-close:hover {
  background: blue;
  color: #000000;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Efecto Active */
.native-modal-close:active {
  transform: scale(0.95);
}

  
/* PIE DE MARCAEfecto Active */
    .brand-footer {
        text-align: center;
        padding: 20px;
        width: 100%;
    }
    .footer-logo {
        width: 100%;
        /* Cambia 150px por el tamaño real de tu logo en pantallas grandes */
        max-width: 150px; 
        height: auto;
        display: inline-block;
        margin-bottom: 10px;
    }

/* ================= SLIDER reviews  ================= */

      /* --- SLIDER REVIEWS --- */
      :host {
        --avatar-size: 70px;       /* Tamaño del círculo de la foto */
        --name-size: 1.1rem;       /* Tamaño de letra del nombre */
        --text-size: 0.95rem;      /* Tamaño de letra del comentario */
        --stars-size: 1.2rem;      /* Tamaño de las estrellas */
        --font-family: system-ui, -apple-system, sans-serif;
      }

      /* --- ESTILOS ENCAPSULADOS --- */
      .slider-container {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 20px auto;
        overflow: hidden;
        font-family: var(--font-family);
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      }
      .slides-wrapper {
        display: flex;
        width: 100%;
      }
      .review-slide {
        min-width: 100%;
        box-sizing: border-box;
        padding: 40px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .avatar {
        width: var(--avatar-size);
        height: var(--avatar-size);
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 12px;
        border: 2px solid #eaeaea;
      }
      .name {
        font-size: var(--name-size);
        font-weight: bold;
        color: #333333;
        margin: 0 0 4px 0;
      }
      .stars {
        font-size: var(--stars-size);
        color: #ffca28;
        margin-bottom: 15px;
        line-height: 1;
      }
      .comment {
        font-size: var(--text-size);
        color: #666666;
        line-height: 1.5;
        margin: 0;
        font-style: italic;
      }
      .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.05);
        color: #333;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: background 0.2s;
        user-select: none;
        z-index: 10;
      }
      .nav-btn:hover {
        background: rgba(0, 0, 0, 0.15);
      }
      .prev { left: 15px; }
      .next { right: 15px; }

      /* --- ^^^SLIDER REVIEWS^^^ --- */
	  
	  

:root {
    /* 🛠️ CONFIGURACIÓN DE MÁRGENES (Modifícalos a tu gusto) */
    --new-margin-top: 5px;      
    --new-margin-bottom: 10px;   
    --new-icon-size: 50px;       
    --new-icon-gap: 20px;        
    
    /* Sombra elegante de los iconos */
    --new-icon-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
    --new-icon-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.new-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px; 
    margin: var(--new-margin-top) auto var(--new-margin-bottom) auto;
    padding: 0 35px;
    box-sizing: border-box;
}

/* CONTENEDOR TÁCTIL NATIVO (Sincronización perfecta con el dedo) */
.new-slider-container {
    overflow-x: auto; /* Habilita el scroll con el dedo en celular */
    overflow-y: hidden;
    width: 100%;
    background: transparent !important;
    padding: 15px 0;
    scroll-behavior: smooth; /* Logra que las flechas se deslicen suavemente */
    -webkit-overflow-scrolling: touch; /* Suavidad táctil inercial premium en iPhone/iOS */
    /* Evita que los iconos queden cortados por la mitad al soltar el dedo */
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; /* Oculta barra en Firefox */
}

/* Oculta la barra de scroll en Chrome, Safari y Edge */
.new-slider-container::-webkit-scrollbar {
    display: none;
}

.new-slider-track {
    display: flex;
    gap: var(--new-icon-gap);
    width: max-content;
    background: transparent !important;
}

.new-slider-item {
    flex: 0 0 var(--new-icon-size);
    width: var(--new-icon-size);
    height: var(--new-icon-size);
    background: transparent !important;
    scroll-snap-align: start; /* Anclaje magnético al soltar el dedo */
}

.new-slider-item a {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent !important;
}

.new-slider-item img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border-radius: 0%; 
    filter: drop-shadow(var(--new-icon-shadow));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.new-slider-item img:hover {
    transform: scale(1.25);
    filter: drop-shadow(var(--new-icon-shadow-hover));
}

/* BOTONES PREMIUM DE ALTO CONTRASTE */
.new-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.06); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1); 
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.new-slider-btn:hover { 
    background: #ffffff; 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.08); 
}

/* Flechas de vector CSS de alto contraste */
.new-slider-btn::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #333333; 
    border-right: 2px solid #333333;
    transition: border-color 0.3s ease;
}

.new-slider-btn:hover::after { border-color: #000000; }

.new-slider-wrapper .prev-btn { left: -5px; }
.new-slider-wrapper .prev-btn::after {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.new-slider-wrapper .next-btn { right: -5px; }
.new-slider-wrapper .next-btn::after {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* ============================================================
   ESTILOS DE LA EXCEPCIÓN: MENOS DE 5 ICONOS ORIGINALES
   ============================================================ */
.new-slider-track.is-centered {
    width: 100% !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.new-slider-wrapper.no-controls .new-slider-btn {
    display: none !important;
}

/* Bloquea por completo el deslizamiento si los iconos están centrados */
.new-slider-wrapper.no-controls .new-slider-container {
    overflow-x: hidden !important;
}



/* ============================================================
   ESTILOS QR
   ============================================================ */
/* Posicionamiento del icono mini */
.custom-qr-replacement-container {
    position: absolute;
    top: 10px; 
    right: 10px;
    z-index: 999;

}

.custom-mini-trigger {
    width: 32px;
    height: 32px;
    cursor: pointer;    
	border-radius: 5px;
	border: 3px solid #000;
}

/* Pantalla oscura de fondo con transición suave */
.custom-isolated-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000000 !important;
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Estado inicial: Oculto y transparente */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Estado activo: Suave desvanecimiento al mostrarse */
.custom-isolated-overlay.custom-active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Forzar compatibilidad nativa de pantalla completa */
.custom-isolated-overlay:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000000 !important;
}

/* Contenedor e Imagen Grande */
.custom-modal-image-wrapper {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-solo-fullscreen-image {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}

/* Botón de Cierre Adaptado para Imagen */
.custom-close-btn-elegant {
    position: absolute !important;
    top: 25px !important;
    right: 25px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000000 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

/* Estilo para la imagen interna del botón */
.custom-close-icon-img {
    width: 24px; /* Ajusta el tamaño de tu icono aquí */
    height: 24px;
    object-fit: contain;
    pointer-events: none; /* Evita interferencias con el click del botón */
}

.custom-close-btn-elegant:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05);
}


