/* ================= VARIABLES ================= */
:root{
    --orange:#ff914d;
    --pink:#ff6fb7;
    --dark:#1f1f1f;
    --gray:#f5f5f5;
    --border:#e5e5e5;
    --gradient:linear-gradient(135deg,#ff914d,#ff6fb7);
}

/* ================= RESET ================= */
body{
    font-family:'Segoe UI',system-ui,sans-serif;
    background:#fafafa;
    color:var(--dark);
    overflow-x:hidden;
}

img{max-width:100%}
a{text-decoration:none;color:inherit}

/* ================= HEADER ================= */
.cime-header{
    background:white;
    border-bottom:1px solid var(--border);
    padding:22px 30px;
    position:sticky;
    top:0;
    z-index:1000;
}

.cime-header .container-fluid{
    max-width:1400px;
}

.cime-header .logo img{
    height:70px;
}

/* botón menú mobile */
.menu-btn{
    border:1px solid var(--border);
    background:white;
    border-radius:8px;
    padding:8px 12px;
    font-size:1.1rem;
}

/* ================= BUSCADOR ================= */
.search-box{
    display:flex;
    align-items:center;
    background:white;
    border-radius:50px;
    overflow:hidden;
    max-width:720px;
    margin:0 auto;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    border:2px solid transparent;
    transition:.25s;
}

.search-box:focus-within{
    border-color:var(--orange);
}

.search-box input{
    border:none;
    padding:16px 22px;
    flex:1;
    outline:none;
    font-size:1rem;
}

.search-box button{
    border:none;
    background:white;
    color:white;
    padding:0 22px;
    height:100%;
    cursor:pointer;
    transition:.3s;
}

/* ================= CONTACTO HEADER ================= */
.contact-header{
    font-size:.85rem;
    line-height:1.3;
    color:#555;
    text-align:right;
}

.contact-header strong{
    color:var(--orange);
}

/* ================= CARRITO ================= */
.cart-btn{
    border:none;
    background:white;
    border-radius:50%;
    width:48px;
    height:48px;
    box-shadow:0 6px 20px rgba(0,0,0,.12);
    position:relative;
    font-size:1.2rem;
}

.cart-btn .badge{
    background:var(--orange);
    color:white;
    position:absolute;
    top:-4px;
    right:-4px;
    border-radius:50%;
    font-size:.7rem;
    padding:3px 6px;
}

/* ================= BARRA CATEGORÍAS ================= */
.categories-bar {
  background: white;
  border-bottom: 1px solid var(--border);
}

.categories-root {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 30px;
  list-style: none;
  display: flex;
  gap: 30px;
}

.categories-root > li {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  position: relative; /* Importante para el posicionamiento del submenu */
}

.categories-root > li:hover {
  color: var(--orange);
}

/* ================= SUBMENÚ ================= */
.categories-root .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .25s;
  z-index: 100;
}

.categories-root li:hover > .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .95rem;
  white-space: nowrap;
}

.submenu li:hover {
  background: var(--gray);
}

/* ================= CATEGORÍAS HORIZONTALES ================= */
.category-sidebar {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

/* ITEM PRINCIPAL */
.category-sidebar > ul > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: background .25s ease, padding-left .25s ease;
  position: relative; /* Asegura que el submenú se posicione correctamente */
}

/* hover elegante */
.category-sidebar > ul > li:hover {
  background: #f8f9fa;
  padding-left: 22px;
}

/* flecha */
.category-sidebar > ul > li::after {
  content: "›";
  font-size: 1.2rem;
  opacity: .35;
  transition: transform .3s ease, opacity .3s ease;
}

.category-sidebar > ul > li:hover::after {
  transform: translateX(4px);
  opacity: .7;
}

/* SUBMENÚ HACIA LA DERECHA */
.submenu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 230px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: .3s ease;
}

