/* ============================================================
   estilos.css - Repuestos MCHB
   Extraido del <style> embebido en index.html para reducir
   el tamano del HTML y acercar el contenido real al inicio
   del codigo fuente (recomendacion de Bing Webmaster Tools).
   ============================================================ */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --azul:       #0d2d6b;
      --azul-medio: #1a4099;
      --azul-claro: #e8eef8;
      --rojo:       #c0181f;
      --rosa:       #fce8ee;
      --rosa-borde: #e8b0c0;
      --blanco:     #ffffff;
      --gris-claro: #f5f5f5;
      --gris-texto: #4a4a4a;
      --gris-borde: #d8d8d8;
      --texto:      #1a1a1a;
      --radio:      8px;
    }

    html { scroll-behavior: smooth; }
    body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--texto); background: var(--blanco); line-height: 1.6; font-size: 16px; }

    /* ── NAV ── */
    nav { background: var(--azul); position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--rojo); }
    .nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 60px; }

    /* LOGO: texto por defecto, imagen cuando exista */
    .nav-logo {
      display: flex; align-items: center; gap: 0.6rem;
      font-size: 1.4rem; font-weight: 700; color: var(--blanco);
      text-decoration: none; letter-spacing: 0.5px;
    }
    .nav-logo span { color: var(--rosa-borde); }
    /* Cuando agregues el logo, pon la imagen dentro del enlace y esta clase la oculta */
    .nav-logo img { height: 40px; width: auto; display: block; }

    .nav-links { display: flex; gap: 1.5rem; list-style: none; }
    .nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
    .nav-links a:hover { color: var(--blanco); }

    /* ── HERO con imagen de fondo ── */
    .hero {
      background-color: var(--azul);
      background-image: url('imagenes/fondoportada.jpg');
      background-size: cover;
      background-position: center;
      color: var(--blanco);
      padding: 6rem 1.5rem 5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    /* Capa oscura sobre la foto para que el texto sea legible */
    .hero-overlay {
      position: absolute; inset: 0;
      background: rgba(13, 45, 107, 0.72);
      pointer-events: none;
    }
    .hero-content { position: relative; z-index: 1; }
    .hero::after {
      content: ''; position: absolute; bottom: 0; left: 0; right: 0;
      height: 40px; background: var(--blanco);
      clip-path: ellipse(60% 100% at 50% 100%); z-index: 1;
    }
    .hero-badge {
      display: inline-block; background: var(--rojo); color: var(--blanco);
      font-size: 0.8rem; font-weight: 600; padding: 4px 14px;
      border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.2rem;
    }
    .hero h1 {
      font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15;
      margin-bottom: 1rem; max-width: 700px; margin-left: auto; margin-right: auto;
    }
    .hero h1 em { font-style: normal; color: var(--rosa); }
    .hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 2rem; }

    .hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .btn-primary {
      display: inline-block; background: var(--rojo); color: var(--blanco);
      padding: 0.85rem 2rem; border-radius: var(--radio); text-decoration: none;
      font-weight: 600; font-size: 1rem; transition: background 0.2s, transform 0.15s;
    }
    .btn-primary:hover { background: #9e1015; transform: translateY(-1px); }
    .btn-outline {
      display: inline-block; border: 2px solid rgba(255,255,255,0.55); color: var(--blanco);
      padding: 0.85rem 2rem; border-radius: var(--radio); text-decoration: none;
      font-weight: 600; font-size: 1rem; transition: border-color 0.2s, background 0.2s;
    }
    .btn-outline:hover { border-color: var(--blanco); background: rgba(255,255,255,0.1); }

    /* ── STATS ── */
    .stats { background: var(--rosa); border-bottom: 1px solid var(--rosa-borde); }
    .stats-grid {
      max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem;
      display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 1.5rem; text-align: center;
    }
    .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--azul); }
    .stat-label { font-size: 0.88rem; color: var(--gris-texto); margin-top: 2px; }

    /* ── DINAMISMO: revelado al hacer scroll ── */
    .reveal {
      opacity: 0; transform: translateY(18px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }
    .reveal.visible { opacity: 1; transform: none; }
    /* Escalonado sutil dentro de una misma grilla */
    .reveal:nth-child(2)  { transition-delay: 0.05s; }
    .reveal:nth-child(3)  { transition-delay: 0.10s; }
    .reveal:nth-child(4)  { transition-delay: 0.15s; }
    .reveal:nth-child(5)  { transition-delay: 0.20s; }
    .reveal:nth-child(6)  { transition-delay: 0.25s; }
    .reveal:nth-child(7)  { transition-delay: 0.30s; }
    .reveal:nth-child(8)  { transition-delay: 0.35s; }
    .reveal:nth-child(9)  { transition-delay: 0.40s; }

    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; transition: none; }
    }

    /* ── SECCIONES GENERALES ── */
    section { padding: 4rem 1.5rem; }
    .section-inner { max-width: 1100px; margin: 0 auto; }
    .section-tag {
      display: inline-block; font-size: 0.78rem; font-weight: 700;
      letter-spacing: 1.5px; text-transform: uppercase; color: var(--rojo); margin-bottom: 0.5rem;
    }
    h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--azul); margin-bottom: 1rem; }
    .lead { font-size: 1.05rem; color: var(--gris-texto); max-width: 600px; margin-bottom: 2.5rem; }

    /* ── QUIÉNES SOMOS ── */
    #quienes { background: var(--blanco); }
    .quienes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
    .quienes-text p { color: var(--gris-texto); margin-bottom: 1rem; }
    .quienes-text strong { color: var(--azul); }
    .quienes-destacados { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
    .destacado-card {
      background: var(--azul-claro); border-left: 4px solid var(--azul-medio);
      border-radius: 0 var(--radio) var(--radio) 0; padding: 1rem;
    }
    .destacado-card strong { display: block; font-size: 0.95rem; color: var(--azul); margin-bottom: 4px; }
    .destacado-card span { font-size: 0.85rem; color: var(--gris-texto); }

    /* ── TIMELINE / ACORDEÓN ── */
    .timeline { display: flex; flex-direction: column; gap: 0.6rem; }
    .tl-item {
      border: 1px solid var(--gris-borde); border-left: 4px solid var(--rojo);
      border-radius: 0 8px 8px 0; background: var(--blanco); overflow: hidden;
    }
    .tl-year {
      display: flex; align-items: center; justify-content: space-between;
      cursor: pointer; list-style: none;
      padding: 0.85rem 1rem;
      font-size: 0.82rem; font-weight: 700; color: var(--rojo);
      letter-spacing: 1px; text-transform: uppercase;
      -webkit-tap-highlight-color: transparent;
    }
    .tl-year::-webkit-details-marker { display: none; }
    .tl-caret { transition: transform 0.2s; color: var(--rosa-borde); font-size: 1rem; }
    .tl-item[open] .tl-caret { transform: rotate(180deg); }
    .tl-item[open] .tl-year { border-bottom: 1px solid var(--gris-borde); }
    .tl-body { padding: 0.9rem 1rem 1.1rem; }
    .tl-text { font-size: 0.95rem; color: var(--gris-texto); }

    /* Foto dentro de la línea de tiempo */
    .tl-foto {
      margin-top: 0.75rem;
      width: 100%;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--gris-borde);
    }
    .tl-foto img {
      width: 100%; height: 220px;
      object-fit: contain; object-position: center;
      background: var(--azul-claro);
      display: block;
    }
    /* Placeholder cuando aún no hay foto */
    .tl-foto-placeholder {
      width: 100%; height: 120px;
      background: var(--azul-claro);
      border: 2px dashed var(--rosa-borde);
      border-radius: 8px;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 0.3rem; margin-top: 0.75rem;
      color: var(--azul-medio); font-size: 0.8rem; text-align: center; padding: 0.5rem;
    }
    .tl-foto-placeholder span { font-size: 1.5rem; }

    /* ── MARCAS DE CARROS con tooltip ── */
    #marcas-carros { background: var(--gris-claro); }
    .marcas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }

    .marca-chip {
      background: var(--blanco); border: 1px solid var(--gris-borde);
      border-radius: var(--radio); padding: 0.6rem 0.8rem;
      text-align: center; font-size: 0.88rem; font-weight: 500; color: var(--azul);
      cursor: default; position: relative;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .marca-chip:hover {
      border-color: var(--azul-medio);
      box-shadow: 0 2px 8px rgba(13,45,107,0.12);
      z-index: 10;
    }
    /* Tooltip de referencias */
    .marca-tooltip {
      display: none;
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%; transform: translateX(-50%);
      background: var(--azul);
      color: var(--blanco);
      border-radius: 8px;
      padding: 0.65rem 0.9rem;
      font-size: 0.8rem;
      font-weight: 400;
      line-height: 1.5;
      white-space: normal;
      width: 220px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
      z-index: 50;
      text-align: justify;
      text-align-last: left;
      hyphens: auto;
    }
    .marca-tooltip::after {
      content: '';
      position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: var(--azul);
    }
    .marca-tooltip strong { display: block; margin-bottom: 4px; color: var(--rosa); font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase; }
    .marca-chip:hover .marca-tooltip { display: block; }

    /* ── CATÁLOGO ── */
    #catalogo { background: var(--blanco); }
    .familias-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
    .familia-card {
      background: var(--blanco); border: 1px solid var(--gris-borde);
      border-radius: 12px; padding: 1.25rem;
      transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
    }
    .familia-card:hover { border-color: var(--azul-medio); box-shadow: 0 4px 16px rgba(13,45,107,0.1); }
    .familia-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
    .familia-card h3 { font-size: 0.98rem; font-weight: 600; color: var(--azul); margin-bottom: 0.3rem; }
    .familia-card p { font-size: 0.82rem; color: var(--gris-texto); }
    .familia-badge {
      display: inline-block; margin-top: 0.5rem;
      background: var(--rosa); color: var(--rojo);
      font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 20px;
    }
    .catalogo-nota {
      margin-top: 2.5rem; background: var(--azul-claro); border: 1px solid #b8c8e8;
      border-radius: var(--radio); padding: 1.25rem 1.5rem;
      display: flex; align-items: flex-start; gap: 1rem;
    }
    .catalogo-nota-icon { font-size: 1.5rem; flex-shrink: 0; }
    .catalogo-nota p { font-size: 0.9rem; color: var(--azul); margin: 0; }
    .catalogo-nota strong { display: block; margin-bottom: 3px; }

    /* ── CONTACTO ── */
    #contacto { background: var(--gris-claro); }
    .contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .info-card { background: var(--blanco); border-radius: 12px; border: 1px solid var(--gris-borde); overflow: hidden; }
    .info-card-header { background: var(--azul); color: var(--blanco); padding: 1rem 1.25rem; font-weight: 600; font-size: 0.95rem; }
    .info-rows { padding: 0.5rem 0; }
    .info-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--gris-borde); }
    .info-row:last-child { border-bottom: none; }
    .info-row-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
    .info-row-label { font-size: 0.78rem; color: var(--gris-texto); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
    .info-row-value { font-size: 0.95rem; color: var(--texto); margin-top: 1px; }
    .horario-tabla { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
    .horario-tabla td { padding: 0.5rem 1.25rem; border-bottom: 1px solid var(--gris-borde); color: var(--gris-texto); }
    .horario-tabla tr:last-child td { border-bottom: none; }
    .horario-tabla td:first-child { font-weight: 500; color: var(--texto); }
    .horario-abierto { color: #1a7a3c !important; font-weight: 600 !important; }
    .horario-cerrado { color: var(--rojo) !important; }
    .mapa-placeholder {
      background: var(--azul-claro); border: 1px solid #b8c8e8; border-radius: 12px;
      height: 260px; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 0.75rem;
      color: var(--azul-medio); font-size: 0.9rem; text-align: center; padding: 1.5rem;
    }
    .mapa-placeholder .mapa-icon { font-size: 2.5rem; }
    .mapa-link {
      display: inline-block; margin-top: 0.5rem; background: var(--azul); color: var(--blanco);
      padding: 0.5rem 1.25rem; border-radius: var(--radio); text-decoration: none; font-size: 0.85rem; font-weight: 600;
    }

    /* ── WHATSAPP FLOTANTE ── */
    .wa-float {
      position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
      background: #25d366; color: var(--blanco); border-radius: 50px;
      padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 0.5rem;
      text-decoration: none; font-weight: 600; font-size: 0.9rem;
      box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform 0.2s, box-shadow 0.2s;
    }
    .wa-float:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
    .wa-icon { font-size: 1.2rem; }

    /* ── FOOTER ── */
    footer { background: var(--azul); color: rgba(255,255,255,0.85); padding: 2.5rem 1.5rem; text-align: center; }
    .footer-inner { max-width: 1100px; margin: 0 auto; }
    .footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--blanco); margin-bottom: 0.5rem; }
    .footer-logo span { color: var(--rosa-borde); }
    footer p { font-size: 0.85rem; margin-bottom: 0.3rem; }
    .footer-sep { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 1.5rem 0; }

    /* ── MENÚ HAMBURGUESA (móvil) ── */
    .nav-hamburguesa {
      display: none; flex-direction: column; justify-content: center; gap: 5px;
      width: 44px; height: 44px; background: none; border: none; cursor: pointer;
      padding: 0; margin: 0;
    }
    .nav-hamburguesa span {
      display: block; width: 24px; height: 2px; background: var(--blanco);
      margin: 0 auto; transition: transform 0.25s, opacity 0.2s;
    }
    .nav-hamburguesa.activo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-hamburguesa.activo span:nth-child(2) { opacity: 0; }
    .nav-hamburguesa.activo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── RESPONSIVE ── */
    @media (max-width: 700px) {
      .quienes-grid, .contacto-grid { grid-template-columns: 1fr; }
      .quienes-destacados { grid-template-columns: 1fr; }
      .nav-hamburguesa { display: flex; }
      .nav-links {
        display: none; flex-direction: column; gap: 0;
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--azul); border-bottom: 3px solid var(--rojo);
        padding: 0.5rem 1.5rem 1rem;
      }
      .nav-links.abierto { display: flex; }
      .nav-links li { border-top: 1px solid rgba(255,255,255,0.1); }
      .nav-links a { display: block; padding: 0.9rem 0; }
      .marca-tooltip { left: 0; transform: none; }
      .marca-tooltip::after { left: 20%; }
    }

  /* ── CARRUSEL ── */
  #carrusel { background: var(--azul); padding: 3.5rem 1.5rem; overflow: hidden; }
  #carrusel .section-tag { color: var(--rosa-borde); }
  #carrusel h2 { color: var(--blanco); }
  #carrusel .lead { color: rgba(255,255,255,0.75); }

  .carrusel-stage {
    position: relative;
    height: 380px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .carrusel-slide {
    position: absolute;
    top: 50%; left: 50%;
    width: 190px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background: #1a2a50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform 0.5s cubic-bezier(.25,.8,.25,1), opacity 0.5s ease, filter 0.5s ease;
    cursor: pointer;
  }
  .carrusel-slide img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .carrusel-slide.activa { cursor: default; }
  .carrusel-caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--blanco); padding: 1.4rem 0.9rem 0.8rem;
    font-size: 0.82rem; line-height: 1.35;
    opacity: 0; transition: opacity 0.35s ease;
  }
  .carrusel-slide.activa .carrusel-caption { opacity: 1; }
  .carrusel-caption strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }

  .carrusel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none; color: var(--blanco);
    font-size: 1.4rem; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; z-index: 10; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
  }
  .carrusel-btn:hover { background: rgba(255,255,255,0.3); }
  .carrusel-btn.prev { left: 0.5rem; }
  .carrusel-btn.next { right: 0.5rem; }

  .carrusel-dots {
    display: flex; justify-content: center; gap: 2px; margin-top: 0.5rem;
  }
  .carrusel-dot {
    width: 44px; height: 44px; border-radius: 50%;
    background: none; border: none; cursor: pointer;
    padding: 0; position: relative;
  }
  .carrusel-dot::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 8px; height: 8px; border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.35); transition: background 0.2s;
  }
  .carrusel-dot.active::after { background: var(--blanco); }

  .carrusel-vacio {
    height: 260px; background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2); border-radius: 12px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; color: rgba(255,255,255,0.5);
    font-size: 0.9rem; gap: 0.5rem; margin-top: 2rem;
  }
  .carrusel-vacio span { font-size: 2rem; }

  @media (max-width: 700px) {
    .carrusel-stage { height: 320px; }
    .carrusel-slide { width: 150px; }
  }

  /* ── ADMIN CARRUSEL ── */
  .cr-admin-sep { border: none; border-top: 2px dashed rgba(255,255,255,0.15); margin: 2rem 0 1rem; }
  .cr-admin-toggle {
    display: block; margin: 0 auto; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.7);
    font-size: 0.8rem; padding: 0.5rem 1.25rem; border-radius: 20px;
    cursor: pointer; font-family: inherit; transition: background 0.2s;
  }
  .cr-admin-toggle:hover { background: rgba(255,255,255,0.2); }

  .cr-panel {
    display: none; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
    padding: 1.25rem; margin-top: 1rem; max-width: 560px; margin-left: auto; margin-right: auto;
  }
  .cr-panel.visible { display: block; }
  .cr-panel h3 { color: var(--blanco); font-size: 0.95rem; margin-bottom: 1rem; }

  .cr-label {
    display: block; font-size: 0.78rem; font-weight: 600;
    color: rgba(255,255,255,0.6); margin-bottom: 4px; margin-top: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .cr-label:first-of-type { margin-top: 0; }
  .cr-input, .cr-textarea {
    width: 100%; padding: 0.6rem 0.75rem; font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
    background: rgba(255,255,255,0.08); color: var(--blanco);
    font-family: inherit; transition: border-color 0.2s;
  }
  .cr-input::placeholder, .cr-textarea::placeholder { color: rgba(255,255,255,0.35); }
  .cr-input:focus, .cr-textarea:focus { outline: none; border-color: rgba(255,255,255,0.5); }
  .cr-textarea { resize: vertical; min-height: 60px; }

  .cr-file-label {
    display: block; width: 100%; padding: 0.75rem;
    border: 2px dashed rgba(255,255,255,0.25); border-radius: 8px;
    text-align: center; color: rgba(255,255,255,0.6); font-size: 0.85rem;
    cursor: pointer; transition: border-color 0.2s; margin-top: 0.85rem;
  }
  .cr-file-label:hover { border-color: rgba(255,255,255,0.5); }
  #cr-file-input { display: none; }
  .cr-preview {
    width: 100%; height: 120px; object-fit: cover;
    border-radius: 8px; margin-top: 0.5rem; display: none;
  }

  .cr-btn-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
  .cr-btn {
    padding: 0.6rem 1.25rem; border-radius: 8px; font-size: 0.88rem;
    font-weight: 600; cursor: pointer; border: none; font-family: inherit;
  }
  .cr-btn-pub { background: var(--rojo); color: var(--blanco); }
  .cr-btn-pub:hover { background: #9e1015; }
  .cr-btn-cancel { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }

  .cr-msg { font-size: 0.82rem; margin-top: 0.5rem; }
  .cr-msg.ok { color: #7dffb0; }
  .cr-msg.err { color: #ffaaaa; }

  .cr-lista { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
  .cr-item {
    display: flex; align-items: center; gap: 0.75rem;
    background: rgba(255,255,255,0.06); border-radius: 8px; padding: 0.6rem 0.75rem;
  }
  .cr-item img { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
  .cr-item-text { flex: 1; font-size: 0.82rem; color: rgba(255,255,255,0.8); }
  .cr-item-text strong { display: block; color: var(--blanco); }
  .cr-del {
    background: none; border: none; color: rgba(255,100,100,0.8);
    cursor: pointer; font-size: 1rem; padding: 2px 6px;
    border-radius: 4px; transition: background 0.15s;
  }
  .cr-del:hover { background: rgba(255,100,100,0.15); }

  .cr-login { display: none; }
  .cr-login.visible { display: block; }
  .cr-pass-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
  .cr-pass-row input {
    flex: 1; padding: 0.55rem 0.75rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
    color: var(--blanco); font-family: inherit; font-size: 0.9rem;
  }
  .cr-pass-row input:focus { outline: none; border-color: rgba(255,255,255,0.5); }
  .cr-pass-btn {
    padding: 0.55rem 1rem; background: var(--azul-medio); color: var(--blanco);
    border: none; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 600;
  }

  /* ── NOVEDADES: preview en el home ── */
  #novedades { background: var(--gris-claro); }

  /* Badges de estado (faltaban en este archivo; sí existían en estilos-tablero.css) */
  .badge {
    font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 20px;
    letter-spacing: 0.4px; text-transform: uppercase; white-space: nowrap;
  }
  .badge-nuevo    { background: #e8f5ee; color: #1a7a3c; }
  .badge-limitado { background: #fff3e0; color: #b85a00; }
  .badge-agotado  { background: var(--gris-borde); color: var(--gris-texto); }

  .np-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
  .np-card {
    display: block; background: var(--blanco); border: 1px solid var(--gris-borde);
    border-left: 4px solid var(--azul-medio); border-radius: 0 10px 10px 0;
    padding: 1rem 1.1rem; text-decoration: none; color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
  }
  .np-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(13,45,107,0.14);
    border-left-color: var(--rojo);
  }
  .np-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
  .np-fecha { font-size: 0.72rem; color: var(--gris-texto); }
  .np-texto { font-size: 0.92rem; font-weight: 600; color: #1a1a1a; }
  .np-vertodas { text-align: center; margin-top: 1.75rem; }
  .np-vacio { text-align: center; padding: 2rem 1rem; color: var(--gris-texto); font-size: 0.9rem; }
  .np-vacio a { color: var(--azul-medio); font-weight: 600; }

  /* Variante de btn-outline para usar sobre fondos claros (btn-outline original
     tiene texto blanco pensado para el hero oscuro; sobre fondo claro era invisible) */
  .btn-outline-claro {
    display: inline-block; border: 2px solid var(--azul-medio); color: var(--azul-medio);
    padding: 0.85rem 2rem; border-radius: var(--radio); text-decoration: none;
    font-weight: 600; font-size: 1rem; background: var(--blanco);
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  }
  .btn-outline-claro:hover {
    background: var(--azul-medio); color: var(--blanco);
    transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,64,153,0.25);
  }

  /* ── FAQ ── */
  .faq-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
  .faq-item {
    background: var(--blanco); border: 1px solid var(--gris-borde);
    border-radius: 10px; padding: 0.2rem 1.1rem;
  }
  .faq-item summary {
    cursor: pointer; list-style: none; padding: 0.9rem 0;
    font-weight: 600; font-size: 0.96rem; color: var(--azul);
    display: flex; justify-content: space-between; align-items: center;
    -webkit-tap-highlight-color: transparent;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--rojo); font-weight: 400; }
  .faq-item[open] summary::after { content: '−'; }
  .faq-item p { padding-bottom: 1rem; color: var(--gris-texto); font-size: 0.92rem; }
