/* =========================
   1. VARIABLES & BASE
   ========================= */
:root {
  --bg: #ffffff;
  --text: #0b0f17;
  --muted: #5c667a;
  --line: #e7eaf0;
  --soft: #f6f7fb;
  --blue: #2563eb;
  --blue2: #6366f1;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(10, 20, 40, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* ESTO ES LO NUEVO QUE PEGASTE: */
html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.35;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* =========================
   2. HEADER & NAV
   ========================= */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand .name { font-weight: 800; letter-spacing: .4px; }

.nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.nav a { font-size: 14px; color: #121826; padding: 8px 10px; border-radius: 12px; }
.nav a:hover { background: var(--soft); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
}

/* --- CÓDIGO NUEVO PARA EL CARRITO --- */

/* 1. Hacemos que el botón sea el "mapa" para ubicar el número */
.header-actions .icon-btn {
    position: relative; 
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. El globito flota ENCIMA del botón */
.badge-dot {
    position: absolute;   /* Flotar */
    top: -5px;            /* Subir */
    right: -5px;          /* Derecha */

    background-color: #0071e3; 
    color: white;

    font-size: 11px;
    font-weight: 700;

    min-width: 18px;
    height: 18px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid white; 
    z-index: 10;
    padding: 0 4px;
}

/* Si el carrito está vacío (sin número), ocultamos el círculo */
.badge-dot:empty {
    display: none;
}

/* =========================
   3. HERO (PORTADA)
   ========================= */
.hero { padding: 36px 0 10px; }

.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 24px; align-items: center;
}

.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
.hero-title { margin: 10px 0 8px; font-size: 44px; line-height: 1.05; }
.hero-sub { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 12px; color: var(--muted); font-size: 13px; }

.hero-media .hero-img-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f4f6fb, #ffffff);
  border-radius: 28px;
  min-height: 260px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}

/* =========================
   4. COMPONENTES (BOTONES, SECCIONES)
   ========================= */
.btn {
  border-radius: 14px; padding: 10px 14px; font-weight: 800;
  border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:active { transform: scale(.98); }

.btn-blue { background: linear-gradient(90deg, var(--blue) 0%, var(--blue2) 100%); color: #fff; }
.btn-blue:hover { filter: brightness(1.04); }

.btn-ghost { background: #fff; border-color: rgba(15, 23, 42, .12); color: #0f172a; }
.btn-ghost:hover { background: rgba(15, 23, 42, .03); }

.btn-gray { background: #f1f5f9; border-color: rgba(15, 23, 42, .10); color: #0f172a; }
.btn-gray:hover { filter: brightness(.98); }

.section { padding: 26px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin: 0; font-size: 22px; }
.section-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* =========================
   5. CATEGORÍAS & GRID PRODUCTOS
   ========================= */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat {
  border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px;
  transition: box-shadow .15s ease, transform .15s ease; cursor: pointer;
}
.cat:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.cat-name { font-weight: 800; }
.cat-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }

.card {
  border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px); box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  border-color: rgba(99, 102, 241, 0.25);
}

.card-img { display: block; position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
.card-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 14px; }

/* =========================================
   BADGE "DESTACADO" (VERDE VIBRANTE - SIN TAPAR)
   ========================================= */
.badge {
    position: relative; /* MAGIA: Deja de estar flotando y pasa a ocupar espacio real */
    width: fit-content; /* El cartelito se ajusta exactamente al tamaño de la palabra */
    margin: 12px 0 0 12px; /* Margen para separarlo del borde superior e izquierdo */
    
    /* El diseño verde que te gustó */
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.4);
}

.card-body { padding: 14px 14px 16px; }
.card-title { font-weight: 800; letter-spacing: -0.02em; color: #0f172a; margin: 2px 0 8px; }
.price { font-weight: 800; color: #0f172a; margin: 10px 0 12px; }
.price .muted { font-weight: 600; color: #64748b; margin-left: 6px; }

.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }

/* Utilidades para ocultar/mostrar elementos */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* =========================
   6. RESPONSIVE (MÓVIL)
   ========================= */
@media (max-width: 980px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  /* Utilidades */
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  
  /* Container & Header */
  .container { padding-left: 16px; padding-right: 16px; }
  
  /* Hero */
  .hero { padding: 16px 0 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-media .hero-img-wrap {
    border-radius: 26px;
    box-shadow: 0 18px 55px rgba(10, 20, 40, .14);
    background: radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #f3f5ff 45%, #eef2ff 100%);
  }
  .hero-img { height: 360px !important; object-fit: contain !important; border-radius: 18px; }
  
  .hero-copy { text-align: center; }
  .hero-title { font-size: 34px; margin: 10px 0 8px; letter-spacing: -0.02em; }
  .hero-sub { font-size: 14px; margin: 0 0 10px; }
  .hero-actions { justify-content: center; gap: 10px; }
  .hero-actions .btn { border-radius: 999px; padding: 12px 16px; }

  /* Categorías & Grilla */
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  /* Tarjetas */
  .card-actions { grid-template-columns: 1fr; }
  .card-actions .btn { width: 100%; }
}
/* =========================
   MENÚ DESPLEGABLE (CORRECCIÓN FINAL)
   ========================= */

/* 1. El contenedor del botón Apple */
.dropdown {
  position: relative;
  display: inline-flex; /* Alineado con los otros botones */
  align-items: center;
  height: 100%;
}

/* 2. El botón que dice "Apple" */
.nav-link {
  font-size: 14px;
  color: #121826;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600; /* Un poco más negrita */
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover {
  background: var(--soft);
}

/* 3. La caja oculta (El menú desplegable) */
.dropdown-content {
  display: none; /* ¡ESTO ES LO IMPORTANTE! Oculto por defecto */
  position: absolute;
  top: 100%; /* Justo debajo del botón */
  left: 0;
  background-color: #ffffff;
  min-width: 200px; /* Ancho mínimo para que no quede apretado */
  box-shadow: 0 10px 40px rgba(0,0,0,0.15); /* Sombra para que flote */
  border-radius: 12px;
  border: 1px solid #e7eaf0;
  z-index: 1000; /* Asegura que flote POR ENCIMA de todo */
  padding: 8px 0;
  margin-top: 10px;
}

/* 4. Los enlaces de adentro (iPhone, Mac, etc) */
.dropdown-content a {
  color: #0b0f17;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  text-align: left; /* Alineado a la izquierda */
}

.dropdown-content a:hover {
  background-color: #f6f7fb; /* Color gris suave al pasar el mouse */
  color: #2563eb; /* Azul al pasar el mouse */
}

/* 5. LA MAGIA: Mostrar menú al pasar el mouse sobre "Apple" */
.dropdown:hover .dropdown-content {
  display: block;
}
/* =========================
   ESTILO SAMSUNG (SHOWCASE)
   ========================= */

/* Cada bloque gigante */
.showcase-section {
  position: relative;
  width: 100%;
  height: 550px; /* Altura fija para que se vea imponente */
  overflow: hidden;
  margin-bottom: 20px; /* Espacio entre banners */
  background: #f4f6fb; /* Color de fondo por si no carga la imagen */
}

/* En móviles, que sea un poco más alto para que quepa todo vertical */
@media (max-width: 768px) {
  .showcase-section {
    height: 650px; 
    border-radius: 0; /* En móvil se ve mejor borde a borde */
  }
}

/* La imagen de fondo */
.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformar */
  object-position: center;
  display: block;
}

/* El texto flotante encima de la imagen */
.showcase-content {
  position: absolute;
  top: 10%; /* Ajusta esto para subir/bajar el texto */
  left: 0;
  width: 100%;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
}

/* Títulos y textos */
.showcase-title {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 10px;
  color: #000; /* Cambiar a #fff si la foto es oscura */
}

.showcase-sub {
  font-size: 18px;
  margin-bottom: 24px;
  color: #333;
}

/* Botón redondeado estilo Samsung */
.btn-round {
  border-radius: 999px; /* Píldora completa */
  padding: 12px 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Opción para texto oscuro sobre foto clara */
.text-dark .showcase-title { color: #000; }
.text-dark .showcase-sub { color: #444; }

/* Opción para texto blanco sobre foto oscura */
.text-light .showcase-title { color: #fff; }
.text-light .showcase-sub { color: #ddd; }
/* =========================
   MENÚ LATERAL (SIDE DRAWER)
   ========================= */

/* Fondo oscuro detrás del menú */
.side-drawer-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  opacity: 0; visibility: hidden; /* Oculto */
  transition: .3s ease;
  backdrop-filter: blur(2px);
}

/* El cajón blanco */
.side-drawer {
  position: fixed; top: 0; right: 0; /* Pegado a la derecha */
  width: 280px; height: 100vh;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%); /* Empujado hacia afuera de la pantalla */
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 25px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
}

/* CLASE ACTIVA: Cuando el menú se abre */
.menu-open .side-drawer-overlay { opacity: 1; visibility: visible; }
.menu-open .side-drawer { transform: translateX(0); }

/* Estilos de adentro del menú */
.drawer-header {
  padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer-title { font-weight: 800; font-size: 18px; }
.close-btn {
  background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text);
}

.drawer-nav {
  padding: 20px;
  overflow-y: auto; /* Scroll si el menú es muy largo */
}

.drawer-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f4f4f4;
}
.drawer-nav a:hover { color: var(--blue); padding-left: 5px; transition: .2s; }

.drawer-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin: 20px 0 10px; font-weight: 800;
}
.drawer-divider { height: 20px; }
/* =========================
   ACORDEÓN DEL MENÚ
   ========================= */

/* El botón principal (Ej: Apple, Consolas) */
.accordion {
  background-color: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 14px 0;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  font-weight: 800; /* Negrita para diferenciarlo */
  border-bottom: 1px solid #f4f4f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Flechita que gira */
.accordion::after {
  content: '+'; /* Símbolo más */
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
}

.accordion.active::after {
  content: '-'; /* Símbolo menos cuando está abierto */
}

/* El panel oculto (donde están los links) */
.panel {
  padding: 0 10px;
  background-color: #f9fafb; /* Un gris muy clarito para diferenciar */
  max-height: 0; /* Oculto por defecto */
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-radius: 8px;
}

/* Links dentro del panel */
.panel a {
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: block;
  color: #444;
}
.panel a:last-child { border-bottom: none; }

/* Links normales (Accesorios, Sonido...) */
.drawer-link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid #f4f4f4;
}/* =========================
   CONTROLES DE CANTIDAD (+/-)
   ========================= */
.qty-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 4px;
  width: 100%; /* Ocupa todo el ancho disponible */
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
  background: #fff;
  color: var(--blue);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}

.qty-btn:hover {
  background: var(--blue);
  color: #fff;
}

.qty-val {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  min-width: 20px;
  text-align: center;
}
/* Oculta el carrito duplicado que genera el JS automáticamente */
body > .icon-btn[href="./cart.html"] {
    display: none !important;
}
.category-pill {
  background: #f5f5f7;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.category-pill:hover {
  background: #e8e8ed;
  border-color: #d2d2d7;
}
/* --- CATEGORÍAS ESTILO SAMSUNG --- */

.samsung-grid {
    display: grid;
    /* Esto crea 2 columnas exactas en celular, como la captura */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; /* Espacio entre tarjetas */
}

/* En PC que sean 4 columnas */
@media (min-width: 768px) {
    .samsung-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cat-card {
    background: white;
    border-radius: 16px; /* Bordes bien redondeados */
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: #1d1d1f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Sombrita muy suave */
    transition: transform 0.2s, box-shadow 0.2s;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cat-card:active {
    transform: scale(0.98); /* Efecto de pulsación al tocar */
}

.cat-img {
    width: 120px;  /* Tamaño controlado de la imagen */
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.cat-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.cat-sub {
    font-size: 12px;
    color: #0071e3; /* Texto azul chiquito como "Hasta 16% OFF" */
    margin-top: 4px;
    font-weight: 500;
}




.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    cursor: zoom-in; /* Indica que se puede ampliar */
    transition: transform 0.3s ease;
}

/* Botón Cerrar (X) */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

/* Flechas */
.nav-prev, .nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.nav-prev { left: 10px; }
.nav-next { right: 10px; }

.nav-prev:hover, .nav-next:hover { color: #25d366; } /* Color XTECH al pasar el mouse */

/* ==========================================
   BOTÓN DE WHATSAPP FLOTANTE (VERSIÓN ÚNICA Y LIMPIA)
   ========================================== */
.btn-whatsapp-flotante {
    position: fixed !important;
    bottom: 80px !important; 
    right: 25px !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #25d366 !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    z-index: 2147483647 !important; /* El número máximo permitido por los navegadores */
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.1) !important;
}

/* Contenedor principal que actúa como ventana */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa todo el alto de la pantalla */
    overflow: hidden; /* Oculta las imágenes que están hacia los costados */
}

/* La "cinta" que contiene todas las imágenes */
.slider-track {
    display: flex;
    width: 400%; /* 4 imágenes = 400% */
    height: 100%;
    transition: transform 0.8s ease-in-out; /* El deslizamiento suave */
}

/* Cada banner individual */
.slider-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Estilos compartidos para las imágenes de fondo */
.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Clases de utilidad para las imágenes (opacidad y posición) */
.opacity-85 { opacity: 0.85; }
.obj-top { object-position: center top; }

/* Contenedor de los textos y botones por encima de la imagen */
.showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

/* Acomodo de contenido específico para el Banner 1 */
.actions-bottom {
    margin-top: auto;
    margin-bottom: 60px; /* Deja espacio para los puntitos */
    justify-content: center;
}

/* Acomodo para Banners 2, 3 y 4 */
.content-spaced {
    justify-content: space-between;
}

.text-center { text-align: center; }

/* Tipografía y Sombras limpias */
.showcase-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

.showcase-sub {
    margin-top: 5px;
    font-size: 20px;
    font-weight: 700;
}

.title-shadow { color: #002347; text-shadow: 0 0 25px rgba(255,255,255,1); }
.sub-shadow { color: #ffffff; text-shadow: 0 3px 6px rgba(0,0,0,0.9); }

.title-shadow-dark { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.sub-shadow-dark { color: #e0e0e0; text-shadow: 0 2px 4px rgba(0,0,0,0.8); font-size: 19px; font-weight: 600; margin-bottom: 0;}

/* Botones (Sombras y contornos) */
.btn-shadow { box-shadow: 0 5px 15px rgba(0, 113, 227, 0.4); }
.btn-shadow-light { color: rgb(10, 3, 48); background-color: rgb(255, 255, 255); border-color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-outline { padding: 12px 35px; font-size: 16px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); margin-bottom: 40px;}

/* -------------------------------------- */
/* UI del Slider: Puntitos y Barra Fina  */
/* -------------------------------------- */

/* =========================================
   CSS DEL SLIDER PRINCIPAL
   ========================================= */

/* 1. Contenedor principal: Mantiene la proporción exacta de tu imagen de 1080x1350 (4:5) */
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Esto evita que la imagen se estire o se vea gigante */
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slider-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Imágenes de fondo */
.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.opacity-85 { opacity: 0.85; }
.obj-top { object-position: center top; }

/* Contenedor de textos y botones */
.showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

/* Acomodo de los botones bien separados del fondo para que no choquen con WhatsApp ni la barra */
.actions-bottom {
    margin-top: auto;
    margin-bottom: 90px; 
    justify-content: center;
}

.content-spaced {
    justify-content: space-between;
    padding-bottom: 90px;
}

.text-center { text-align: center; }

/* Tipografías y Sombras */
.showcase-title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; }
.showcase-sub { margin-top: 5px; font-size: 20px; font-weight: 700; }
.title-shadow { color: #002347; text-shadow: 0 0 25px rgba(255,255,255,1); }
.sub-shadow { color: #ffffff; text-shadow: 0 3px 6px rgba(0,0,0,0.9); }
.title-shadow-dark { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.sub-shadow-dark { color: #e0e0e0; text-shadow: 0 2px 4px rgba(0,0,0,0.8); font-size: 19px; font-weight: 600; margin-bottom: 0;}

/* Botones (Sombras y contornos) */
.btn-shadow { box-shadow: 0 5px 15px rgba(0, 113, 227, 0.4); }
.btn-shadow-light { color: rgb(10, 3, 48); background-color: rgb(255, 255, 255); border-color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-outline { padding: 12px 35px; font-size: 16px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); margin-bottom: 40px;}

/* -------------------------------------- */
/* UI DEL SLIDER: PUNTITOS Y BARRA        */
/* -------------------------------------- */

/* 1. Contenedor principal: Respeta la proporción exacta de tu imagen (4:5) */
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; 
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slider-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Imágenes de fondo */
.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.opacity-85 { opacity: 0.85; }
.obj-top { object-position: center top; }

/* Contenedor de textos y botones */
.showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

/* 2. Botones ajustados para que no choquen con la UI ni WhatsApp */
.actions-bottom {
    margin-top: auto;
    margin-bottom: 70px; /* Espacio exacto para esquivar los puntitos */
    justify-content: center;
}

.content-spaced {
    justify-content: space-between;
    padding-bottom: 70px;
}

.text-center { text-align: center; }

/* Tipografías y Sombras */
.showcase-title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; }
.showcase-sub { margin-top: 5px; font-size: 20px; font-weight: 700; }
.title-shadow { color: #002347; text-shadow: 0 0 25px rgba(255,255,255,1); }
.sub-shadow { color: #ffffff; text-shadow: 0 3px 6px rgba(0,0,0,0.9); }
.title-shadow-dark { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.sub-shadow-dark { color: #e0e0e0; text-shadow: 0 2px 4px rgba(0,0,0,0.8); font-size: 19px; font-weight: 600; margin-bottom: 0;}

/* Botones */
.btn-shadow { box-shadow: 0 5px 15px rgba(0, 113, 227, 0.4); }
.btn-shadow-light { color: rgb(10, 3, 48); background-color: rgb(255, 255, 255); border-color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-outline { padding: 12px 35px; font-size: 16px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); margin-bottom: 40px;}

/* -------------------------------------- */
/* 3. UI DEL SLIDER A PRUEBA DE FALLOS    */
/* -------------------------------------- */

/* =========================================
   CONTENEDOR ULTRA-COMPACTO (MÁXIMA ESTÉTICA)
   ========================================= */

/* Alto fijo para que no sea "tan vertical" y las categorías queden visibles de una */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura perfecta de banner mobile, compacta y prolija */
    overflow: hidden;
    background-color: #000;
}

.slider-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slider-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Forzamos a que la imagen se adapte al contenedor sin estirarse ni deformarse */
.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Centra y recorta el exceso de la foto de forma inteligente */
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.opacity-85 { opacity: 0.85; }
.obj-top { object-position: center top; }

/* =========================================
   SECCIÓN DE BOTONES Y TEXTOS (ESTRUCTURA LIMPIA)
   ========================================= */

.showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Títulos arriba, botones abajo */
    padding: 25px 20px 70px 20px; /* Los 70px de abajo protegen el espacio de la barra */
    box-sizing: border-box;
}

/* Alineación de los botones funcionales */
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.text-center { text-align: center; }

/* Tipografías y Sombras */
.showcase-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; }
.showcase-sub { margin-top: 5px; font-size: 18px; font-weight: 600; }
.title-shadow { color: #002347; text-shadow: 0 0 20px rgba(255,255,255,0.8); }
.sub-shadow { color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.title-shadow-dark { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.sub-shadow-dark { color: #e0e0e0; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Estilos de botones sin mugre en el HTML */
.btn-shadow { box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3); }
.btn-shadow-light { color: rgb(10, 3, 48); background-color: #fff; border-color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-outline { padding: 10px 25px; font-size: 15px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); }

/* =========================================
   CONTENEDOR ULTRA-COMPACTO (MÁXIMA ESTÉTICA)
   ========================================= */

/* Alto fijo para que no sea "tan vertical" y las categorías queden visibles de una */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura perfecta de banner mobile, compacta y prolija */
    overflow: hidden;
    background-color: #000;
}

.slider-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slider-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Forzamos a que la imagen se adapte al contenedor sin estirarse ni deformarse */
.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Centra y recorta el exceso de la foto de forma inteligente */
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.opacity-85 { opacity: 0.85; }
.obj-top { object-position: center top; }

/* =========================================
   SECCIÓN DE BOTONES Y TEXTOS
   ========================================= */

.showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Títulos arriba, botones abajo */
    padding: 25px 20px 70px 20px; /* Los 70px de abajo protegen el espacio de la barra */
    box-sizing: border-box;
}

/* Alineación de los botones funcionales para que no se choquen */
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.text-center { text-align: center; }

/* Tipografías y Sombras */
.showcase-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; }
.showcase-sub { margin-top: 5px; font-size: 18px; font-weight: 600; }
.title-shadow { color: #002347; text-shadow: 0 0 20px rgba(255,255,255,0.8); }
.sub-shadow { color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.title-shadow-dark { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.sub-shadow-dark { color: #e0e0e0; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Estilos de botones (limpios y ordenados) */
.btn-shadow { box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3); }
.btn-shadow-light { color: rgb(10, 3, 48); background-color: #fff; border-color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-outline { padding: 10px 25px; font-size: 15px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); }

/* =========================================
   BARRA Y PUNTITOS (FIJOS ABAJO DEL TODO)
   ========================================= */
.slider-ui {
    position: absolute;
    bottom: 15px; /* Anclado seguro al ras del borde inferior de la imagen */
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.slider-progress-bar {
    width: 75%;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #0071e3;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 20px;
    border-radius: 3px;
    background: #ffffff;
}

/* =========================================
   CARRUSEL INFINITO (FIX iPHONE - DOBLE PISTA)
   ========================================= */
.reviews-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
    /* Máscara de difuminado a los bordes */
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
}

.reviews-track {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%; /* Cada pista ocupa el 100% de las fotos que tiene dentro */
    animation: scroll-reviews 20s linear infinite; /* Animación más corta porque recorre la mitad de la distancia */
}

.img-auto {
    height: 320px; 
    /* Le ponemos un ancho aproximado fijo para que Safari no colapse mientras carga */
    width: 180px; 
    object-fit: cover;
    border-radius: 14px;
    margin: 0 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    flex-shrink: 0; /* Para que las fotos no se aplasten */
}

@keyframes scroll-reviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .img-auto {
        height: 240px; 
        width: 140px; /* Ancho ajustado para celulares */
        margin: 0 6px;
    }
    .reviews-track {
        animation: scroll-reviews 15s linear infinite; /* Va un pelín más rápido en celu */
    }
}