/* fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --main-color: #4e6554;
  --accent-color: #9bcca9;
  --footer-color: #4e6554;
  --white-accent: #e9e9e9;
  --btn-color: #C46A3A;
  /* extra */
  --black: #434343;
  --black-dark: #000000;
  --white: #fff;

  /* fonts */
  --fs-12-16: clamp(0.75rem, 0.7037rem + 0.2469vw, 1rem);
  --fs-12: clamp(0.75rem, 0.7269rem + 0.1235vw, 0.875rem);
  --fs-14: clamp(0.875rem, 0.8519rem + 0.1235vw, 1rem);
}

* {
  font-family: "Montserrat", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  color: var(--black);
}

.--swiper-theme-color {
  color: var(--accent-color) !important;
}

/* reset */
body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:visited {
  color: inherit;
}

ul {
  list-style-type: none;
}

h1,
.h1 {
  font-size: 28px;
}

h2,
.h2 {
  font-size: 24px;
}

h3,
.h3 {
  font-size: 22px;
}

h4,
.h4 {
  font-size: 20px;
}

h5,
.h5 {
  font-size: 18px;
}

h6,
.h6 {
  font-size: 16px;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}
.navbar-toggler {
  border-radius: 0;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.11rem;
}

.nav-link {
  color: var(--black) !important;
  font-size: 0.875rem;
}

.dropdown-menu {
  border: none;
}

.btn-outline-dark {
  border-radius: 30px;
  border-color: var(--main-color);
  color: var(--main-color);
}

.btn-outline-dark:hover {
  background-color: var(--btn-color) !important;
  border-color: var(--btn-color);
  color: var(--white);
}

.btn-sumar {
  background-color: #8a8a8a;
  border-color: #8a8a8a;
  color: var(--white) !important;
}
.btn-sumar:hover {
  background-color: var(--btn-color) !important;
  border-color: var(--btn-color);
  color: var(--white) !important;
}

.owl-nav {
  display: none;
}

.form-select {
  border-radius: 0;
}

.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: none;
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.form-check-input:focus {
  box-shadow: none;
}

.btn-secondary {
  color: var(--white) !important;
  background-color: var(--black-dark);
  border-color: var(--black);
  border-radius: 30px;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  color: var(--black);
  /* Cambia el color del texto a negro en hover/focus/active */
  background-color: var(--black);
  /* Cambia el fondo a blanco en hover/focus/active */
  border-color: var(--black);
  /* Mantén el borde negro */
  box-shadow: none;
  /* Elimina el box-shadow en hover/focus/active */
}

.card {
  border: none;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
}

/* Foto y card con las mismas esquinas redondeadas */
.card > a:first-of-type {
  display: block;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}
