/* PALETA
Dorado: #FABA4C
Verde Profundo: #1A5427
Negro Vidrio: #000001
*/

:root{
    /* Base elegante */
    --black: #0b0b0d;        /* Negro principal */
    --black-2: #121216;      /* Negro secundario */
    --surface: #ffffff;      /* Tarjetas / superficies */
    --surface-2: #f4f5f7;    /* Secciones claras */
    --text: #111114;         /* Texto principal */
    --muted: #5b5b66;        /* Texto secundario */
  
    /* Acentos del logo */
    --gold: #FABA4C;         /* Dorado (acento principal) */
    --green: #1A5427;        /* Verde (solo detalle) */
  
    --header-h: 76px;
  }
  
  * { box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    padding-top: var(--header-h); /* importante por header fijo */
    color: var(--text);
  }
  
  /* Compensa anclas por el header fijo */
  #inicio, #somos, #productos, #contacto, #carouselTorino {
    scroll-margin-top: calc(var(--header-h) + 12px);
  }
  
  /* ========================================= */
  /* HEADER Y NAVEGACIÓN                       */
  /* ========================================= */
  
  header{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 13, 0.94); /* negro */
    border-bottom: 1px solid rgba(250, 186, 76, 0.22); /* dorado suave */
    transition: background 0.25s ease, box-shadow 0.25s ease;
  }
  
  header.scrolled{
    background: rgba(11, 11, 13, 0.97);
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  }
  
  @media (min-width: 992px){
    header{
      backdrop-filter: blur(6px);
    }
  }
  
  nav{ padding: 5px 0; }
  
  .navbar-brand img{
    height: 55px;
    width: auto;
    max-width: 100%;
  }
  
  .navbar-nav .nav-link{
    color: #fff !important;
    font-size: 17px;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.25s ease;
  }
  
  .navbar-nav .nav-link:hover{
    color: var(--gold) !important;
  }
  
  /* CTA de Catálogos */
  .nav-cta{
    font-weight: 800 !important;
    color: var(--gold) !important;
  }
  
  .navbar-toggler{
    border: none;
    filter: invert(100%);
  }
  
  /* Menú desplegable móvil */
  @media (max-width: 991px){
    .navbar-collapse{
      background: var(--green);
      border-radius: 0 0 12px 12px;
      padding: 10px;
      margin-top: 10px;
    }
  }
  
  /* ========================================= */
  /* CARRUSEL                                  */
  /* ========================================= */
  
  .carousel-item img{
    width: 100%;
    height: 65vh;
    object-fit: cover;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon{
    filter: invert(90%) brightness(90%);
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 10px;
  }
  
  /* ========================================= */
  /* SECCIÓN "SOMOS"                           */
  /* ========================================= */
  
  .somos-section-bg{
    background-color: #f4f7f6;
  }
  
  .somos-card{
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
  }
  
  .somos-image-container{
    min-height: 450px;
    height: 100%;
    background-image: url('Imagenes/TORINO.png');
    background-size: cover;
    background-position: center center;
    position: relative;
  }
  
  .somos-image-container::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(26, 84, 39, 0.20));
  }
  
  .somos-kicker{
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--gold);
  }
  
  .somos-title{
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--green);
  }
  
  .somos-quote{ font-size: 1.15rem; }
  
  .somos-text{
    color: var(--muted);
    line-height: 1.8;
  }
  
  .somos-line{
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-top: 26px;
  }
  
  @media (max-width: 991px){
    .somos-image-container{ min-height: 300px; }
  }
  
  /* ========================================= */
  /* SECCIÓN PRODUCTOS                         */
  /* ========================================= */
  /* BOTÓN WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 60px;
    height: 60px;
    z-index: 1500;
}

.whatsapp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0,0,0,.5));
    transition: .3s;
}

.whatsapp:hover img {
    transform: scale(1.1);
}

/* ========================================= */
/* SECCIÓN PRODUCTOS                         */
/* ========================================= */

.productos {
    padding: 80px 10%;
    text-align: center;
}

.productos h2 {
    color: #1A5427;
    font-size: 35px;
    margin-bottom: 40px;
}

.productos-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    
    /* CORRECCIÓN: Alinea tarjetas arriba para que no se estiren */
    align-items: start; 
}

.producto-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: .3s;
}

.producto-card:hover {
    transform: translateY(-5px);
    border-color: #FABA4C;
}

.producto-card h3 {
    color: #1A5427;
    font-size: 22px;
    margin-bottom: 8px;
}

.producto-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.producto-card button {
    background: #FABA4C;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    color: #000;
    font-weight: 600;
    transition: 0.3s;
}

.producto-card button:hover {
    background: #e0a33b;
}

.oculto {
    display: none;
    margin-top: 15px;
    text-align: left;
    list-style: none;
    padding: 0;
}

.oculto li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}


  
  /* Contenedor animado del catálogo */
  .catalogo{
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    margin-top: 14px;
    text-align: left;
    border-top: 1px solid #000000;
  }
  
  .catalogo.is-open{
    max-height: 1000px; /* suficiente para listas largas */
  }
  
  .catalogo ul{
    list-style: none;
    padding: 14px 0 0;
    margin: 0;
  }
  
  .catalogo li{
    padding: 6px 0;
    border-bottom: 1px solid #000000;
    font-size: 14px;
  }
  
  /* ========================================= */
  /* FOOTER                                    */
  /* ========================================= */
  
  .footer{
    background: #000;
    color: #fff;
    padding: 60px 8%;
    margin-top: 70px;
  }
  
  .footer-container{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
  }
  
  .footer-info{
    flex: 1;
    min-width: 300px;
  }
  
  .footer-info h3{
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 20px;
  }
  
  .footer-info p{
    margin-bottom: 15px;
    line-height: 1.6;
    color: #ddd;
  }
  
  .footer-info strong{ color: var(--gold); }
  
  .footer-info a{
    color: var(--gold);
    text-decoration: none;
  }
  
  .footer-mapa{
    width: 100%;
    max-width: 500px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .footer-mapa iframe{
    width: 100%;
    height: 100%;
  }
 
  
  .whatsapp:hover img{ transform: scale(1.08); }
  
  /* ========================================= */
  /* RESPONSIVE                                */
  /* ========================================= */
  
  @media (max-width: 991px){
    .navbar-collapse{
      background: var(--black);
      border-radius: 0 0 12px 12px;
      padding: 10px;
      margin-top: 10px;
        border: 1px solid rgba(250, 186, 76, 0.18);
        }
  }
  
/* Sub-apartados dentro de Catálogo (Vidrio Crudo / Vidrio Templado) */
.subcat{
    border: 1px solid rgba(250, 186, 76, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.75);
  }
  
  .subcat summary{
    cursor: pointer;
    font-weight: 800;
    color: var(--gold);
    list-style: none;
  }
  
  .subcat summary::-webkit-details-marker{
    display: none;
  }
  
  .subcat summary::after{
    content: " +";
    font-weight: 900;
    color: var(--gold);
    float: right;
  }
  
  .subcat[open] summary::after{
    content: " –";
  }
      

    .productos{
      padding: 40px 20px;
    }
  
    .productos h2{
        color: var(--black);
        font-size: 35px;
        margin-bottom: 40px;
      }
  
  @media (max-width: 480px){
    .carousel-item img{ height: 30vh; }
  }
  