:root {
    --azul-epp: #111F55;
    --naranja-epp: #FF6A00;
}

/* Topbar */
.topbar {
    background-color: var(--azul-epp);
}

.topbar i {
    color: var(--naranja-epp);
}

/* === MENÚ ESTILO TABS === */
.navbar-nav {
    background: #EBEBEB; /* gris claro como ejemplo */
    /*border-top: 3px solid var(--azul-epp);
    border-bottom: 3px solid var(--azul-epp);
    border-radius: 4px;*/
}

/* Enlaces del menú */
.nav-link {
    font-weight: 600;
    padding: 12px 30px !important;
    color: var(--azul-epp) !important;
    position: relative;
    transition: all 0.2s ease-in-out;
}

/* línea inferior sutil */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background: var(--azul-epp);
    transition: width 0.2s ease-in-out;
}

/* Hover: subrayado */
.nav-link:hover::after {
    width: 100%;
}

/* Activo: subrayado persistente */
.nav-link.active::after {
    width: 100%;
}

/* Separadores entre opciones */
.nav-item:not(:last-child) {
    border-right: 1px solid #fff;
}

/* Hover */
.nav-link:hover {
    color: var(--naranja-epp) !important;
    background: rgba(255, 106, 0, 0.08); /* leve naranja */
}

/* Activo */
.nav-link.active {
    font-weight: 700;
    color: var(--naranja-epp) !important;
}

.navbar .nav-link i {
    font-size: 22px;
}

/* Carrito */
.nav-link i {
    font-size: 22px;
    color: var(--azul-epp);
}

.nav-link i:hover {
    color: var(--naranja-epp);
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.nav-item.position-relative {
    position: relative;
}

.nav-item.position-relative .nav-link {
    display: flex;
    align-items: center;
}

.navbar-toggler-icon {
    filter: brightness(0) saturate(100%) invert(12%) sepia(66%) saturate(3374%) hue-rotate(212deg) brightness(93%) contrast(97%);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -10px;
    font-size: 12px;
    padding: 3px 6px;
    line-height: 1;
    color: #fff;
}

.hero-text {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 1s ease forwards;
}

/* BANNERS  */
.hero-banner {
    background: linear-gradient(90deg, var(--azul-epp) 0%, #0b163f 100%);
    min-height: 450px;
    padding: 60px 0;
}

.hero-banner img {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeRight 1.3s ease forwards 0.2s;
}

.hero-banner h1 {
    font-size: 2.8rem;
}

.hero-banner p {
    font-size: 1.25rem;
}

.hero-benefit {
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}
.hero-benefit:nth-child(1) { animation-delay: .6s; }
.hero-benefit:nth-child(2) { animation-delay: .8s; }
.hero-benefit:nth-child(3) { animation-delay: 1s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

#servicio-cliente h2 {
    color: var(--azul-epp);
    letter-spacing: 1px;
}

.accordion-button {
    font-weight: 600;
    color: var(--azul-epp);
    background-color: transparent;
}

.accordion-button:not(.collapsed) {
    color: var(--naranja-epp);
    background-color: rgba(255, 106, 0, 0.05);
    border-left: 3px solid var(--naranja-epp);
}

.accordion-button i {
    color: var(--azul-epp);
}

.accordion-button:not(.collapsed) i {
    color: var(--naranja-epp);
}

/* Quitar fondo y bordes en acordeón activo */
.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    box-shadow: none !important;
    border-left: 3px solid var(--naranja-epp);
}

/* Quitar foco azul al hacer clic */
.accordion-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Mantener color cuando está activo */
.accordion-button:not(.collapsed) {
    color: var(--naranja-epp);
}

/* Iconos acordeón activo */
.accordion-button:not(.collapsed) i {
    color: var(--naranja-epp) !important;
}

.brands-swiper .swiper-slide {
  width: auto;                 /* clave para 'auto' */
  display: flex; align-items: center; justify-content: center;
  padding: 0 50px;
}
.brands-swiper img {
  height: 80px; filter: grayscale(100%); opacity: .8;
  transition: .3s; }
.brands-swiper img:hover { filter: none; opacity: 1; transform: scale(1.08); }

/* === TÍTULOS DE SECCIÓN === */
h3.section-title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--azul-epp);
  margin-bottom: 1.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

