* {
     font-family: Montserrat, sans-serif;
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 html, body {
     width: 100%;
     overflow-x: hidden; /* FIX: evita scroll horizontal en cualquier breakpoint */
 }

 a{
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
 }

  a:hover{
    color: #008cff;
 }

 /* ========== NAV (tu diseño) ========== */
 nav {
     display: grid;
     grid-template-columns: 1fr;
     height: 40px;
     width: 100%;
     background: linear-gradient(2deg, rgba(65, 114, 204, 1) 0%, rgba(12, 92, 240, 1) 100%);
     position: relative;
     z-index: 1000;
     padding: 0 20px;
     box-sizing: border-box;
 }

 #logos-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     width: 100%;
 }

 #logo-brite {
     display: flex;
     justify-content: center;
     align-items: center;
     background-image: url('img/CrimpMaster-logo.png');
     /* Ajusta la ruta si es necesario */
     background-position: center;
     background-size: contain;
     background-repeat: no-repeat;
     padding: 3px;
     height: 30px;
     width: 100px;
     z-index: 99;
 }

 #return {
     display: flex;
     align-items: center;
     justify-content: center;
     color: aliceblue;
     margin-left: auto;
     font-size: 14px;
     font-weight: 600;
     cursor: pointer;
     padding: 5px 10px;
     border-radius: 4px;
     transition: background 0.3s ease;
 }

 #return:hover {
     background: rgba(255, 255, 255, 0.1);
 }

 /* ========== PORTADA (tu diseño) ========== */
 #portada {
     width: 100%; /* FIX: era 100vw, sumaba el ancho de la scrollbar y generaba overflow horizontal */
     height: 75vh;
     background-image: url('img/portada-crimpmaster.png');
     /* Ajusta la ruta */
     background-size: cover;
     background-position: right;
     position: relative;
     z-index: 1;
 }

 #novamaster{
    display: flex;
    height: auto;
    width: 10vw;
    align-items: right;
 }

 #content {
     position: relative;
     z-index: 2;
     margin-top: -55vh;
     padding: 20px;
     text-align: center;
     width: 100%; /* FIX: evita que "width: auto" del media query anterior dejara comportamiento inconsistente */
    margin-bottom: 15vh;
    }

 #content > img {
    display: flex;
    width: 8vw;
    height: auto;
    text-align: right;
    justify-self: right;
    align-self: right;
    margin-right: 40px;
    margin-bottom: -2vh;
 }

 #content h1 {
     color: white;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
     font-size: 2.8rem;
     text-align: right;
     margin-right: 40px;
 }

 #content h2 {
    font-weight:normal;
     color: white;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
     font-size: 1rem;
     text-align: right;
     margin-top: 7px;
     margin-right: 40px;
 }

 #content h3 {
     font-weight: lighter;
     color: white;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
     font-size: 1rem;
     text-align: right;
     margin-top: 7px;
     margin-right: 40px;
 }

#form-numero {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 360px; /* FIX: era width fijo de 360px, provocaba overflow horizontal en pantallas angostas */
    height: 42px;
    margin-left: auto;
    margin-right: 40px;
    margin-top: 10px;
    padding: 4px 6px 4px 14px;
    background: linear-gradient(2deg, rgb(65, 97, 204) 0%, rgb(12, 137, 240) 100%);
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(65, 86, 204, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#form-numero:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(65, 86, 204, 0.6);
}

#numero-usuario {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: white;
    font-size: 13px;
    font-weight: 500;
    outline: none;
}

#numero-usuario::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.btn-whatsapp-grande {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    color: white;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp-grande:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.03);
}

.btn-whatsapp-grande p {
    margin: 0;
}

