/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; height: auto; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #333; background: #fff; overflow-x: hidden; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-section { padding: 120px 0 80px; background: #fff; }
.page-section h1 {
  font-size: 2.4rem; margin-bottom: 14px; color: #111;
}



.page-section h1::after {
  content: ""; display: block; width: 90px; height: 4px; background: #3a8f28; margin: 14px 0 24px; border-radius: 3px;
}
.page-section h2 {
  font-size: 1.6rem; margin-top: 28px; margin-bottom: 10px; color: #111;
}

.valores-section p {
  margin-bottom: 10px;
}

.catalogos{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    padding:20px 0 40px;
}

.marcas-dropdown{
  max-height: 400px;
  overflow-y: auto;
}
.ringo-icon{
  font-size: 60px;
  color: #c0392b;
  margin-bottom: 15px;
}
/* ===== TABLA ===== */
.tabla-codigos th { 
  background:#1a1a2e; 
  color:#fff; 
  padding:8px 12px; 
  text-align:left; 
  white-space: nowrap; /* 👈 agregá esto */
  /* ===== FIN TABLA ===== */

}
/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  min-height: 82px; padding: 10px 0 12px;
  
}
.nav-container {
  max-width: 1600px;
  margin: 0 auto; 
  padding: 0 20px;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.8px;
}
.nav-logo img {
  width: 55px;
  height: auto;
  display: block;
}
.nav-logo span {
  line-height: 1;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  overflow: visible;
}
.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 6px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
}
.nav-search input {
  border: none;
  outline: none;
  background: #fff;
  width: 260px;
  min-width: 120px;
  font-size: 0.95rem;
  color: #333;
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.nav-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
}
.nav-search button:hover { background: #a93226; }
.nav-quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 30px;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-quote-button:hover {
  background: #a93226;
  transform: translateY(-1px);
}

.lang-selector {
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang-selector:hover {
  border-color: #c0392b;
  background: #f9f9f9;
}
.lang-selector:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 480px;
  max-height: 650px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
  margin-top: 8px;
  z-index: 1600;
  padding: 10px 0;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #999 #f0f0f0;
}
.search-results.active { display: block; }
.search-results a {
  display: block;
  padding: 10px 14px;
  color: #333;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.search-results a:hover { background: #f7f7f7; }
.search-results p {
  padding: 10px 14px;
  color: #666;
  font-size: 0.88rem;
}

.nav-menu > li {
  flex: 0 0 auto;
  white-space: nowrap;
  position: relative;
}
.has-dropdown {
  position: relative;
  overflow: visible;
}
.nav-menu > li > a {
  padding: 8px 8px; 
  font-size: 0.84rem; 
  font-weight: 600; 
  color: #333;
  border-radius: 4px; 
  transition: background 0.2s, color 0.2s;
  display: flex; 
  align-items: center; 
  gap: 4px;
}
.nav-menu > li > a:hover,
.nav-menu > li.has-dropdown:hover > a { background: #c0392b; color: #fff; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 320px; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 8px 0; z-index: 1450;
  max-height: 95vh; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #999 #f0f0f0;

}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block; padding: 8px 18px; font-size: 0.87rem; color: #333; transition: background 0.15s;
}
.dropdown li a:hover { background: #f5f5f5; color: #c0392b; }
.dropdown-title {
  padding: 8px 18px 4px; font-size: 0.75rem; font-weight: 700;
  color: #c0392b; text-transform: uppercase; letter-spacing: 0.5px;
  border-top: 1px solid #f0f0f0; margin-top: 4px;
}
.dropdown li:first-child .dropdown-title, .dropdown-title:first-child { border-top: none; margin-top: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px;
}
.hamburger span { display: block; width: 26px; height: 3px; background: #333; border-radius: 3px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== SIDEBAR ===== */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1100;
}
.sidebar-overlay.active { display: block; }
.sidebar {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
  background: #1a1a2e; z-index: 1200;
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: 20px 0 40px;
}
.sidebar.open { right: 0; }
.sidebar-close {
  background: none; border: none; color: #fff; font-size: 1.4rem;
  cursor: pointer; padding: 5px 20px; display: block; margin-left: auto;
}
.sidebar-logo {
  display: block; text-align: center; font-size: 1.3rem; font-weight: 700;
  color: #c0392b; padding: 15px 20px 25px;
  border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px;
}
.sidebar-nav ul { padding: 0 10px; }
.sidebar-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.sidebar-nav > ul > li > a,
.sidebar-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 12px; color: #eee; font-size: 0.95rem;
  font-weight: 500; background: none; border: none; cursor: pointer;
  text-align: left; transition: color 0.2s;
}
.sidebar-nav > ul > li > a:hover, .sidebar-toggle:hover { color: #c0392b; }
.sidebar-sub { display: none; background: rgba(255,255,255,0.05); border-radius: 6px; margin: 0 0 8px; padding: 5px 0; }
.sidebar-sub.open { display: block; }
.sidebar-sub li a { display: block; padding: 9px 20px; color: #ccc; font-size: 0.88rem; transition: color 0.2s; }
.sidebar-sub li a:hover { color: #c0392b; }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; margin-top: 65px; overflow: hidden; height: 480px; }
.slides-wrapper { display: flex; height: 100%; transition: transform 0.5s ease; }
.slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.slide-content { text-align: center; color: #fff; padding: 20px; }
.slide-content h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; margin-bottom: 15px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.slide-content p { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-bottom: 25px; opacity: 0.9; }
.btn-hero {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; background: #c0392b;
  color: #fff; border-radius: 30px; font-weight: 600; font-size: 1rem;
  max-width: fit-content; box-sizing: border-box;
  transition: background 0.2s, transform 0.2s;
}
.btn-hero:hover { background: #a93226; transform: translateY(-2px); }
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 1700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}
.floating-whatsapp i {
  line-height: 1;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  font-size: 2.5rem; width: 50px; height: 50px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10;
}
.slider-btn:hover { background: rgba(192,57,43,0.8); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.dot.active { background: #fff; }

/* ===== ACERCA DE (index) ===== */
.acerca-section {
  padding: 60px 0 40px;
  background: #fff;
  display: grid;
  place-items: center;
}
.acerca-section .container {
  width: 100%;
  max-width: 860px;
}
#servicios,
#contacto {
  scroll-margin-top: 90px;
}
#contacto {
  position: relative;
  padding-top: 90px;
  margin-top: -90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}
.contact-card h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
  color: #1a1a2e;
}
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #444;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: #333;
  background: #fafafa;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192,57,43,0.08);
}
.contact-info p {
  margin-bottom: 16px;
  color: #555;
  line-height: 1.8;
}
.contact-info a {
  color: #c0392b;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.acerca-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  max-width: 700px;
  width: 100%;

/* ===== SEARCH RESULTS STYLES ===== */
.search-hero { padding-top: 150px !important; padding-bottom: 12px; }
.results-divider { height: 1px; background: #f0f0f0; margin: 10px 0 18px; }
.results-count { color: #6b6b6b; font-size: 0.95rem; margin-top: 6px; }
.results-list { display: grid; gap: 14px; }
.result-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid #e5e5e5; border-radius: 12px; padding: 20px; background: #fff; box-shadow: 0 6px 18px rgba(20,20,30,0.04); transition: transform 0.18s ease, box-shadow 0.18s ease; min-height: auto; height: auto; max-height: none; overflow: visible; }
.result-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,20,30,0.08); }
.result-image { width: 84px; height: 84px; flex-shrink: 0; border-radius: 8px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.result-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-content { flex: 1; min-width: 0; overflow: visible; }
.brand-tag { display: inline-block; background: #f3f3f3; color: #333; padding: 4px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; }
.result-title { font-weight: 700; color: #111; font-size: 1.03rem; margin-bottom: 6px; overflow-wrap: break-word; word-break: break-word; line-height: 1.3; }
.result-desc { color: #666; font-size: 0.92rem; overflow-wrap: break-word; word-break: break-word; line-height: 1.4; }
.result-snippet { color: #666; font-size: 0.95rem; }
.result-meta { color: #999; font-size: 0.86rem; }
.result-link { color: inherit; text-decoration: none; display: block; }

@media (max-width: 700px) {
  .nav-search input { width: 140px; }
  .result-card { padding: 16px; }
  .result-image { width: 64px; height: 64px; }
  .search-hero { padding-top: 48px !important; }
}
  margin: 0 auto;
}
.acerca-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  width: 100%;
  max-width: 720px;
}
.acerca-texto h2 { font-size: 2rem; font-weight: 700; color: #1a1a2e; margin-bottom: 15px; }
.acerca-texto .sep { width: 50px; height: 3px; background: #c0392b; margin-bottom: 20px; border-radius: 2px; }
.acerca-texto p { font-size: 1rem; line-height: 1.8; color: #555; margin-bottom: 15px; }
.acerca-imagen {
  background: #f0f0f0;
  border-radius: 12px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.acerca-imagen i { font-size: 5rem; color: #ccc; }

/* Marcas */
.marcas-section { padding: 50px 0; background: #f8f8f8; }
.marcas-section h2 { text-align: center; font-size: 1.5rem; font-weight: 700; color: #1a1a2e; margin-bottom: 35px; }
.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.marca-card {
  background: #fff; border-radius: 10px; padding: 25px 15px;
  text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.marca-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.marca-card i { font-size: 2.5rem; color: #c0392b; margin-bottom: 10px; display: block; }
.marca-card span { font-weight: 700; font-size: 0.95rem; color: #1a1a2e; }

/* Servicios */
.servicios-section { padding: 80px 0 80px; background: #1a1a2e; }
.servicios-section h2 { text-align: center; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 35px; }
.servicios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.servicio-card { text-align: center; padding: 25px 15px 40px; }
.servicio-card i { font-size: 2.5rem; color: #c0392b; margin-bottom: 12px; display: block; }
.servicio-card h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.servicio-card p { color: #aaa; font-size: 0.88rem; line-height: 1.6; }

/* ===== PÁGINA DE CATEGORÍA ===== */
.page-hero {
  margin-top: 65px; background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  padding: 60px 20px; text-align: center; color: #fff;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 1.1rem; opacity: 0.85; }

.categoria-section { padding: 60px 0; }
.categoria-section h2 {
  font-size: 1.3rem; font-weight: 700; color: #1a1a2e;
  padding-bottom: 10px; margin-bottom: 25px;
  border-bottom: 3px solid #c0392b; display: inline-block;
}
.productos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; margin-bottom: 50px; }
.producto-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s;
}
.producto-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.14); }
.producto-card-img {
  background: #f5f5f5; height: 180px; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.producto-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.producto-card-img i { font-size: 3.5rem; color: #ddd; }
.producto-card-body { padding: 18px; }
.producto-card-body h3 { font-size: 0.95rem; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.producto-card-body p { font-size: 0.85rem; color: #666; line-height: 1.5; }
.producto-card-body .tag {
  display: inline-block; margin-top: 10px; padding: 3px 10px;
  background: #fef0ee; color: #c0392b; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
}
.coming-soon{
    max-width:800px;
    margin:50px auto;
    padding:60px 40px;
    text-align:center;
    background:#fff;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.coming-soon i.bi-book{
    font-size:70px;
    color:#2980b9;
    display:block;
    margin-bottom:20px;
}

.coming-soon h2{
    color:#1a1a2e;
    margin-bottom:15px;
    font-size:38px;
}

.coming-soon p{
    color:#666;
    font-size:18px;
    margin-bottom:10px;
    line-height:1.6;
}
/* ===== SLIDER RINGO ===== */
.ringo-slide {
  aspect-ratio: 957 / 239;
  background-size: 100% 100% !important;
}

/* ===== FIN SLIDER RINGO ===== */


/* ===== FOOTER ===== */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c0392b;
  display: inline-block;
}

.footer-col p { margin-bottom: 10px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.footer-col a { color: #ccc; transition: color 0.2s; }
.footer-col a:hover { color: #c0392b; }
.footer-col i { color: #c0392b; font-size: 1rem; }
.copyright { background: #111; color: #888; text-align: center; padding: 14px; font-size: 0.85rem; }


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .marcas-grid { grid-template-columns: repeat(3, 1fr); }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-search { display: none; }
  .nav-quote-button { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-container { padding: 10px 16px; gap: 8px; }
  .nav-logo img { width: 50px; }
  .hero-slider { height: 360px; }
  .acerca-grid { grid-template-columns: 1fr; gap: 30px; }
  .acerca-imagen { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 600px) {
  .nav-logo img { width: 46px; }
  .hero-slider { height: 280px; }
  .marcas-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .slider-btn { width: 38px; height: 38px; font-size: 1.8rem; }
}

/* ===== MODAL DETALLE PRODUCTO ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 2000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: #fff; border-radius: 12px; max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid #eee;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-header h2 { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; }
.modal-close {
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: #666; line-height: 1; padding: 4px 8px; border-radius: 4px;
  transition: background 0.2s;
}
.modal-close:hover { background: #f0f0f0; color: #c0392b; }

.modal-body {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 0;
}
.modal-img {
  background: #f5f5f5; display: flex; align-items: center;
  justify-content: center; padding: 30px; min-height: 280px;
}
.modal-img img { max-width: 100%; max-height: 300px; object-fit: contain; }
.modal-img i { font-size: 5rem; color: #ddd; }

.modal-info { padding: 28px 28px 28px 24px; }
.modal-info .sep-azul { width: 50px; height: 3px; background: #2980b9; margin: 10px 0 16px; border-radius: 2px; }
.modal-info .sep-gris { height: 1px; background: #e0e0e0; margin: 12px 0; }
.modal-info .label-det { font-weight: 700; font-size: 0.9rem; color: #555; margin-bottom: 4px; }

.modal-info ul.det-list { list-style: disc; padding-left: 18px; margin-bottom: 12px; }
.modal-info ul.det-list li { font-size: 0.9rem; line-height: 1.7; color: #444; margin-bottom: 4px; }

.modal-info .specs-list { list-style: none; padding: 0; }
.modal-info .specs-list li {
  padding: 5px 0; font-size: 0.9rem; color: #444;
  border-bottom: 1px solid #f0f0f0; display: flex; gap: 6px;
}
.modal-info .specs-list li strong { color: #1a1a2e; min-width: 110px; }

.modal-tag {
  display: inline-block; padding: 3px 12px; background: #fef0ee;
  color: #c0392b; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 10px;
}

/* Hacer las tarjetas clickeables */
.producto-card { cursor: pointer; }

@media (max-width: 650px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-img { min-height: 200px; }
  .modal-info { padding: 20px; }
}
.dropdown {
  max-height: 80vh !important;
  overflow-y: auto !important;
  padding-right: 12px;
  scrollbar-gutter: stable;
}

/* Chrome, Edge */
.dropdown::-webkit-scrollbar {
  width: 18px;
}

.dropdown::-webkit-scrollbar-track {
  background: #f3f3f3;
}

.dropdown::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
  border: 3px solid #f3f3f3;
}

.dropdown::-webkit-scrollbar-thumb:hover {
  background: #777;
}
.nav-menu > li:last-of-type .dropdown,
.nav-menu > li:nth-last-of-type(2) .dropdown {
  left: auto !important;
  right: 0 !important;
}
/* ===== MARCAS ===== */

.marca-logo{
  width: 80px;
  height: 45px;
  object-fit: contain;
  margin-bottom: 10px;
}

.marca-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== Search results list (marketplace style) ===== */
.search-hero { padding-top: 60px; padding-bottom: 12px; }
.results-divider { height: 1px; background: #f0f0f0; margin: 10px 0 18px; }
.results-header { display:flex; flex-direction:column; gap:6px; }
.results-count { color: #6b6b6b; font-size: 0.95rem; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.result-card {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 20px;
  box-shadow: 0 6px 18px rgba(18,18,18,0.04); transition: transform 0.14s ease, box-shadow 0.14s ease;
  min-height: auto;
  height: auto;
  max-height: none;
  overflow: visible;
  word-wrap: break-word;
  position: relative;
  z-index: 1;
  white-space: normal;
}
.result-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(18,18,18,0.08); }
.result-thumb { width: 96px; height: 96px; border-radius: 8px; background: #f5f5f5; flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow: hidden; }
.result-body { flex:1; display:flex; flex-direction:column; gap:6px; overflow: visible; word-wrap: break-word; min-width: 0; max-width: 100%; white-space: normal; }
.result-brand { display:inline-block; background:#f1f1f1; color:#444; font-size:0.78rem; padding:4px 8px; border-radius:999px; width:fit-content; white-space: nowrap; }
.result-title { font-weight:700; color:#111; font-size:1rem; overflow-wrap: break-word; word-break: break-word; line-height: 1.3; max-width: 100%; white-space: normal; }
.result-desc { color:#666; font-size:0.92rem; overflow-wrap: break-word; word-break: break-word; line-height: 1.4; max-width: 100%; white-space: normal; }

/* single column on small screens */
@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr; }
  .nav-search input { width: 160px; }
}