/* línea decorativa naranja */
h3.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 3px;
  background-color: var(--naranja-epp);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* versión sobre fondo oscuro */
.bg-dark h3.section-title,
.hero-banner h3.section-title {
  color: #fff;
}

/* Centrar y uniformar títulos de sección */
.section-title {
  display: block;                  /* fuerza bloque completo */
  text-align: center;
  width: 100%;
  margin: 0 auto 1.8rem auto;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--azul-epp);
  position: relative;
  padding-bottom: 8px;
}

/* Línea decorativa */
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--naranja-epp);
  border-radius: 2px;
}

/* === PRODUCTOS DESTACADOS === */
.product-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: #fff;
}
.product-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 25px rgba(17, 31, 85, 0.15), 0 0 15px rgba(255, 106, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 35px rgba(17, 31, 85, 0.15), 0 0 25px rgba(255, 106, 0, 0.15);
}

/* Imagen cuadrada */
.product-image {
  aspect-ratio: 4 / 3;       /* mantiene proporción original */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #c3c3c3;
  background: #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* muestra toda la imagen */
  padding: 8px;
  transition: transform .4s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}

/* Botón */
.btn-add-cart {
  background-color: #005eff;
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: background-color .3s ease;
}

.btn-add-cart:hover {
  background-color: var(--naranja-epp);
}

/* Ver más */
.btn-outline-primary {
  color: var(--azul-epp);
  border-color: var(--azul-epp);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--azul-epp);
  color: #fff;
}


/* Animación de entrada suave (si no usas AOS) */
[data-aos] {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Botones de filtro */
.btn-filter {
  border: 2px solid var(--azul-epp);
  color: var(--azul-epp);
  border-radius: 25px;
  padding: 6px 18px;
  font-weight: 600;
  margin: 0 6px 8px;
  background: transparent;
  transition: all 0.25s ease;
}
.btn-filter:hover,
.btn-filter.active {
  background: var(--naranja-epp);
  border-color: var(--naranja-epp);
  color: #fff;
}

/* === DETALLE DE PRODUCTO === */
.product-gallery {
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s ease;
}
.product-gallery img {
  width: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-gallery:hover img {
  transform: scale(1.05);
}


/* === CARRITO === */
.table {
  vertical-align: middle;
}

.table thead th {
  background-color: var(--azul-epp);
  color: #fff;
  border: none;
}

.cantidad-input {
  width: 70px;
  text-align: center;
  font-weight: 600;
}

.remove-item i {
  font-size: 16px;
}

/* Botón general */
.btn-add-cart {
  background-color: var(--naranja-epp);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  transition: background-color .3s ease, transform .2s ease;
}
.btn-add-cart:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
}



/* Ajustes responsivos */
@media (max-width: 992px){
    .navbar-nav {
        background: none;
        border: none;
    }
    .nav-item {
        border: none !important;
    }
    .nav-link {
        padding: 10px 15px !important;
    }
}

@media (max-width: 768px){ .brands-swiper .swiper-slide{ padding: 0 30px } .brands-swiper img{ height: 60px } }

@media (max-width: 576px) {
    .navbar {
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
    }

    .navbar-brand img {
        max-height: 48px; /* más compacto en celulares */
    }
    .cart-count {
        top: -6px;
        right: -8px;
        font-size: 11px;
    }
    .navbar .nav-link i {
        font-size: 24px;
    }
    .nav-link i {
        font-size: 24px;
    }

    /* BANNER */
    .hero-banner {
        text-align: center;
        padding: 40px 0;
        min-height: auto;
    }
    .hero-banner h1 {
        font-size: 2rem;
    }
    .hero-banner img {
        display: none;
    }

    .brands-swiper .swiper-slide{ padding: 0 22px } .brands-swiper img{ height: 50px }

    .section-title {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
      }
}