.btn-whatsapp-grande svg {
    width: 18px;
    height: 18px;
}
 #form-numero svg {
     width: 20px;
     height: 20px;
     fill: currentColor;
 }

 /* ========== SECCIÓN CATÁLOGO (nuevo) ========== */
 .catalogo-section {
     background: #f5f7fa;
     padding: 60px 20px 40px;
     margin-top: 8vh;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
 }

 .catalogo-titulo {
     font-size: 2.2rem;
     text-align: center;
     margin-bottom: 8px;
     color: #1a1a2e;
 }

 .catalogo-sub {
     text-align: center;
     color: #555;
     margin-bottom: 30px;
     font-weight: 300;
 }

 /* Filtros */
 .filters {
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     justify-content: center;
     margin-bottom: 40px;
 }

 .filter-btn {
     background: white;
     border: 1px solid #d0d7e2;
     padding: 10px 28px;
     border-radius: 40px;
     font-weight: 500;
     font-size: 0.95rem;
     cursor: pointer;
     transition: all 0.25s ease;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
     color: #555;
 }

 .filter-btn:hover {
     border-color: #0c5cf0;
     color: #0c5cf0;
 }

 .filter-btn.active {
     background: #0c5cf0;
     color: white;
     border-color: #0c5cf0;
 }

 /* Grid de productos */
 .product-grid {
     display: grid;
     grid-template-columns: repeat(3,1fr);
     gap: 28px;
 }

 .product-card {
     background: white;
     border-radius: 16px;
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
     overflow: hidden;
     transition: transform 0.25s ease, box-shadow 0.25s ease;
     display: flex;
     flex-direction: column;
 }

 .product-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
 }

 .card-image {
     background: #eef1f5;
     height: 300px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 3rem;
     color: #6b7a8f;
     overflow: hidden;
 }

 .card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
 }

 .card-body {
     padding: 18px 20px 20px;
     flex: 1;
     display: flex;
     flex-direction: column;
 }

 .card-body h3 {
     font-size: 1.5rem;
     font-weight: 600;
     margin-bottom: 6px;
     line-height: 1.3;
     min-height: 44px;
     text-align: center;
     color: #1a1a2e;
 }

 .card-body .ref {
     font-size: 0.85rem;
     color: #6b7a8f;
     margin-bottom: 4px;
 }

 .card-body .percha {
     font-size: 0.75rem;
     color: #6b7a8f;
     background: #f0f2f5;
     display: inline-block;
     padding: 2px 12px;
     border-radius: 20px;
     margin: 6px 0 10px;
     align-self: flex-start;
 }

 .card-body .stock {
     font-weight: 600;
     margin-top: auto;
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .stock .in-stock {
     color: #2e7d32;
 }

 .stock .out-of-stock {
     color: #c62828;
 }

 .card-body .btn-consulta {
     margin-top: 14px;
     background: #0c5cf0;
     color: white;
     border: none;
     padding: 10px 0;
     border-radius: 30px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
 }

 .card-body .btn-consulta:hover {
     scale: 1.02;
 }

 /* ========== FOOTER (nuevo) ========== */
 footer {
     background: #1a1a2e;
     color: #ccc;
     padding: 40px 20px 20px;
 }

 .footer-inner {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
     gap: 30px;
 }

 .footer-inner>div {
     flex: 1 1 200px;
 }

 .footer-inner h4 {
     color: white;
     margin-bottom: 12px;
     font-size: 1.1rem;
 }

 .footer-inner p,
 .footer-inner a {
     font-size: 0.9rem;
     line-height: 1.8;
 }

 .footer-inner a {
     color: #ccc;
     text-decoration: none;
 }

 .footer-inner a:hover {
     color: #0c5cf0;
 }

 .footer-bottom {
     border-top: 1px solid #333;
     padding-top: 20px;
     margin-top: 30px;
     text-align: center;
     font-size: 0.85rem;
     color: #888;
     max-width: 1200px;
     margin-left: auto;
     margin-right: auto;
 }

 .btn-consulta {
    
     color: white;
     border: none;
     padding: 10px 20px;
     border-radius: 8px;
     font-weight: 600;
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     gap: 8px;
     transition: all 0.3s ease;
     font-family: Montserrat, sans-serif;
     font-size: 14px;
     width: 100%;
     justify-content: center;
     
 }

 .btn-consulta:hover {
     transform: scale(1.01);
 }

 .btn-consulta i {
     font-size: 18px;
 }

 /* Estilos para el stock */
 .in-stock {
     color: #4CAF50;
 }

 .out-of-stock {
     color: #f44336;
 }

 .stock {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 14px;
     margin: 8px 0;
 }

 .stock i {
     font-size: 10px;
 }

 /* ========== RESPONSIVE - TABLET (max-width: 768px) ========== */
 @media (max-width: 768px) {
     
    a{
        font-weight: normal;
    }

     #content{
        padding-top: 60px;
         margin-top: -55vh;
         height: auto;
         width: 100%;
         margin-bottom: 5vh;
     }
     
     #content >  img{
         margin-right: 10px;
         width: 30vw; /* FIX: 20vw quedaba desproporcionado en pantallas angostas */
     }
     
     #content h1 {
         text-shadow: none;
         color: #ffffff;
         font-size: 2rem;
         margin-right: 0px;
         text-align: right;
     }

      #content h2 {
         
         margin-right: 0px;
         text-align: right;
     }
     
     
     #content h3 {
       font-size: 0.85rem; /* FIX: era "font-size: 6" (sin unidad), CSS inválido que el navegador ignoraba */
       color: rgb(255, 255, 255);
       margin: 0;
       margin-top: 4px;
       text-align: right;
     }

     #form-numero{
        display: flex;
        align-content: center;
        max-width: 100%;      /* FIX: permite que el formulario se achique en pantallas angostas */
        margin-right: 3px;    /* FIX: coherente con el resto de elementos en mobile */
     }

     .catalogo-section {
         margin-top: 4vh; /* FIX: ajustado tras corregir el offset de #content, evita solape/hueco */
     }

      #portada {
         height: 70vh;
         width: 100%; /* FIX: consistente con el fix de 100vw -> 100% */
         background-image: url('img/portada-mobile-crimpmaster.png');
         background-size: cover;
        background-position: right;
     }

     #call-button {
         margin-right: 3px;
         width: 170px;
         height: 28px;
         font-size: 12px;
     }

     .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

     .card-image {
         height: 220px; /* FIX: no estaba definido en este breakpoint, heredaba 300px de desktop
                            y saltaba bruscamente a 120px en <480px */
     }

     .catalogo-titulo {
         font-size: 1.8rem;
     }
 }

 /* ========== RESPONSIVE - MOBILE (max-width: 480px) ========== */
 @media (max-width: 480px) {

     #content {
         margin-top: -50vh; /* FIX: pequeño reajuste para pantallas muy angostas donde el texto ocupa más alto */
        margin-bottom: 20vh;
        }

     #content > img{
         width: 25vw; /* FIX: en pantallas muy pequeñas 20-30vw quedaba casi ilegible */
     }

     .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

     .card-image {
         height: 180px; /* FIX: era 120px, demasiado bajo y recortaba mucho la imagen del producto */
         font-size: 2.4rem;
     }

     .card-body h3 {
         font-size: 0.85rem;
         min-height: auto;
     }
 }