/* MOSTRAR SUBMENÚ */
.category-sidebar li:hover > .submenu {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ITEMS SUBMENU */
.submenu li {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: .95rem;
  color: #374151;
  transition: background .2s ease, padding-left .2s ease, color .2s ease;
}

.submenu li:hover {
  background: #f1f5f9;
  color: #fd0d0d;
  padding-left: 14px;
}

.submenu li {
  transition: background 0.2s ease, padding-left 0.2s ease, transform 0.2s ease;
}

.submenu li:hover {
  transform: translateX(6px);
}

/* ================= BOTÓN FLOTANTE CATEGORÍAS (MOBILE) ================= */
.fab-categories {
    position: fixed;
    bottom: 45px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0d6efd; /* azul Bootstrap */
    color: #fff;
    border: none;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.fab-categories:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 35px rgba(0,0,0,.3);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
    z-index: 9997;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}


@media (max-width: 991px) {
    .category-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        z-index: 9998;
        transform: translateX(-120%);
        transition: transform .3s ease;
        overflow-y: auto;
        padding-top: 60px;
    }

    .category-sidebar.active {
        transform: translateX(0);
    }
}

/* ================= NOSOTROS ================= */
.about-us{
  width: 100%;
  height: 650px;
  margin-top:40px;
  margin-bottom:40px;
  padding: 0;
  background: linear-gradient(135deg, #019CDF, #42B649);
  color: white;
  display: flex;
  align-items: center;   /* centra vertical */
  overflow: hidden;
}

.about-header{
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.about-header h2{
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.about-header p{
  font-size: 1.1rem;
  opacity: .9;
}

/* Cards */
.about-card{
  background: white;
  color: #1f2937;
  border-radius: 22px;
  padding: 50px 45px;
  min-height: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  transition: .35s ease;
  position: relative;
}

/* efecto marca arriba */
.about-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:6px;
  background: linear-gradient(90deg, #019CDF, #42B649);
}

.about-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}

.about-icon{
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.about-card h3{
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.about-card p{
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color:#4b5563;
}

@media (max-width: 768px){
  .about-us{
    padding: 70px 0;
  }

  .about-header{
    margin-bottom: 40px;
  }

  .about-card{
    padding: 35px 30px;
  }
}

/* ================= HERO ================= */
.main-hero{
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
    padding: 30px 0;
}

/* QUITAR VIÑETAS Y ESPACIADOS POR DEFECTO */
.category-sidebar ul,
.category-sidebar li,
.submenu ul,
.submenu li {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

/* BARRA LATERAL CATEGORÍAS */

.category-sidebar{
    position:relative;
}

.category-sidebar > ul > li{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.category-sidebar > ul > li::after{
    content:"›";
    font-size:1.1rem;
    opacity:.4;
}

/* SUBMENÚ HACIA LA DERECHA */
.submenu{
    position:absolute;
    top:0;
    left:100%;
    width:220px;
    background:white;
    border-radius:10px;
    padding:12px 15px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    opacity:0;
    transform:translateX(10px);
    pointer-events:none;
    transition:.3s ease;
}

/* MOSTRAR SUBMENÚ */
.category-sidebar li:hover > .submenu{
    opacity:1;
    transform:translateX(0);
    pointer-events:auto;
}

.submenu li{
    padding:8px 6px;
    border-radius:6px;
    transition:.2s;
}

.submenu li:hover{
    background:var(--gray);
    padding-left:10px;
}

/* ================= HERO ================= */
.main-hero{
    background:#f3f3f3;
    padding:30px 0;
}

/* ================= CARRUSEL PREMIUM ================= */
#mainCarousel{
    width: 1800px;          /* MÁS GRANDE */
    max-width: 96vw;        /* casi pantalla completa */
    height: 500px;
    margin: 0 auto;         /* CLAVE */
    
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,.25);
    border:2px solid rgba(255,145,77,.25);
}

.hero-slide-content h1::after{
    content:"";
    display:block;
    width:70px;
    height:4px;
    margin-top:12px;
    background:linear-gradient(90deg,var(--orange),var(--pink));
    border-radius:10px;
}

.carousel-control-prev,
.carousel-control-next{
    width:50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
    background-color:rgba(255,255,255,.85);
    border-radius:50%;
    padding:10px;
    filter:none;
}

.carousel-indicators button{
    width:10px;
    height:10px;
    border-radius:50%;
    background-color:rgba(171, 231, 74, 0.5);
}

.carousel-indicators .active{
    background-color:var(--orange);
}

.carousel-item.active .hero-slide-content{
    animation: slideFadeUp .8s ease;
}

@keyframes slideFadeUp{
    from{
        opacity:0;
        transform:translateY(25px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hero-carousel{
    background:transparent;
    padding:0;
}

#mainCarousel{
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.carousel-item{
    height:500px;
    position:relative;
    background-size:cover;
    background-position:center;
    /*transition:transform .8s ease, opacity .8s ease;*/
}

/* CONTENIDO DEL SLIDE */
.hero-slide-content{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:40px;
    color:white;
}

.hero-slide-content a{
    width: 15%;            /* Eliminar el ancho fijo */
    text-align: center;
    padding: 12px 30px;     /* Hacerlo más estrecho */
    font-size: 1rem;
    background: var(--orange);
    border-radius: 25px;
    color: white;
    transition: background-color 0.3s ease;
}

.hero-slide-content a:hover {
    background: var(--pink); /* Cambia el color al pasar el cursor */
}

.hero-slide-content h1{
    color:black;
    font-size:2.8rem;
    font-weight:900;
}

.hero-slide-content p{
    color:black;
    font-size:1.2rem;
    opacity:.9;
    max-width:500px;
}

.carousel-fade .carousel-item{
    opacity:0;
    transition:opacity .9s ease-in-out;
}

.carousel-fade .carousel-item.active{
    opacity:1;
}

.cime-header{
    animation:headerFade .6s ease;
}

@keyframes headerFade{
    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===== CENTRADO REAL ABSOLUTO ===== */
.hero-carousel{
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0;
}

/* El carrusel se centra respecto a la pantalla */
#mainCarousel{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ================= ANIMACIÓN ================= */
@keyframes fadeUp{
    from{opacity:0;transform:translateY(20px)}
    to{opacity:1;transform:translateY(0)}
}

/* ================= TITULOS ================= */
.section-title{
    text-align:center;
    font-weight:800;
    font-size:2.1rem;
    margin-bottom:45px;
}

.section-title::after{
    content:"";
    width:70px;
    height:4px;
    background:var(--gradient);
    display:block;
    margin:12px auto 0;
    border-radius:10px;
}

/* ================= SLIDER ================= */
.paper-slider {
  width: 100vw;
  overflow: hidden;
  padding: 40px 0;
  background: #fff;
}

.paper-track {
  display: flex;
  gap: 25px;
  animation: scrollPaper 35s linear infinite;
  width: max-content;
}

/* ================= CARD ================= */
.paper-card {
  min-width: 150px;
  height: 200px;
  border-radius: 20px;
  padding: 15px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  color: white;
  background:
    linear-gradient(135deg, #019CDF, #42B649),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.15),
      rgba(255,255,255,0.15) 10px,
      rgba(0,0,0,0.05) 10px,
      rgba(0,0,0,0.05) 20px
    );
  transition: all .3s ease;
}

.paper-card:nth-child(4n) {
  background: linear-gradient(135deg, #F89A1C, #C52D66);
}

/* ================= IMAGEN ================= */
.paper-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper-img img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  transition: all .3s ease;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.3));
}

/* ================= TEXTO ================= */
.paper-card span {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
}

/* ================= HOVER ================= */
.paper-card:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.paper-card:hover .paper-img img {
  transform: scale(1.25) translateY(-5px) rotate(5deg);
  filter: drop-shadow(0 10px 15px rgba(0,0,0,.4));
}

/* ================= PAUSA AL HOVER ================= */
.paper-slider:hover .paper-track {
  animation-play-state: paused;
}

/* ================= ANIMACIÓN ================= */
@keyframes scrollPaper {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ================= SERVICIOS ================= */
.services-section {
  padding: 40px 0;
  background: #f8f9fb;
}

/* Header mejorado */
.services-header {
  text-align: center;
  margin-bottom: 70px;
}

.services-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #019CDF, #42B649);
  color: white;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.services-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #373435;
  margin-bottom: 10px;
}

.services-header p {
  font-size: 1.2rem;
  color: #6c757d;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Columnas */
.services-col-left {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 40px;
}

.service-card {
  border-radius: 30px;
  padding: 40px;
  color: white;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  transition: all .3s ease;
}

/* Texto */
.service-text {
  max-width: 55%;
}

.service-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.95;
}

/* Imagen */
.service-image {
  width: 45%;
  display: flex;
  align-items: center;  
  justify-content: center;  
}

.service-image img {
  max-width: 200px;
  width: 100%;
  object-fit: contain;
  transition: all .3s ease;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.3));
}

/* Collage vertical en zigzag */
.service-image.collage {
  width: 45%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: center;
  justify-items: center;
}

/* Todas las imágenes */
.service-image.collage img {
  max-width: 95px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.3));
  transition: .3s ease;
}

/* Zigzag */
.service-image.collage img:nth-child(odd) {
  transform: translateX(-12px);
}

.service-image.collage img:nth-child(even) {
  transform: translateX(12px);
}

/* Hover suave */
.big-service:hover .service-image.collage img {
  transform: scale(1.05);
}

.service-image.collage img:nth-child(3) {
  transform: scale(1.15);
}

.service-card:hover .service-image img {
  transform: scale(1.1) rotate(-4deg);
}

/* Hover */
.service-card:hover {
  transform: translateY(-10px);
}

/* .service-card:hover .service-image img {
  transform: scale(1.1) rotate(-4deg);
} */

/* Colores */
.service-blue {
  background: linear-gradient(135deg, #019CDF, #0d6efd);
}

.service-green {
  background: linear-gradient(135deg, #42B649, #198754);
}

.service-orange {
  background: linear-gradient(135deg, #F89A1C, #C52D66);
}

/* Card grande */
.big-service {
  height: 100%;
}

/* Contenido */
.service-content {
  z-index: 2;
  max-width: 60%;
}

.service-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.95;
}

/* Imagen grande */
/* .service-card img {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 220px;
  opacity: 0.95;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,.3));
  transition: all .4s ease;
} */

/* Hover */
.service-card:hover {
  transform: translateY(-12px);
}

/* .service-card:hover img {
  transform: scale(1.15) rotate(-5deg);
} */

/* Responsive */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-content {
    max-width: 100%;
  }

  .service-card img {
    width: 160px;
    right: -15px;
  }
}

/* ================= CATEGORY HERO ================= */
.category-hero {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0; /* Asegura que no haya espacio adicional debajo */
  padding: 0;      /* Remueve cualquier padding adicional */
}

/* Slide base */
.category-slide {
  height: 320px;        /* altura definitiva */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;    /* evita que rompa layout */
  margin-bottom: 0;     /* Elimina cualquier margen inferior no deseado */
  margin-top: 0;
}

/* Contenedor */
.category-slide .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* referencia para absolute */
  padding: 0; /* Elimina padding para evitar aumentar el tamaño */
}

/* Texto */
.category-content {
  max-width: 45%;
  color: white;
  z-index: 2;
}

.category-content h2 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 15px;
}

.category-content p {
  font-size: 1.2rem;
  opacity: .95;
  margin-bottom: 25px;
}

/* Botón */
.btn-category {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  background: white;
  color: #373435;
  font-weight: 700;
  text-decoration: none;
  transition: .3s;
}

.btn-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,.25);
}

