:root {
    --metal-dark: #1a1a1a;
    --metal-medium: #2c3e50;
    --metal-light: #7f8c8d;
    --chrome: #ecf0f1;
    --chrome-light: #f8f9fa;
    --accent: #ff1900;
    --accent-rgb: 255, 51, 102;
    --accent-dark: #a71100;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: radial-gradient(circle,rgba(189, 189, 189, 1) 0%, rgba(255, 255, 255, 1) 58%, rgba(122, 109, 109, 1) 100%);
    padding-top: 70px; /* Espacio para header fijo */
}

/* ============================================
   HEADER METÁLICO CON TEXTURA
============================================ */
.header-metal {
    background: url('../images/textura-metal.jpg') center center / cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    border-bottom: 3px solid var(--accent);
    transition: all 0.3s ease;
}

/* Overlay para mejor legibilidad */
.header-metal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.37);
    z-index: -1;
}

.header-scrolled {
    padding: 5px; 
    background: rgba(255, 0, 0, 0.493);
}

.navbar {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
    height: 90px;
}

.logo-metal {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 180px;
    width: auto;
    filter: brightness(1.4) ;
    transition: transform 0.6s ease;
}

.logo-metal:hover .logo-img {
    transform: scale(1.15);
}

.navbar-toggler {
    border: 2px solid var(--chrome);
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: var(--accent);
    background: rgba(231, 76, 60, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--chrome) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-collapse {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0 0 8px 8px;
    margin-top: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(231, 76, 60, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
        margin-top: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    padding: 100px 0;   
    background:rgba(0, 0, 0, 0.877) 100%;
    color: rgb(255, 255, 255);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;    
    pointer-events: none;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.726);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-metal {
    background: linear-gradient(145deg, 
        var(--accent) 0%, 
        var(--accent-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-metal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
    color: white;
}

.btn-outline-metal {
    background: transparent;
    color: var(--chrome);
    border: 2px solid var(--chrome);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-metal:hover {
    background: rgba(236, 240, 241, 0.1);
    color: white;
    border-color: white;
}

.hero-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 3px solid rgba(236, 240, 241, 0.1);
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(236, 240, 241, 0.3), 
        rgba(127, 140, 141, 0.3));
    border-radius: 10px;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}


/* ============================================
   SERVICIOS
============================================ */
.servicio-card {
    background: linear-gradient(0deg,rgb(110, 0, 0) 34%, rgba(255, 0, 0, 1) 60%, rgba(173, 0, 0, 1) 76%);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0 7px 15px rgb(0, 0, 0);
    transition: all 0.25s ease;
    border: 2px solid transparent;
    border-top: 4px solid var(--accent);
    text-decoration: none;
    color: white;
    display: block;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.1);
}


/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--metal-dark);
    color: var(--chrome);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/textura-metal-dark.jpg');
    opacity: 0.5;
    pointer-events: none;
}

.footer-brand {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.footer-brand .logo-img {
    height: 130px;
    
}

.footer-text {
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1;
}

.footer-title {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1.0rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
    min-width: 20px;
    margin-top: 0.25rem;
}

.footer-contact span {
    opacity: 0.9;
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-social a {
    color: var(--chrome);
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent);
}

.footer-newsletter {
    position: relative;
    z-index: 1;
}

.footer-subtitle {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    color: white;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 1.5rem;
    cursor: pointer;
    font-weight: 600;
    min-width: 50px;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-dark);
}

.footer-bottom {
    opacity: 0.7;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}


/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .catalogo-gallery {
        height: 200px;
    }

    .logo-img {
    height: 150px;
    width: auto;
    filter: brightness(1.4) ;
    transition: transform 0.6s ease;
}
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    
    .hero {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .gallery-thumbs {
        opacity: 1;
    }

    .logo-img {
    height: 140px;
    width: auto;
    filter: brightness(1.4) ;
    transition: transform 0.6s ease;
}
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        width: 100%;
    }
    
    .catalogo-actions {
        flex-direction: column;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 0.75rem;
    }

    .logo-img {
    height: 130px;
    width: auto;
    filter: brightness(1.4) ;
    transition: transform 0.6s ease;
}
}


/* ============================================
   ANIMACIONES
============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/** fondo para titulo en  /producto.html **/

.title-product-1 {
  position: relative;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  background: url('../images/textura-metal-title.webp') center / cover no-repeat;
  color: #000000;
  text-align: center;
  overflow: hidden;
}

