
:root {
  --brand-dark: #000000;
  --brand-blue: #0852a1;
  --brand-accent: #ff9800;
  --text-light: #ffffff;
  --search-bg: #1a1a1a;
  --search-border: #333;
  --nav-hover: #444;
  --dropdown-bg: #222;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Corta cualquier cosa que se salga de ancho */
    width: 100%;
    position: relative;
}





/* HOME */
a {
  text-decoration: none;
  color: inherit;
}



.listado_destinos a.btn {
  display: inline-block;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}
.categorias-db {
  max-width: 600px;
  margin: 0 auto;
}

.lista_item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.3s ease;
}

.lista_item:hover {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.12);
}

.lista_item > div {
  font-size: 1.1rem;
  color: #333;
}

.acciones a.btn {
  min-width: 70px;
  font-size: 0.9rem;
}

.acciones a.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.acciones a.btn-warning {
  background-color: #ffc107;
  color: #212529;
}

.acciones a.btn-warning:hover {
  background-color: #e0a800;
  color: #212529;
}



/* === HERO === */


.resaltado {
  color: var(--brand-accent);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}



/* === TITULOS DE SECCION  === */

.titulo-seccion {
  font-size: 2.8rem;
  font-weight: 800; /* Un poco más grueso para imponer presencia */
  color: var(--brand-dark); /* Color NEGRO (definido en tu :root) */
  text-align: center;
  margin: 60px 0 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  padding: 0 1rem;
  position: relative;
  cursor: default;
  /* Quitamos el background-clip y el color transparente que lo hacían invisible */
  background: none; 
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

/* Efecto Hover sutil en el texto */
.titulo-seccion:hover {
  color: var(--brand-blue); /* Al pasar el mouse se pone AZUL */
  transition: color 0.3s ease;
}

/* Subrayado animado (Ahora Naranja para resaltar) */
.titulo-seccion::after {
  content: '';
  display: block;
  margin: 15px auto 0; /* Un poco más separado del texto */
  width: 60px;
  height: 4px; /* Un poco más grueso */
  background-color: var(--brand-accent); /* Color NARANJA */
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

/* Al pasar el mouse, la línea crece */
.titulo-seccion:hover::after {
  width: 100px;
  background-color: var(--brand-blue); /* La línea también cambia a azul */
}

/* --- EXCEPCIÓN: Para secciones oscuras --- */
/* Si tienes alguna sección con fondo negro (como Ofertas), usamos esta regla para volverlo blanco */
.bg-dark .titulo-seccion,
.ofertas-section .titulo-seccion, 
.nosotros-section .titulo-seccion {
  color: #ffffff !important;
}

.bg-dark .titulo-seccion::after,
.ofertas-section .titulo-seccion::after,
.nosotros-section .titulo-seccion::after {
  background-color: #ffffff; /* Línea blanca en fondos oscuros */
}

/* Animación de brillo suave en el texto */
@keyframes brillo-suave {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Animación pulsante para el subrayado */
@keyframes subrayado-pulsante {
  0%, 100% {
    width: 60px;
    opacity: 0.7;
  }
  50% {
    width: 80px;
    opacity: 1;
  }
}






/* === OFERTAS === */
.ofertas-section {
  position: relative;
  height: 130vh;
  padding: 40px 20px;
  background: url('view/imgs/ofertasback.png') center center no-repeat;
  background-size: cover;
  box-shadow: 0 8px 24px rgba(34, 34, 34, 0.342);
  border-top: 3px solid var(--brand-dark);
  border-bottom: 3px solid var(--brand-dark);
  z-index: 0; /* Para que el ::before se superponga correctamente */
}

.ofertas-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* oscuro con transparencia */
  z-index: 1;
}

.ofertas-section > * {
  position: relative;
  z-index: 2; /* para estar por encima del ::before */
}


.productos-oferta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.producto-oferta {
  background-color: white;
  color: #000000;
  border-radius: 15px;
  width: 250px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.producto-oferta:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(204, 108, 0, 0.4);
}
.producto-oferta img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  padding: 0;
}
.btn-oferta {
  background-color: var(--brand-blue);
  color: #fff;
  padding: 10px 24px;
  border-radius: 40px;
  display: inline-block;
  font-weight: bold;
  margin-top: 10px;
}
.btn-oferta:hover {
  background-color: #0a1f4a;
}




/* === PRODUCTOS DESTACADOS SLIDER === */
.productos-slider-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0 40px; /* Espacio para la sombra al hacer hover */
}

