/* ===== ESTILOS INSTALACIONES ===== */

body {
    font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f9fafb;
    color: #1f2a44;
    margin: 0;
  }
  
  .w {
    max-width: 1100px;
    margin: auto;
    padding: 0 1rem;
  }
  
  .page-title {
    text-align: center;
    color: #0f2a6d;
    font-size: 2rem;
    margin: 2rem 0 1rem;
  }
  .intro-text {
    text-align: center;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  
  /* ===== CARRUSEL ===== */
  .carrusel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  .slides {
    position: relative;
    height: 550px;
  }
  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .slide.active { opacity: 1; z-index: 2; }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
  }
  
  /* Texto sobre imagen */
  .caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    text-align: center;
    padding: 1rem;
  }
  .caption h3 { color: #fbbf24; margin: 0; font-size: 1.3rem; }
  .caption p { margin: 4px 0 0; font-size: 0.9rem; }
  
  /* Botones */
  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15,42,109,0.7);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 3;
  }
  .prev:hover, .next:hover { background: rgba(15,42,109,1); }
  .prev { left: 15px; }
  .next { right: 15px; }
  
  /* Puntos indicadores */
  .dots {
    text-align: center;
    margin: 10px 0 20px;
  }
  .dot {
    width: 12px; height: 12px;
    display: inline-block;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
  }
  .dot.active { background: #0f2a6d; }
  
  /* ===== MINIATURAS CON TÍTULOS ===== */
  .miniaturas {
    text-align: center;
    margin: 1rem auto 3rem;
  }
  .thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .thumb {
    width: 150px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
  }
  .thumb.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.7;
    transition: all 0.3s ease;
  }
  .thumb p {
    font-size: 0.9rem;
    margin-top: 4px;
    color: #0f2a6d;
    font-weight: 600;
  }
  .thumb:hover img,
  .thumb.active img {
    opacity: 1;
    transform: scale(1.05);
    border: 3px solid #0f2a6d;
  }
  
  /* ===== SECCIÓN FINAL ===== */
  .mensaje {
    background: #0f2a6d;
    color: #fff;
    text-align: center;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin: 3rem auto;
  }
  .mensaje h2 { color: #fbbf24; margin-top: 0; }
  
  /* ===== RESPONSIVO ===== */
  @media (max-width: 1024px) { .slides { height: 480px; } }
  @media (max-width: 768px) {
    .slides { height: 340px; }
    .thumb { width: 110px; }
    .thumb img { height: 70px; }
    .caption h3 { font-size: 1.1rem; }
  }
  @media (max-width: 480px) {
    .slides { height: 260px; }
    .thumb { width: 90px; }
    .thumb img { height: 60px; }
    .thumb p { font-size: 0.75rem; }
  }
  