/* Imagen hero */
.category-image {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 820px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,.35));
  pointer-events: none;
}

/* Fondos marca */
.bg-blue {
  background: linear-gradient(135deg, #019CDF, #0d6efd);
}

.bg-green {
  background: linear-gradient(135deg, #42B649, #198754);
}

.bg-orange {
  background: linear-gradient(135deg, #F89A1C, #C52D66);
}

/* Responsive */
@media (max-width: 991px) {
  .category-slide {
    height: 420px;
  }

  .category-slide .container {
    flex-direction: column;
    text-align: center;
  }

  .category-content {
    max-width: 100%;
  }

  .category-image {
    position: relative;
    right: 0;
    bottom: 0;
    width: 300px;
    margin-top: 30px;
  }
}

/* ================= PRODUCTOS POPULARES ================= */
.products-section {
    background: #f8fafc;
    padding-top: 120px; /* Eleva la sección */
}

/* TÍTULO */
.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--dark);
}

.section-title::after {
    content: "";
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #F89A1C, #C52D66);  /* Línea con colores de la marca */
    display: block;
    margin: 14px auto 0;
    border-radius: 10px;
}

/* GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* CARD */
.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(135deg, #F8F8F8 0%, #ffffff 100%);
}

/* Hover mejorado */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,.12);
    color: white !important; /* Forzamos el color de las letras a blanco */
}