.productos-slider {
  display: flex;
  gap: 25px; /* Más espacio entre tarjetas */
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  will-change: transform;
}

/* --- TARJETA --- */
.product-card {
  flex: 0 0 280px;
  background-color: #ffffff;
  border-radius: 20px; /* Bordes más redondeados */
  padding: 15px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  text-decoration: none;
  border: 1px solid transparent; /* Preparado para hover */
  position: relative;
  white-space: normal;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Sombra suave y difusa */
  border-color: #f0f0f0;
}

/* --- IMAGEN Y WRAPPER --- */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  background-color: #f6f6f6; /* Fondo gris premium estilo estudio */
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.product-image {
  width: 90%; /* La imagen no toca los bordes, queda más elegante */
  height: 90%;
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05)); /* Sombra a la imagen misma */
}

.product-card:hover .product-image {
  transform: scale(1.08); /* Zoom sutil */
}

/* --- BADGE DESTACADO --- */
.badge-destacado {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- OVERLAY HOVER --- */
.hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .hover-overlay {
  opacity: 1;
}

.btn-quick-view {
  background-color: #ffffff;
  color: var(--brand-dark);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.3s ease, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card:hover .btn-quick-view {
  transform: translateY(0);
}

/* --- INFO DEL PRODUCTO --- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.product-marca {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
  /* Limitar a 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left; /* Alineado a la izquierda es más moderno */
}

.product-meta {
  margin-top: auto; /* Empuja el precio al fondo */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f9f9f9;
  padding-top: 10px;
}

.preciohome {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-blue); /* Color azul marca */
  margin: 0;
}

.ver-mas-txt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.product-card:hover .ver-mas-txt {
  opacity: 1;
  transform: translateX(0);
}
.slider-container {
  position: relative; 
  z-index: 1;
}

/* 2. Botones flotantes absolutos */
.scroll-btn {
  position: absolute; /* ¡ESTO FALTABA! */
  top: 50%;
  transform: translateY(-50%); /* Centrado vertical perfecto */
  z-index: 10;
  
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex; /* Para centrar la flechita adentro del círculo */
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0; /* Ocultas por defecto en PC */
}

/* Aparecen al pasar el mouse por el slider */
.slider-container:hover .scroll-btn {
  opacity: 1;
}

.scroll-btn:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1); /* Mantiene el centrado al crecer */
}

/* Posiciones exactas */
.scroll-btn.left { 
  left: 20px; 
}

.scroll-btn.right { 
  right: 20px; 
}

.hero-cinematic {
  position: relative;
  height: 95vh; /* Ocupa casi toda la pantalla */
  width: 100%;
  background-image: url('view/imgs/techminimalist1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto Parallax en PC */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); /* Tipografía Gigante Responsiva */
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

/* Efecto de texto contorneado (Outline) */
.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.8);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Botón de Cristal (Glassmorphism) */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}

.btn-glass:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* =========================================
   SECCIONES EDITORIALES (Reemplaza a Seccion Doble)
   ========================================= */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% - 50% */
  height: 600px; /* Altura fija impactante */
  width: 100%;
}

.editorial-card {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.1); /* Línea sutil separadora */
}

/* Capa oscura para que se lea el texto */
.editorial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  transition: background 0.5s ease;
  z-index: 1;
}

.editorial-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Texto abajo */
  align-items: flex-start; /* Alineado a la izquierda */
  padding: 60px;
  color: #fff;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Tipografía Editorial */
.editorial-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-accent);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.1s; /* Delay */
}

.editorial-card h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

.editorial-card p {
  font-size: 1.1rem;
  color: #ccc;
  margin-top: 10px;
  max-width: 400px;
}

.btn-link-underline {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 2px solid var(--brand-accent);
  padding-bottom: 5px;
  opacity: 0.8;
  transition: all 0.3s;
}

/* --- ANIMACIONES HOVER --- */
.editorial-card:hover .editorial-overlay {
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 100%);
}

/* Efecto Zoom en la imagen de fondo */
.editorial-card {
  transition: background-size 2s ease; /* Truco para el zoom sin mover el div */
}
/* Nota: background-size transition es costosa, mejor usar un ::before si querés performance extrema, 
   pero para simplificar, usaremos un scale en el hover si fuera img tag. 
   Como es bg-image, el efecto parallax o fixed ya da movimiento. 
*/