.title-product-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(255, 0, 0, 0.308),
      rgba(212, 0, 0, 0.815)
    );
  pointer-events: none;
}

.title-product-1 h2 {
  position: relative;
  z-index: 1;

  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;

  color: #ffffff;

  text-shadow:
    0 4px 11px rgb(92, 0, 0),
    0 0 24px rgb(0, 0, 0);
}

.title-product-1 p {
  position: relative;
  z-index: 1;

  max-width: 650px;
  margin: .75rem auto 0;

  font-size: 1.05rem;
  font-weight: 500;

  color: #ffffff;

  text-shadow:
    0 4px 5px rgb(0, 0, 0);
}

/* ============================================
   CONTENEDOR GENERAL
============================================ */
.catalogo {
  background: radial-gradient(
    circle,
    #cfcfcf 0%,
    #ffffff 55%,
    #8a8a8a 100%
  );
}

/* ============================================
   TARJETA
============================================ */
.catalogo-item {
  height: 100%;
  max-width: 320px;
  margin: auto;
  border-radius: 40px;
  overflow: hidden;

  background: linear-gradient(
    145deg,
    #6f6f6f,
    #2e2e2e
  );

  border: 1px solid rgba(0,0,0,.7);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.15),
    0 10px 25px rgba(0,0,0,.45);

  transition: transform .2s ease, box-shadow .2s ease;
}

.catalogo-item:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.2),
    0 18px 35px rgba(0,0,0,.55);
}

/* ============================================
   LINK
============================================ */
.catalogo-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ============================================
   MEDIA / IMAGEN
============================================ */
.catalogo-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.catalogo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

.catalogo-item:hover .catalogo-media img {
  transform: scale(1.04);
}

/* ============================================
   VIDEO BADGE
============================================ */
.catalogo-video-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .7rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  letter-spacing: .05em;
}

/* ============================================
   INFO
============================================ */
.catalogo-info {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: .35rem;
  flex-grow: 1;
}

/* ============================================
   CATEGORÍA
============================================ */
.catalogo-category {
  text-align: center;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #f1f1f1;
  opacity: .85;
}

/* ============================================
   TÍTULO
============================================ */
.catalogo-title {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  margin: .2rem 0;
}

/* ============================================
   DESCRIPCIÓN (3 LÍNEAS FIJAS)
============================================ */
.catalogo-desc {
  font-size: .8rem;
  line-height: 1.4;
  color: #e3e3e3;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 3);
}


/* ============================================
   META (CATEGORÍA · COMBUSTIBLE · TIPO)
============================================ */
.catalogo-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .3rem;
}

.catalogo-meta span {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .55rem;
  border-radius: 999px;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,.15),
    rgba(0,0,0,.35)
  );

  color: #f2f2f2;

  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.15);
}

.hero-internal {
  min-height: 60vh;
  background: url('../images/hero-texture.webp') center/cover no-repeat;
  color: #fff;
}


.image-break {
  width: 100%;
  margin: 0;
  margin: 60px 0;
}

.image-break img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}


/* ===============================
   WHATSAPP FLOAT CTA
================================ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(0,0,0,.35);
  z-index: 9999;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
  color: #fff;
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    right: 15px;
    bottom: 15px;
  }
}

@media (min-width: 992px) {
    .sticky-lg-top {
        top: 180px !important; /* Ajusta según el alto de tu header */
    }
}

.object-fit-cover {
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
}

#producto-thumbs img {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#producto-thumbs img:hover {
    transform: translateY(-3px);
    border-color: #dc3545; /* El color rojo/danger de tu marca */
}

/* Scrollbar estética para los thumbnails en móvil */
#producto-thumbs::-webkit-scrollbar {
    height: 4px;
}
#producto-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Badge Personalizado */
.badge-custom-metal {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(145deg, #2c3e50, #000000);
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Efecto para resaltar el primer elemento (el tipo de producto) */
.badge-custom-metal:first-child {
    background: #dc3545; /* Rojo vibrante para resaltar "PARRILLA" */
    border-color: #b02a37;
}

/* contact page socials**/
.contact-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-social a {
    color: var(--chrome);
    background: rgb(255, 255, 255);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgb(63, 63, 63);
}

.contact-social a:hover {
    background: rgba(128, 128, 128, 0.432);
    color: white;
    transform: translateY(-3px);
    border-color: white;
}
