/*
  Famatex Styles
  Clonado de www.famatex.pe
  Aplicado sobre Startup Template
*/

/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
  --color-verde-famatex: #009691;
  --color-verde-oscuro: #36A287;
  --color-amarillo-famatex: #FFB344;
  --color-gris-famatex: #393939;
  --color-gris-claro: #f3f5f6;
  --color-gris-borde: #ECECEC;
  --color-blanco: #ffffff;
  --color-rojo-famatex: #E60032;

  /* Override Startup template */
  --primary: #009691;
  --secondary: #FFB344;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Nunito", sans-serif !important;
  color: var(--color-gris-famatex);
  line-height: 1.7;
}

img {
  max-width: 100%;
}

/* ============================================
   LAYOUT CONTAINER
   ============================================ */
.conteiner {
  max-width: 120rem;
  width: 95%;
  margin: 0 auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.button {
  background-color: var(--color-amarillo-famatex);
  color: var(--color-gris-famatex);
  padding: 0.8rem 3rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 3rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button-chatear {
  background-color: var(--color-verde-famatex);
  color: var(--color-blanco);
}

.header-button {
  padding: 0.9rem 3rem;
  display: none;
  font-size: 1.6rem;
  text-decoration: none;
  border-radius: 3rem;
  line-height: 1;
  background-color: var(--color-amarillo-famatex);
  color: var(--color-gris-famatex);
  font-weight: 600;
  transition: all 0.3s ease;
}

@media (min-width: 990px) {
  .header-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
}

.header-button .fab.fa-whatsapp,
.header-button i {
  font-size: 2rem;
}

.color-verde {
  color: var(--color-verde-famatex);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #fbfbfe;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #c8cdd0;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0a7ac;
}

/* ============================================
   TOPBAR - Ajuste de fuente por override REM
   ============================================ */
.container-fluid.bg-dark.px-5 small {
  font-size: 13px;
}
.container-fluid.bg-dark.px-5 .btn-sm-square {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

/* Solo ocultar el navbar Bootstrap, no el topbar */
nav.navbar {
  display: none !important;
}

/* ============================================
   FAMATEX HEADER
   ============================================ */
.site-header {
  background-color: var(--color-verde-famatex);
  /* background-color: #ffffff; */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.barra {
  height: 6.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .barra {
    height: 7.5rem;
  }
}

/* Logo */
.barra .logo a {
  display: inline-block;
  padding: 1rem 0;
}

.barra .logo img {
  width: 16rem;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .barra .logo img {
    width: 20rem;
  }
}

/* Header Right */
.header-rigth {
  display: flex;
  align-items: center;
}

/* WhatsApp mobile icon */
.box-phone-whatsapp a {
  line-height: 1;
  vertical-align: middle;
}

.box-phone-whatsapp .fa-whatsapp {
  color: var(--color-blanco);
  font-size: 2.8rem;
  line-height: 1;
  padding: 1rem 0 1rem 0.8rem;
  animation: enLinea 1s infinite alternate;
  transition: all ease 0.2s;
}

.box-phone-whatsapp .fa-whatsapp:hover {
  transform: scale(1.2);
}

@media (min-width: 990px) {
  .box-phone-whatsapp {
    display: none;
  }
}

/* Hamburger menu */
.menu-mobile {
  width: 2.5rem;
  height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-left: 2rem;
}

.menu-mobile span {
  background-color: var(--color-blanco);
  width: 100%;
  height: 0.3rem;
  border-radius: 0.1rem;
  transition: all ease 0.3s;
}

@media (min-width: 990px) {
  .menu-mobile {
    display: none;
  }
}

/* Navigation */
.navigation {
  position: absolute;
  top: 6.4rem;
  background-color: var(--color-blanco);
  width: 100%;
  right: 0;
  left: 0;
  display: none;
  z-index: 1000;
  padding: 0 2rem 2rem 2rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.navigation ul {
  margin: 0;
  padding: 0;
}

.navigation ul li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.navigation ul li:last-child {
  border-top: 0;
}

.navigation .navigation__item {
  display: block;
  cursor: pointer;
  padding: 1rem 1rem;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--color-gris-famatex);
  font-weight: 500;
  line-height: 1;
  margin: 0.5rem 0;
  transition: all ease 0.3s;
  border-radius: 0.5rem;
}

.navigation .navigation__item:hover {
  background-color: var(--color-gris-claro);
  color: var(--color-verde-famatex);
}

/* Dropdown */
.menu-lista-deplegable {
  display: none;
  padding-left: 2rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all ease 0.4s;
  pointer-events: none;
}

.menu-lista-deplegable.activo {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.navigation__item i {
  margin-left: 0.5rem;
  transition: transform ease 0.3s;
}

.navigation__item.activo i {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .navigation {
    top: 7.5rem;
  }
}

/* Desktop navigation */
@media (min-width: 990px) {
  .navigation {
    display: block;
    position: relative;
    top: 0;
    width: auto;
    order: -1;
    padding: 0;
    background-color: var(--color-verde-famatex);
    box-shadow: none;
  }

  .navigation .navigation__item {
    color: var(--color-blanco);
  }

  .navigation .navigation__item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-blanco);
  }

  .navigation ul {
    display: flex;
    align-items: center;
  }

  .navigation ul li {
    border-top: none;
    position: relative;
  }

  .navigation ul li .menu-lista-deplegable li {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .menu-lista-deplegable.activo {
    position: absolute;
    top: 5rem;
    background-color: var(--color-blanco);
    min-width: 280px;
    z-index: 1000;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .menu-lista-deplegable li .navigation__item {
    padding: 1.2rem 2rem;
    display: block;
    margin: 0;
    color: var(--color-gris-famatex);
    width: 100%;
    border-radius: 0;
    font-size: 1.4rem;
    transition: all ease 0.3s;
  }

  .menu-lista-deplegable li .navigation__item:hover {
    background-color: var(--color-verde-famatex);
    color: var(--color-blanco);
  }

  .menu-lista-deplegable {
    padding: 0.5rem 0;
  }
}

@media (max-width: 989px) {
  .menu-lista-deplegable {
    position: relative;
    opacity: 0;
    transform: translateY(-10px);
    transition: all ease 0.3s;
    max-height: 0;
    overflow: hidden;
  }

  .menu-lista-deplegable.activo {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
    display: block !important;
  }
}

/* ============================================
   CAROUSEL / SLIDER FIXES
   ============================================ */
/* Restore Bootstrap carousel to look correct with rem override */
.carousel-caption h5 {
  font-size: 14px !important;
}

.carousel-caption h1 {
  font-size: clamp(24px, 5vw, 60px) !important;
  font-weight: 700 !important;
}

.carousel-caption .btn {
  font-size: 14px !important;
  padding: 12px 28px !important;
}

/* ============================================
   PRODUCT SECTIONS
   ============================================ */
.seccion-productos {
  text-align: center;
  padding: 6rem 0 0 0;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.seccion-productos__titulo {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
}

.seccion-productos__titulo span {
  color: var(--color-verde-famatex);
}

.seccion-productos__parrafo {
  margin: 0;
  font-size: 1.6rem;
  margin-top: 1rem;
  color: #666;
}

.boton-ver-todo {
  background-color: var(--color-verde-famatex);
  color: var(--color-blanco);
  border: 1px solid var(--color-verde-famatex);
  padding: 0.8rem 3rem;
  text-decoration: none;
  display: block;
  border-radius: 3rem;
  font-size: 1.6rem;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.boton-ver-todo:hover {
  background-color: transparent;
  color: var(--color-verde-famatex);
}

@media (min-width: 480px) {
  .seccion-productos__titulo {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .seccion-productos {
    justify-content: space-between;
    flex-direction: row;
  }

  .seccion-productos__titulo {
    font-size: 4rem;
    text-align: left;
  }

  .seccion-productos__parrafo {
    font-size: 1.8rem;
    text-align: left;
  }
}

/* Product Cards */
.card-productos {
  text-align: center;
  padding: 2rem 2rem 2.5rem 2rem;
  border: solid 0.1rem var(--color-gris-borde);
  border-radius: 2rem;
  background-color: var(--color-blanco);
  transition: all ease-in 0.2s;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-gris-famatex);
  height: 100%;
}

.card-productos:hover {
  box-shadow: rgba(67, 58, 37, 0.15) 1px 5px 15px 1px;
  color: var(--color-gris-famatex);
}

.card-productos .title h2 {
  font-size: 1.8rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 700;
  padding: 1rem 0 0 0;
  border-top: solid 0.1rem var(--color-gris-borde);
}

.card-productos .title {
  position: relative;
}

.card-productos .imagen {
  margin: 0;
  position: relative;
}

.card-productos .imagen__producto {
  display: block;
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem 0;
  max-height: 200px;
  object-fit: contain;
}

/* Product characteristics */
.caracteristicas {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  padding: 1.5rem 0 3rem 0;
  grid-gap: 1rem;
  justify-content: space-between;
  position: relative;
}

.item__caracteristicas .item__clave {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.item__caracteristicas .item__clave img {
  width: 16px;
  height: 16px;
}

.item__caracteristicas .item__clave h4 {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
}

.item__caracteristicas .item__valor p {
  margin: 7px 0 0 0;
  padding: 0;
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
  line-height: 1;
}

.item__caracteristicas--linea {
  border-left: 1px solid var(--color-gris-borde);
}

/* Card button */
.boton-card {
  background-color: var(--color-blanco);
  color: var(--color-verde-famatex);
  border: 1px solid var(--color-verde-famatex);
  padding: 0.8rem 3rem;
  text-decoration: none;
  display: block;
  border-radius: 3rem;
  font-size: 1.6rem;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.card-productos:hover .boton-card {
  background-color: var(--color-verde-famatex);
  color: var(--color-blanco);
}

/* ============================================
   PRODUCT SWIPER
   ============================================ */
.swiper-container-product {
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 50px;
  position: relative;
  height: auto;
}

.swiper-slide.product-slider {
  background-position: center;
  background-size: cover;
  width: 310px;
}

.swiper-button-prev,
.swiper-button-next {
  background-color: var(--color-blanco) !important;
  border-radius: 100%;
  color: var(--color-verde-famatex) !important;
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.35);
  width: 45px !important;
  height: 45px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  text-align: center;
  width: 30px !important;
  height: 30px !important;
  font-size: 18px !important;
  font-weight: 800;
  border: 2px solid var(--color-verde-famatex) !important;
  border-radius: 100%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-pagination-bullet-active {
  background-color: var(--color-verde-famatex) !important;
}

/* Multiple swipers - isolate nav buttons */
.swiper-container-product .swiper-button-prev,
.swiper-container-product .swiper-button-next {
  position: absolute;
}

/* ============================================
   MAIN SECTION WRAPPER
   ============================================ */
.main-productos {
  overflow: hidden;
  padding-bottom: 4rem;
}

/* ============================================
   FOOTER - Se mantiene el footer Bootstrap original del template
   ============================================ */
/* Asegurar que el texto del footer sea legible con rem override */
.container-fluid.bg-dark .section-title h3,
.container-fluid.bg-dark p,
.container-fluid.bg-dark a {
  font-size: 16px;
}

.container-fluid.bg-dark h1 {
  font-size: 32px;
}

.container-fluid.bg-dark h3 {
  font-size: 22px;
}


/* Also hide original back-to-top and keep Famatex style */
.back-to-top {
  background-color: var(--color-verde-famatex) !important;
  border-color: var(--color-verde-famatex) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes enLinea {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

@keyframes wpIcon {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 576px) {
  .seccion-productos {
    padding: 4rem 0 0 0;
  }

  .swiper-slide.product-slider {
    width: 280px;
  }
}