/* IMAGEN */
.product-image {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform .3s ease; /* Añadir transición a la imagen */
}

/* Hover para la imagen (solo zoom) */
.product-card:hover .product-image img {
    transform: scale(1.1); /* Solo zoom, sin rotación */
}

/* INFO */
.product-info h6 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.product-desc {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.4;
}

/* ACCIONES */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

/* BOTÓN CARRITO */
.btn-cart {
    width: 100%;  /* Ocupa todo el ancho */
    height: 50px;
    border-radius: 25px; /* Más redondeado */
    border: none;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center; /* Asegura que el texto esté centrado */
}

/* Efecto de hover */
.btn-cart:hover {
    background-color: var(--dark);
    transform: scale(1.05);
}

/* ÍCONO Y TEXTO JUNTOS */
.btn-cart i {
    font-size: 1.1rem;
    margin-right: 10px; /* Espacio entre ícono y texto */
}

/* RESPONSIVIDAD */
@media (max-width: 768px) {
    .product-grid {
        gap: 20px;
    }
    .btn-cart {
        font-size: 0.95rem;  /* Reducimos el tamaño en pantallas pequeñas */
        padding: 10px 15px;
    }
}

/* BOTÓN CARRITO CON TEXTO */
.btn-cart i {
    font-size: 1.1rem;  /* Reducimos el tamaño del ícono */
}