.card img {
  border-radius: 0;
  display: block;
  vertical-align: middle;
}
.card-body {
  padding: 0;
  border-radius: 0 0 30px 30px;
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination,
.swiper-pagination-clickable {
  color: var(--accent-color) !important;
}

.btn-success {
  border-radius: 30px;
  background-color: var(--btn-color);
  color: white !important;
  border: none;
}

.btn-success:hover {
  background-color: #ff7f3a;
  /* Color más claro en hover */
  color: black;
  /* Texto negro en hover */
}

.btn {
  border-radius: 30px;
}
.btn:not(.w-100) {
  max-width: 220px;
}

.section-destacados .btn-destacado {
  width: 200px !important;
}

.section-destacados .form-agregar-destacado .btn-destacado,
.section-productos .form-agregar-destacado .btn-destacado {
  margin-bottom: 5px;
}

.section-productos .btn-destacado {
  width: 200px !important;
}

.btn-primary {
  background-color: var(--btn-color);
  border-color: var(--btn-color);
  color: #fff !important;
  border-radius: 30px;
}

.btn-primary:hover {
  background-color: #a85a32;
  border-color: #a85a32;
  color: #fff !important;
  border-radius: 30px;
}

.text-primary {
  color: var(--main-color) !important;
}

.navbar-brand {
  margin-right: 0px;
}

.badge {
  border-radius: 0px;
}

.form-control{
  border-radius: 0 !important;
}
/* end reset */

/* ? class */
.fw-300 {
  font-weight: 300;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fs-10 {
  font-size: 0.625rem;
}

.fs-12 {
  font-size: var(--fs-12);
}

.fs-14 {
  font-size: var(--fs-14);
}

.fs-12-16 {
  font-size: var(--fs-12-16);
}

.bg-black {
  background-color: var(--black) !important;
}

.bg-black-dark {
  background-color: var(--black-dark);
}

.bg-accent {
  background-color: var(--accent-color);
}
.bg-main {
  background-color: var(--main-color);
}

.text-white {
  color: var(--white);
}

.text-accent {
  color: var(--accent-color);
}
.text-footer {
  color: var(--footer-color);
}
.text-justify{
    text-align: justify;
}
.scale {
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.scale:hover {
  transform: scale(1.1);
}

.bg-footer {
  background-color: var(--footer-color);
}
/*? END class */

.marquee {
  background-color: var(--accent-color);
}

.marquee p {
  color: var(--white);
  font-size: var(--fs-12);
  font-weight: 500;
}

.iframe {
  position: relative;
  width: 100%;
}

.underline {
  position: relative;
  width: fit-content;
}

.underline::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: var(--width);
  background-color: var(--accent-color);
}

.logo {
  max-height: 50px;
}

.navbar-light .nav-link {
  color: #666;
  font-weight: bold;
}

.navbar-light .nav-link:hover {
  color: var(--accent-color) !important;
}

.product-title {
  color: #666;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.bg-orange {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff !important;
}

.bg-white-accent {
  background-color: var(--white-accent);
}

.swiper-pagination,
.swiper-pagination-clickable,
.swiper-pagination-bullets,
.swiper-pagination-horizontal {
  --swiper-theme-color: var(--accent-color);
}

.swiper-imagen-detalle .swiper-slide img {
  border-radius: 1rem;
}

.input__radio {
  display: none;
  opacity: 0;
}
.input__radio--label {
  background-color: #fff;
  color: var(--main-color);
  border: 1px solid var(--accent-color);
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.input__radio:checked + .input__radio--label {
  color: #fff;
  background-color: var(--accent-color);
}
.custom-input {
  height: 31px;
  border: none;
  outline: 1px solid var(--main-color);
}

/* Selector de cantidad (detalle producto) */
.cantidad-selector {
  flex-wrap: nowrap;
}
.cantidad-selector .cantidad-btn {
  width: 40px;
  padding: 0.375rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}
.cantidad-selector .cantidad-btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.cantidad-selector .cantidad-btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.cantidad-selector .cantidad-input {
  width: 3.5rem;
  min-width: 3rem;
  height: 38px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  font-weight: 600;
  -moz-appearance: textfield;
}
.cantidad-selector .cantidad-input::-webkit-outer-spin-button,
.cantidad-selector .cantidad-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hr-gris {
  border-left: 2px solid var(--white-accent);
}

/* 404error inicio */
.error-404-container {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-404-icon {
  font-size: 80px;
  color: #dc3545;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.error-title {
  font-size: 5rem;
  font-weight: 800;
  color: #343a40;
}

.error-message {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 30px;
}

.error-actions a {
  margin: 5px;
}

.bg-illustration {
  max-width: 100%;
  width: 250px;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* 404 error fin */
#page-container {
  position: relative;
  min-height: 100vh;
}
#content-wrap {
  padding-bottom: clamp(10rem, 10rem + 2.5vw, 25rem); /* responsive: ~11rem móvil, hasta 25rem desktop */
}
#footer {
  bottom: 0;
  width: 100%;
}
.sticky {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 9;
}