.editorial-card:hover .editorial-content {
  transform: translateY(-10px);
}

.editorial-card:hover .editorial-tag {
  opacity: 1;
  transform: translateY(0);
}

.editorial-card:hover .btn-link-underline {
  color: var(--brand-accent);
  opacity: 1;
}

/* =========================================
   BANNER MANIFIESTO (Minimalista)
   ========================================= */
.manifesto-banner {
  background-color: #000; /* Fondo negro absoluto */
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.manifesto-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.5px;
  max-width: 900px;
  margin: 0 auto;
}

.text-highlight {
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ANIMACIÓN DE ENTRADA */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}






/* ===  SECCION DOBLE === */


.productos-scroll {
  scrollbar-color: orange transparent;
  scrollbar-width: thin;

}

/* Para Chrome, Edge y Safari */
.productos-scroll::-webkit-scrollbar {
  height: 6px; 
  width: auto;
  max-width: 80%; 
  margin: 0 auto;
}

.productos-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.productos-scroll::-webkit-scrollbar-thumb {
  background-color: orange;
  border-radius: 10px;
}




.btn-categorias {
  display: inline-block;
  margin: 20px auto 0;
  background-color: var(--brand-accent); /* color de fondo */
  color: #fff; /* color del texto */
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(150, 149, 149, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none; /* si hay borde transparente o ninguno */
}
.detalle-variantes {
  margin: 60px auto 40px;
  max-width: 900px;
  background: #111; /* Fondo oscuro */
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.15);
  color: #fff;
}

.tabla-variantes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  color: #fff;
}

.tabla-variantes th,
.tabla-variantes td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 1rem;
}

.tabla-variantes th {
  background-color: #1a1a1a;
  font-weight: 700;
  color: #ff8c00; /* Acento naranja como en tu branding */
}







/* Diseño responsivo para pantallas pequeñas */
@media (max-width: 775px) {

    .nav-item.dropdown .dropdown-menu{
        flex-direction: column;
        width: 300px;
    }
    .dropdown-submenu:hover{
        background-color: var(--brand-blue);
    }


.hero-cinematic {
    background-attachment: scroll; /* Desactivar parallax en celular para performance */
    height: 80vh;
  }
  
  .editorial-grid {
    grid-template-columns: 1fr; /* Una columna */
    height: auto;
  }
  
  .editorial-card {
    height: 450px; /* Altura fija por tarjeta en celular */
  }
  
  .editorial-content {
    padding: 30px;
  }
  
  .editorial-card h2 {
    font-size: 2.5rem;
  }
  
  .slider-container {
  position: relative;
}
.productos-scroll {
  position: relative; /* Necesario para que los botones se posicionen respecto a este */
  display: flex;
  gap: 16px;
  padding: 0 10px;
  overflow-x: auto;
  z-index: 0; /* opcional */
}

.product-card {
    flex: 0 0 160px; /* Ancho fijo ideal para ver 2.5 productos */
    min-width: 160px;
  }
  .image-wrapper {
    height: 160px;
  }

  .product-image {
    height: 180px; /* Ajustamos la altura de la imagen */
    object-fit: cover;
  }

  .product-marca {
    font-size: 0.9rem;
    margin: 10px 0 5px 0;
    text-align: center;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
  }
.ver-mas-txt {
    display: none; 
  }
  .preciohome {
    font-size: 1.1rem; /* Un pelín más grande para leerse bien */
    font-weight: 800;
    color: var(--brand-blue); /* Volvemos a usar tu azul, NO black */
    text-align: center;
    margin: 0;
    margin-bottom: 5px;
    
    /* ESTA ES LA CLAVE PARA QUE NO SE BAJE EL NUMERO: */
    white-space: nowrap; /* Fuerza a que el $ y el numero estén en la misma linea */
    
    /* Si el precio es muy largo, que no rompa la tarjeta: */
    overflow: hidden; 
    text-overflow: ellipsis;
  }
  
.scroll-btn {
        display: none !important;
    }
    
    .productos-slider-viewport {
        overflow-x: auto; /* Permite deslizar */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Suavidad en iPhone */
        scroll-behavior: smooth;
        padding-bottom: 20px; /* Espacio para no cortar sombras */
        margin-right: -20px; /* Truco para que llegue al borde derecho */
        padding-right: 20px; /* Compensación del margen */
    }
    .product-meta {
    justify-content: center; /* Centra el precio */
    padding-top: 5px;
  }



  
}