/* RESPONSIVIDAD */
@media (max-width: 768px) {
    .btn-cart {
        font-size: 0.85rem;  /* Reducimos aún más el tamaño en pantallas pequeñas */
        padding: 6px 12px;
        min-width: 160px; /* Sigue siendo lo suficientemente grande en pantallas pequeñas */
    }

    .btn-cart i {
        font-size: 1rem; /* Ajustamos el tamaño del ícono en pantallas pequeñas */
    }
}

/* ================= MARCAS PRO ================= */
.brands-section {
  background: #f8fafc;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 por fila */
  gap: 20px;
}

/* Card */
.brand-card {
  background: white;
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: .3s;
  cursor: pointer;
}

/* Hover elegante */
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(13,110,253,.25);
}

/* brillo sutil */
.brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: .4s;
}

/* Logo */
.brand-card img {
  width: 100%;
  max-width: 160px;
  height: 100px;
  object-fit: contain;
}


/* Nombre */
.brand-card span,
.brand-card h4 {
  font-size: .85rem;
  font-weight: 700;
  color: #0d6efd;
  display: block;
}

.brand-card span {
  font-size: .85rem;
  font-weight: 600;
  color: #1f3b6f;
  transition: color .3s;
}

/* Hover pro */
.brand-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 30px rgba(13,110,253,0.25);
  border-color: #0d6efd;
}

.brand-card:hover::after {
  opacity: 1;
}

.brand-card:hover img {
  transform: scale(1.12);
}

.brand-card:hover span {
  color: #0d6efd;
}

@media (max-width: 992px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= FOOTER ================= */
.footer{
    background:#1a1a1a;
    color:#aaa;
    padding:20px;
    font-size:.85rem;
}

/* ================= RESPONSIVE ================= */
@media(max-width:991px){
    .categories-bar{
        display:none;
    }

    .search-box{
        max-width:100%;
    }

    .contact-header{
        display:none;
    }

    .hero-carousel{
        padding:30px;
    }
}

/* ================= CONTACTO CORPORATIVO ================= */
.contact-corporate{
    background:#f8fafc;
    position:relative;
}

/* DETALLE PAPELERÍA (líneas tipo hoja) */
.contact-corporate::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 28px,
            rgba(0,0,0,.03) 29px
        );
    pointer-events:none;
}

/* TEXTO */
.contact-tag{
    display:inline-block;
    font-size:.75rem;
    font-weight:600;
    color:var(--orange);
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.contact-title{
    font-size:2.4rem;
    font-weight:800;
    line-height:1.2;
    margin-bottom:16px;
}

.contact-text{
    font-size:1.05rem;
    color:#555;
    margin-bottom:20px;
}

.contact-list{
    list-style:none;
    padding:0;
}

.contact-list li{
    font-size:1rem;
    margin-bottom:10px;
}

/* TARJETA FORMULARIO */
.contact-card{
    background:white;
    padding:32px;
    border-radius:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.12);
    border-left:6px solid var(--orange);
}

/* INPUTS */
.contact-card label{
    font-size:.85rem;
    font-weight:600;
    margin-bottom:4px;
    display:block;
}

.contact-card .form-control{
    border-radius:10px;
    border:1px solid #ddd;
    padding:12px;
}

.contact-card .form-control:focus{
    border-color:var(--orange);
    box-shadow:0 0 0 3px rgba(255,145,77,.15);
}

/* BOTÓN */
.contact-card .btn{
    padding:12px 28px;
    font-weight:600;
    border-radius:10px;
}

/* ================= CONTACTO CORPORATIVO ================= */
.contact-corporate{
    background:#f8fafc;
    position:relative;
}

/* DETALLE PAPELERÍA (líneas tipo hoja) */
.contact-corporate::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 28px,
            rgba(0,0,0,.03) 29px
        );
    pointer-events:none;
}

/* TEXTO */
.contact-tag{
    display:inline-block;
    font-size:.75rem;
    font-weight:600;
    color:var(--orange);
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.contact-title{
    font-size:2.4rem;
    font-weight:800;
    line-height:1.2;
    margin-bottom:16px;
}

.contact-text{
    font-size:1.05rem;
    color:#555;
    margin-bottom:20px;
}

.contact-list{
    list-style:none;
    padding:0;
}

.contact-list li{
    font-size:1rem;
    margin-bottom:10px;
}

/* TARJETA FORMULARIO */
.contact-card{
    background:white;
    padding:32px;
    border-radius:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.12);
    border-left:6px solid var(--orange);
}

/* INPUTS */
.contact-card label{
    font-size:.85rem;
    font-weight:600;
    margin-bottom:4px;
    display:block;
}

.contact-card .form-control{
    border-radius:10px;
    border:1px solid #ddd;
    padding:12px;
    width:100% !important;
}

.contact-card .form-control:focus{
    border-color:var(--orange);
    box-shadow:0 0 0 3px rgba(255,145,77,.15);
}

/* BOTÓN */
.contact-card .btn{
    padding:12px 28px;
    font-weight:600;
    border-radius:10px;
}

/* ================= CONTACTO CORPORATIVO ================= */
.contact-corporate{
    background:#f8f9fa;  /* Color de fondo suave */
    padding: 60px 0;
}

/* TÍTULOS */
.contact-title{
    font-size:2.4rem;
    font-weight:700;
    margin-bottom:15px;
    line-height:1.3;
}

.contact-text{
    font-size:1rem;
    color:#555;
    margin-bottom:20px;
}

.contact-list{
    list-style:none;
    padding:0;
}

.contact-list li{
    font-size:1rem;
    margin-bottom:8px;
}

/* FORMULARIO */
.contact-card{
    background:#fff;
    padding:32px;
    border-radius:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.12);
}

/* ESTILO PARA LOS INPUTS */
.contact-card input,
.contact-card textarea{
    border-radius:8px;
    border:1px solid #ccc;
    padding:12px;
    font-size:.95rem;
}

/* TEXTO DEL BOTÓN */
.contact-card .btn-send-paper{
    position:relative;
    background:white;
    color:#333;
    border:2px solid var(--orange);
    padding:14px 36px;
    font-weight:600;
    border-radius:12px;
    overflow:hidden;
    transition:.3s;
    min-width:260px;
}

/* ANIMACIÓN PAPEL Y ESTILOS */
.contact-card .btn-send-paper .paper{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%) scale(.5);
    opacity:0;
    transition:.4s ease;
    font-size:1.4rem;
}

/* Efecto de hover en el botón */
.contact-card .btn-send-paper:hover{
    background:var(--orange);
    color:white;
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(255,145,77,.35);
}

/* Asegura que el formulario sea responsivo */
@media (max-width: 991px){
    .contact-corporate{
        padding: 40px 15px;
    }

    .contact-card{
        padding:24px;
    }
}

