/* ==========================================================
   Ajustes propios de Agroindustria del Pacífico
   (no modificar main.css de la plantilla)
   ========================================================== */

/* Desplazamiento suave al hacer clic en enlaces internos (#nosotros, etc.) */
html {
   scroll-behavior: smooth;
}

/* Imagen de los productos en la sección "about" */
.tpabout__products-img {
   width: 540px;
   max-width: 100%;
   height: auto;
}

/* Idioma activo en el selector del header */
.header__lang-submenu li a.active {
   font-weight: 700;
}

/* Selector de idioma en el menú lateral (móvil) */
.tpsideinfo__lang a {
   margin-right: 18px;
}

.tpsideinfo__lang a.active {
   font-weight: 700;
   text-decoration: underline;
}

/* Carrito vacío */
.tpcart__empty {
   padding: 40px 0 20px;
   text-align: center;
}

/* ==========================================================
   Hero: tercer producto (harina de popocho)
   Orden de capas: harina (1) < chocolate (2) < bija (3) < hoja (4)
   ========================================================== */
.tphero__thumb .pera2 {
   position: relative;
   z-index: 2;
}

.tphero__thumb-shape-one {
   z-index: 3;
}

.hero-product-three {
   width: 260px;              /* tamaño en pantalla del producto */
   top: 330px;                /* más número = más abajo */
   left: -100px;              /* más negativo = más a la izquierda */
   right: auto;               /* anula la posición heredada de shape-two */
   z-index: 1;
   transform: rotate(-12deg); /* inclinada hacia la izquierda, espejo de la bija */
}

/* Pantallas medianas (992px a 1199px) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
   .hero-product-three {
      width: 210px;
      top: 270px;
      left: -90px;
   }
}

/* Hoja verde por delante de la harina, en la esquina inferior de la bolsa */
.tphero__thumb-shape-four {
   z-index: 4;
}

@media (min-width: 992px) {
   .tphero__thumb-shape-four {
      bottom: 60px;    /* más pequeño = más abajo */
      left: -150px;    /* más negativo = más a la izquierda */
   }
}

/* ==========================================================
   Hero: racimo de popocho (arriba a la derecha)
   En pantallas grandes (1400px o más) usa la posición original de la plantilla.
   En portátiles (1200px a 1399px) se muestra más pequeño.
   ========================================================== */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
   .tphero__thumb-shape-three {
      width: 170px;   /* tamaño del racimo */
      top: 70px;      /* más número = más abajo */
      right: -10px;   /* más negativo = más a la derecha */
   }
}

/* Subtítulo del hero: más angosto para que no lo tapen los productos */
.tphero__wrapper p {
   max-width: 470px;
}

/* ==========================================================
   Sección "Quiénes somos" - homenaje a la pionera
   Colores tomados de las variables de la plantilla Orfarm (main.css)
   ========================================================== */
.story-area {
   background: var(--tp-grey-3);
   overflow: hidden;
}

/* Deja espacio para el menú fijo (sticky) y que no tape el inicio de la sección */
#nosotros {
   scroll-margin-top: 90px;
}

/* --- Foto con formas orgánicas --- */
.story__media {
   position: relative;
   max-width: 440px;
   margin: 0 auto 50px;
   padding: 30px 30px 70px;   /* más espacio abajo para el sello */
}

.story__blob {
   position: absolute;
   z-index: 0;
   animation: storyFloat 9s ease-in-out infinite;
}

.story__blob--green {
   width: 80%;
   height: 78%;
   top: 0;
   left: 0;
   background: var(--tp-grey-9);
   border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
}

.story__blob--cacao {
   width: 62%;
   height: 56%;
   right: 0;
   bottom: 15px;
   background: var(--tp-text-4);
   border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
   animation-delay: -4.5s;
}

.story__photo {
   position: relative;
   z-index: 2;
   border: 8px solid var(--tp-common-white);
   border-radius: 22px;
   overflow: hidden;
   transform: rotate(-3deg);
   box-shadow: 0 22px 45px rgba(45, 42, 110, 0.18);
   transition: transform 0.4s ease;
}

.story__photo:hover {
   transform: rotate(0deg) scale(1.02);
}

.story__photo img {
   display: block;
   width: 100%;
   height: auto;              /* foto completa, sin recortes */
}

.story__leaf {
   position: absolute;
   z-index: 3;
   pointer-events: none;
}

.story__leaf--one {
   width: 70px;
   left: -22px;               /* hacia afuera, a media altura de la foto */
   top: 42%;
   transform: rotate(-25deg);
}

.story__leaf--two {
   width: 60px;
   right: 4px;
   top: 0;
   transform: rotate(15deg);
}

.story__badge {
   position: absolute;
   z-index: 4;
   right: -6px;
   bottom: 8px;               /* debajo de la esquina, fuera de la foto */
   background: var(--tp-theme-1);
   color: var(--tp-common-white);
   border-radius: 16px;
   padding: 12px 20px;
   line-height: 1.25;
   transform: rotate(3deg);
   box-shadow: 0 12px 25px rgba(45, 42, 110, 0.3);
}

.story__badge strong {
   display: block;
   font-size: 22px;
   color: var(--tp-text-1);
}

.story__badge span {
   font-size: 13px;
   opacity: 0.9;
}

/* --- Texto --- */
.story__content {
   padding-left: 30px;
}

.story__eyebrow {
   color: var(--tp-heading-secondary);
}

.story__title {
   font-size: 40px;
   line-height: 1.2;
   color: var(--tp-heading-primary);
   margin-bottom: 22px;
}

.story__content p {
   font-size: 16px;
   line-height: 1.8;
   color: var(--tp-text-body);
   margin-bottom: 18px;
}

.story__content p strong {
   color: var(--tp-theme-2);
   font-weight: 600;
}

/* --- Viñetas con íconos --- */
.story__list {
   list-style: none;
   padding: 0;
   margin: 26px 0 32px;
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 16px 22px;
}

.story__list li {
   display: flex;
   align-items: center;
   gap: 12px;
   font-weight: 500;
   color: var(--tp-heading-primary);
   line-height: 1.35;
}

.story__list i {
   flex: 0 0 44px;
   height: 44px;
   border-radius: 50%;
   background: var(--tp-grey-9);
   color: var(--tp-theme-1);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
}

/* --- Botón WhatsApp --- */
.story__btn {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   background: var(--tp-theme-2);
   color: var(--tp-common-white);
   padding: 14px 32px;
   border-radius: 50px;
   font-weight: 600;
   transition: background 0.3s ease, transform 0.3s ease;
}

.story__btn:hover {
   background: var(--tp-theme-1);
   color: var(--tp-common-white);
   transform: translateY(-2px);
}

@keyframes storyFloat {
   0%, 100% { transform: translate(0, 0) rotate(0deg); }
   50%      { transform: translate(6px, -8px) rotate(3deg); }
}

/* --- Responsive --- */
@media (max-width: 991px) {
   .story__content {
      padding-left: 0;
   }
   .story__title {
      font-size: 32px;
   }
}

@media (max-width: 575px) {
   .story__list {
      grid-template-columns: 1fr;
   }
   .story__title {
      font-size: 26px;
   }
}

/* ==========================================================
   Lo bonito del Chocó
   ========================================================== */
.bonito-area { background: linear-gradient(180deg, #fff 0%, var(--tp-grey-3, #F5F2FF) 100%); }

.bonito-card {
   background: #fff; border-radius: 18px; overflow: hidden; height: 100%;
   display: flex; flex-direction: column;
   box-shadow: 0 10px 30px rgba(45, 42, 110, .08);
   transition: transform .3s ease, box-shadow .3s ease;
}
.bonito-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(45, 42, 110, .14); }

.bonito-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.bonito-card--video .bonito-card__media { aspect-ratio: 3 / 2; }
.bonito-card--video .bonito-card__media img { transform: scale(1.02); }
.bonito-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bonito-card:hover .bonito-card__media img { transform: scale(1.05); }

.bonito-card__play {
   position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
   display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
   background: var(--tp-theme-2, #EA0D42); box-shadow: 0 0 0 10px rgba(234, 13, 66, .25);
   transition: transform .3s ease;
}
.bonito-card__play i { margin-left: 4px; }
.bonito-card:hover .bonito-card__play { transform: scale(1.1); }

.bonito-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bonito-card__meta {
   display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
   margin-bottom: 10px; font-size: 14px; color: var(--tp-text-body, #4D5574);
}
.bonito-card__tag {
   display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 30px;
   font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
   background: var(--tp-grey-9, #B4DEA4); color: var(--tp-theme-1, #2D2A6E);
}
.bonito-card__tag--video { background: var(--tp-text-4, #FACFD4); color: var(--tp-theme-2, #EA0D42); }
.bonito-card__title { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.bonito-card__title a { color: var(--tp-theme-1, #2D2A6E); }
.bonito-card__title a:hover { color: var(--tp-theme-2, #EA0D42); }
.bonito-card__excerpt { margin-bottom: 16px; }
.bonito-card__link { margin-top: auto; font-weight: 600; color: var(--tp-heading-secondary, #96AE00); }
.bonito-card__link i { margin-left: 6px; transition: margin .3s ease; }
.bonito-card__link:hover i { margin-left: 10px; }

/* Un solo elemento: tarjeta horizontal a todo el ancho */
@media (min-width: 768px) {
   .bonito-grid--single .bonito-card { flex-direction: row; }
   .bonito-grid--single .bonito-card__media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
   .bonito-grid--single .bonito-card__body { padding: 40px; justify-content: center; }
   .bonito-grid--single .bonito-card__title { font-size: 28px; }
}

/* Página "Ver todo" */
.bonito-hero { padding: 70px 0 50px; background: var(--tp-grey-3, #F5F2FF); }
.bonito-hero__title { font-size: 44px; color: var(--tp-theme-1, #2D2A6E); margin-bottom: 25px; }
.bonito-filter {
   display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px;
   background: #fff; border-radius: 40px; box-shadow: 0 6px 20px rgba(45, 42, 110, .08);
}
.bonito-filter a { padding: 8px 22px; border-radius: 30px; font-weight: 600; color: var(--tp-theme-1, #2D2A6E); }
.bonito-filter a.active, .bonito-filter a:hover { background: var(--tp-theme-1, #2D2A6E); color: #fff; }
.bonito-empty { font-size: 18px; padding: 40px 0; }

.bonito-pagination ul { display: flex; justify-content: center; gap: 8px; padding: 0; list-style: none; }
.bonito-pagination a {
   width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
   font-weight: 600; border: 1px solid #e5e2f5; color: var(--tp-theme-1, #2D2A6E);
}
.bonito-pagination a.active, .bonito-pagination a:hover { background: var(--tp-theme-1, #2D2A6E); border-color: var(--tp-theme-1, #2D2A6E); color: #fff; }

/* Detalle */
.bonito-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; font-weight: 600; color: var(--tp-theme-1, #2D2A6E); }
.bonito-back:hover { color: var(--tp-theme-2, #EA0D42); }
.bonito-detail__figure { border-radius: 20px; overflow: hidden; margin-bottom: 28px; box-shadow: 0 14px 40px rgba(45, 42, 110, .12); }
.bonito-detail__figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bonito-detail__title { font-size: 38px; line-height: 1.25; margin: 10px 0 22px; color: var(--tp-theme-1, #2D2A6E); }
.bonito-detail__body { font-size: 17px; line-height: 1.85; }
.bonito-more__title { text-align: center; font-size: 28px; margin-bottom: 30px; color: var(--tp-theme-1, #2D2A6E); }

@media (max-width: 767px) {
   .bonito-hero__title { font-size: 32px; }
   .bonito-detail__title { font-size: 28px; }
}

/* ==========================================================
   Hero en celular: subir el texto para que se vea el botón
   (la imagen conserva su tamaño; en PC no cambia nada)
   ========================================================== */
@media (max-width: 767px) {
   .hero-area .tphero__wrapper { margin-top: -40px; }   /* más negativo = texto más arriba */
   .hero-area .tphero__title { font-size: 28px; line-height: 1.2; margin-bottom: 12px !important; }
   .hero-area .tphero__wrapper p { margin-bottom: 18px; }
}

/* ==========================================================
   Idioma en celular: botón en la barra (junto al carrito)
   ========================================================== */
.mobile-lang__btn {
   display: inline-flex; align-items: center; gap: 4px;
   height: 32px; padding: 0 9px; border-radius: 16px;
   border: 1px solid #e5e2f5; background: #fff; line-height: 1;
   font-size: 12px; font-weight: 700; color: var(--tp-theme-1, #2D2A6E);
}
.mobile-lang__btn .fa-globe { font-size: 13px; }

/* Idioma y carrito siempre en una sola línea, sin agrandar la barra */
.tpmobile-menu .header__info { flex-wrap: nowrap; }
.tpmobile-menu .row { flex-wrap: nowrap; }
.mobile-lang__btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(45, 42, 110, .15); }
.mobile-lang__arrow { font-size: 12px; }
.mobile-lang__menu {
   min-width: 170px; padding: 6px; border: 0; border-radius: 12px;
   box-shadow: 0 10px 30px rgba(45, 42, 110, .18);
}
.mobile-lang__title {
   padding: 6px 12px 8px; font-size: 11px; font-weight: 700;
   text-transform: uppercase; letter-spacing: .06em; color: #9a97b8;
}
.mobile-lang__menu .dropdown-item {
   display: flex; align-items: center; justify-content: space-between;
   border-radius: 8px; padding: 10px 12px; font-weight: 500; color: var(--tp-theme-1, #2D2A6E);
}
.mobile-lang__menu .dropdown-item.active,
.mobile-lang__menu .dropdown-item:active { background: var(--tp-theme-1, #2D2A6E); color: #fff; }

@media (max-width: 374px) {
   .mobile-lang__btn { padding: 0 7px; font-size: 11px; gap: 3px; }
   .mobile-lang__arrow { display: none; }
}

/* ==========================================================
   Idioma en el menú lateral: lista tipo opción única
   ========================================================== */
.side-lang { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
.side-lang__label {
   display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600;
   text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7);
}
.side-lang__label i { margin-right: 6px; }
.side-lang__list { display: flex; flex-direction: column; gap: 8px; }
.side-lang__item {
   display: flex; align-items: center; gap: 12px; padding: 11px 14px;
   border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
   color: #fff; font-weight: 500; transition: background .2s ease, border-color .2s ease;
}
.side-lang__item:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.side-lang__radio {
   position: relative; flex: 0 0 18px; width: 18px; height: 18px;
   border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%;
}
.side-lang__code { margin-left: auto; font-size: 12px; opacity: .6; }

.side-lang__item.is-active { background: #fff; border-color: #fff; color: var(--tp-theme-1, #2D2A6E); font-weight: 600; }
.side-lang__item.is-active .side-lang__radio { border-color: var(--tp-heading-secondary, #96AE00); }
.side-lang__item.is-active .side-lang__radio::after {
   content: ''; position: absolute; inset: 3px; border-radius: 50%;
   background: var(--tp-heading-secondary, #96AE00);
}

/* ===== Categorías en el home ===== */
.cat-card {
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   height: 100%;
   padding: 26px 18px 22px;
   border-radius: 16px;
   color: #fff;
   box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
   transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover {
   color: #fff;
   transform: translateY(-5px);
   box-shadow: 0 14px 30px rgba(0, 0, 0, .15);
}
.cat-card__thumb {
   width: 100%;
   max-width: 220px;
   height: auto;
   aspect-ratio: 1 / 1;
   border-radius: 50%;
   overflow: hidden;
   background: rgba(255, 255, 255, .25);
   border: 3px solid rgba(255, 255, 255, .7);
   box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
   margin-bottom: 18px;
   flex-shrink: 0;
}
.cat-card__thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .4s ease;
}
.cat-card:hover .cat-card__thumb img {
   transform: scale(1.08);
}
.cat-card__title {
   font-size: 20px;
   font-weight: 600;
   line-height: 1.2;
   margin-bottom: 8px;
   text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.cat-card__text {
   font-size: 14px;
   line-height: 1.45;
   opacity: .95;
   margin-bottom: 14px;
   text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.cat-card__link {
   margin-top: auto;
   font-size: 14px;
   font-weight: 600;
   padding: 6px 16px;
   border-radius: 30px;
   background: rgba(255, 255, 255, .22);
}
@media (max-width: 575px) {
   .cat-card { padding: 20px 10px 18px; }
   .cat-card__thumb { max-width: 150px; }
   .cat-card__title { font-size: 16px; }
   .cat-card__text { display: none; } /* en celular solo foto + nombre */
}

/* ===== Productos destacados en el home ===== */
.prod-card {
   display: flex;
   flex-direction: column;
   height: 100%;
   background: #fff;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
   transition: transform .25s ease, box-shadow .25s ease;
}
.prod-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}
.prod-card__thumb {
   position: relative;
   display: block;
   aspect-ratio: 1 / 1;
   background: #f6f6f6;
   overflow: hidden;
}
.prod-card__thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .4s ease;
}
.prod-card:hover .prod-card__thumb img {
   transform: scale(1.06);
}
.prod-card__meta {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 4px 8px;
   margin-bottom: 4px;
}
.prod-card__meta .prod-card__cat {
   margin-bottom: 0;
}
.prod-card__badge {
   display: inline-flex;
   align-items: center;
   gap: 4px;
   background: #f1f5dc;
   color: #6f8200;
   font-size: 11px;
   font-weight: 600;
   padding: 2px 8px;
   border-radius: 20px;
   white-space: nowrap;
}
.prod-card__badge i {
   font-size: 9px;
}
.prod-card__body {
   display: flex;
   flex-direction: column;
   flex: 1;
   padding: 16px 16px 18px;
}
.prod-card__cat {
   font-size: 13px;
   color: #8a8a8a;
   margin-bottom: 4px;
}
.prod-card__title {
   font-size: 17px;
   line-height: 1.3;
   margin-bottom: 6px;
}
.prod-card__title a {
   color: #2D2A6E;
}
.prod-card__title a:hover {
   color: #96AE00;
}
.prod-card__text {
   font-size: 14px;
   line-height: 1.45;
   color: #6b6b6b;
   margin-bottom: 10px;
}
.prod-card__price {
   font-size: 20px;
   font-weight: 700;
   color: #EA0D42;
   margin-bottom: 14px;
}
.prod-card__price small {
   font-size: 13px;
   font-weight: 500;
   color: #8a8a8a;
}
.prod-card__price small.prod-card__from {
   font-weight: 700;
   color: #2D2A6E;
}
.prod-card a.prod-card__btn {
   margin-top: auto;
   display: block;
   text-align: center;
   background: #2D2A6E;
   color: #fff;
   font-weight: 600;
   font-size: 14px;
   padding: 10px 12px;
   border-radius: 30px;
   transition: background .2s ease;
}
.prod-card a.prod-card__btn:hover,
.prod-card a.prod-card__btn:focus {
   background: #EA0D42;
   color: #fff;
}
@media (max-width: 575px) {
   .prod-card__body { padding: 12px 12px 14px; }
   .prod-card__title { font-size: 15px; }
   .prod-card__text { display: none; } /* en celular: foto, nombre, precio y botón */
   .prod-card__price { font-size: 17px; }
}

/* ===== Página de producto ===== */
.pdetail__media {
   background: #f6f6f6;
   border-radius: 18px;
   overflow: hidden;
   aspect-ratio: 1 / 1;
}
.pdetail__media img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}
.pdetail__cat {
   display: inline-block;
   font-size: 13px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: .5px;
   color: #96AE00;
   margin-bottom: 8px;
}
.pdetail__title {
   font-size: 32px;
   line-height: 1.2;
   color: #2D2A6E;
   margin-bottom: 12px;
}
.pdetail__price {
   font-size: 30px;
   font-weight: 700;
   color: #EA0D42;
   margin-bottom: 14px;
}
.pdetail__short {
   font-size: 16px;
   color: #6b6b6b;
   margin-bottom: 22px;
}
.pdetail__label {
   font-size: 14px;
   font-weight: 600;
   color: #2D2A6E;
   margin-bottom: 10px;
}
.pdetail__options {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin-bottom: 22px;
}
.pdetail__opt {
   position: relative;
   display: flex;
   flex-direction: column;
   min-width: 120px;
   padding: 10px 16px;
   border: 2px solid #e3e3e3;
   border-radius: 12px;
   cursor: pointer;
   transition: border-color .2s ease, background .2s ease;
}
.pdetail__opt input {
   position: absolute;
   opacity: 0;
   pointer-events: none;
}
.pdetail__opt-name {
   font-weight: 600;
   color: #2D2A6E;
}
.pdetail__opt-price {
   font-size: 14px;
   color: #6b6b6b;
}
.pdetail__opt:hover {
   border-color: #2D2A6E;
}
.pdetail__opt:has(input:checked) {
   border-color: #2D2A6E;
   background: #f1f0fa;
}
.pdetail__opt.is-off {
   opacity: .5;
   cursor: not-allowed;
}
.pdetail__opt.is-off:hover {
   border-color: #e3e3e3;
}
.pdetail__buy {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   align-items: center;
}
.pdetail__qty {
   display: flex;
   align-items: center;
   border: 2px solid #e3e3e3;
   border-radius: 30px;
   overflow: hidden;
}
.pdetail__qty button {
   width: 42px;
   height: 46px;
   border: 0;
   background: transparent;
   font-size: 20px;
   color: #2D2A6E;
}
.pdetail__qty input {
   width: 48px;
   border: 0;
   text-align: center;
   font-weight: 600;
   -moz-appearance: textfield;
}
.pdetail__qty input::-webkit-outer-spin-button,
.pdetail__qty input::-webkit-inner-spin-button {
   -webkit-appearance: none;
   margin: 0;
}
.pdetail__add {
   flex: 1;
   min-width: 200px;
   height: 50px;
   border: 0;
   border-radius: 30px;
   background: #2D2A6E;
   color: #fff;
   font-weight: 600;
   transition: background .2s ease;
}
.pdetail__add:hover {
   background: #EA0D42;
}
.pdetail__off {
   color: #EA0D42;
   font-weight: 600;
}
.pdetail__section-title {
   font-size: 22px;
   color: #2D2A6E;
   margin-bottom: 16px;
}
.pdetail__desc {
   background: #fff;
   border-radius: 16px;
   padding: 26px 28px;
   box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
   line-height: 1.7;
}
@media (max-width: 575px) {
   .pdetail__title { font-size: 24px; }
   .pdetail__price { font-size: 24px; }
   .pdetail__desc { padding: 20px 18px; }
}

/* ===== Página de categoría ===== */
.catpage__banner {
   display: flex;
   align-items: center;
   gap: 24px;
   padding: 28px 32px;
   border-radius: 18px;
   color: #fff;
}
.catpage__thumb {
   width: 150px;
   height: 150px;
   flex-shrink: 0;
   border-radius: 50%;
   overflow: hidden;
   border: 4px solid rgba(255, 255, 255, .6);
}
.catpage__thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}
.catpage__title {
   font-size: 32px;
   color: #fff;
   margin-bottom: 6px;
   text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.catpage__text {
   margin: 0;
   color: #fff;
   opacity: .95;
   text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
@media (max-width: 575px) {
   .catpage__banner { flex-direction: column; text-align: center; padding: 22px 18px; }
   .catpage__thumb { width: 86px; height: 86px; }
   .catpage__title { font-size: 24px; }
}

/* ===== Carrusel de destacados ===== */
.feat-slider {
   position: relative;
}
.feat-swiper {
   padding: 6px 4px 12px; /* para que no se corte la sombra de las tarjetas */
}
.feat-swiper .swiper-slide {
   height: auto;
}
.feat-nav {
   position: absolute;
   top: 45%;
   transform: translateY(-50%);
   z-index: 5;
   width: 44px;
   height: 44px;
   border: 0;
   border-radius: 50%;
   background: #fff;
   color: #2D2A6E;
   font-size: 20px;
   box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
   transition: background .2s ease, color .2s ease;
}
.feat-nav:hover {
   background: #2D2A6E;
   color: #fff;
}
.feat-prev { left: -20px; }
.feat-next { right: -20px; }
.feat-nav.swiper-button-disabled {
   opacity: .35;
   cursor: default;
}
.feat-nav.swiper-button-lock,
.feat-pagination.swiper-pagination-lock {
   display: none; /* sin flechas ni puntos si caben todos */
}
.feat-pagination {
   text-align: center;
   margin-top: 16px;
}
.feat-pagination .swiper-pagination-bullet {
   width: 10px;
   height: 10px;
   margin: 0 4px;
}
.feat-pagination .swiper-pagination-bullet-active {
   background: #2D2A6E;
}
@media (max-width: 1299px) {
   .feat-prev { left: -6px; }
   .feat-next { right: -6px; }
}
@media (max-width: 767px) {
   .feat-nav { display: none; } /* en celular se desliza con el dedo */
}

/* Carrusel sin nada que pasar: tarjetas centradas */
.feat-slider.is-locked .swiper-wrapper {
   justify-content: center;
   margin-left: auto;
   margin-right: auto;
}
/* Al saltar a una sección (#categorias, #destacados), dejar espacio para el menú fijo */
#categorias,
#destacados,
#nosotros,
#lo-bonito {
   scroll-margin-top: 90px;
}

/* ===== Carrito: aviso flotante, mensaje y ayuda de cantidad ===== */
.cart-toast {
   position: fixed;
   left: 50%;
   bottom: 24px;
   transform: translate(-50%, 20px);
   z-index: 9999;
   display: flex;
   align-items: center;
   gap: 16px;
   max-width: calc(100% - 32px);
   padding: 14px 20px;
   border-radius: 10px;
   background: #2D2A6E;
   color: #fff;
   font-size: 15px;
   box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
   opacity: 0;
   pointer-events: none;
   transition: opacity .25s ease, transform .25s ease;
}
.cart-toast.is-visible {
   opacity: 1;
   transform: translate(-50%, 0);
   pointer-events: auto;
}
.cart-toast.is-error { background: #EA0D42; }
.cart-toast a {
   flex-shrink: 0;
   padding: 6px 14px;
   border-radius: 6px;
   background: #fff;
   color: #2D2A6E;
   font-weight: 600;
   white-space: nowrap;
}
.cart-toast a:hover { background: #96AE00; color: #fff; }

.cart-flash {
   margin-bottom: 16px;
   padding: 12px 16px;
   border-radius: 8px;
   font-size: 15px;
}
.cart-flash.is-ok { background: #f1f6dc; color: #4d5a00; }
.cart-flash.is-error { background: #fde7ec; color: #a10a2e; }
.cart-flash a { margin-left: 8px; font-weight: 600; text-decoration: underline; }

.pdetail__hint { margin-top: 8px; font-size: 13px; color: #777; }
.pdetail__add:disabled { opacity: .6; cursor: wait; }

@media (max-width: 575px) {
   .cart-toast { bottom: 16px; font-size: 14px; padding: 12px 14px; gap: 10px; }
}

/* ===== Mini carrito (panel lateral) ===== */
.tpcart__variant { display: block; font-size: 13px; color: #777; margin: 2px 0 4px; }
.tpcart__item.is-off { opacity: .55; }
.tpcart__off { font-size: 13px; font-weight: 600; color: #EA0D42; }
.tpcart__img img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }

/* ===== Página del carrito ===== */
.cartpage__title { font-size: 30px; margin-bottom: 24px; color: #2D2A6E; }
.cartpage .product-thumbnail img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.cartpage__variant { display: block; font-size: 14px; color: #777; margin-top: 4px; }
.cartpage tr.is-off { opacity: .55; }
.cartpage__off { font-size: 14px; font-weight: 600; color: #EA0D42; }

.cartpage__remove {
   border: 0; background: transparent; color: #999; font-size: 18px;
   width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}
.cartpage__remove:hover { background: #fde7ec; color: #EA0D42; }

.cartpage__empty-btn {
   border: 1px solid #EA0D42; background: #fff; color: #EA0D42;
   padding: 12px 22px; border-radius: 6px; font-weight: 600; cursor: pointer;
}
.cartpage__empty-btn:hover { background: #EA0D42; color: #fff; }

.cartpage__enter { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cartpage__hint { margin-top: 12px; font-size: 14px; color: #777; }

.cartpage .cart-page-total .is-disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }
.cartpage__continue { display: block; margin-top: 16px; color: #2D2A6E; font-weight: 600; }
.cartpage__continue:hover { color: #EA0D42; }

.cartpage__empty { padding: 60px 0; }
.cartpage__empty i { font-size: 56px; color: #96AE00; margin-bottom: 16px; }
.cartpage__empty p { font-size: 18px; margin-bottom: 24px; }
/* ===== Ventana de confirmación ===== */
.confirm-modal .modal-content { border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.confirm-modal .modal-body { padding: 36px 28px 28px; }
.confirm-modal__icon {
   width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
   display: flex; align-items: center; justify-content: center;
   background: #fde7ec; color: #EA0D42; font-size: 30px;
}
.confirm-modal__title { font-size: 22px; color: #2D2A6E; margin-bottom: 8px; }
.confirm-modal__text { color: #666; margin-bottom: 24px; }
.confirm-modal__actions { display: flex; gap: 12px; justify-content: center; }
.confirm-modal__actions button {
   min-width: 130px; padding: 12px 20px; border-radius: 8px; font-weight: 600; border: 0; cursor: pointer;
}
.confirm-modal__cancel { background: #f1f1f4; color: #444; }
.confirm-modal__cancel:hover { background: #e2e2e8; }
.confirm-modal__ok { background: #EA0D42; color: #fff; }
.confirm-modal__ok:hover { background: #c40a37; }
/* ===== Carrito: botones azules y fila de acciones ===== */
.cartpage .tp-btn.tp-color-btn { background: #2D2A6E; color: #fff; border-color: #2D2A6E; }
.cartpage .tp-btn.tp-color-btn:hover { background: #EA0D42; border-color: #EA0D42; color: #fff; }

.cartpage .coupon-all {
   display: flex; justify-content: space-between; align-items: center;
   flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.cartpage .coupon-all .coupon,
.cartpage .coupon-all .coupon2 { float: none; margin: 0; }
.cartpage__hint { clear: both; margin-top: 16px; }

/* ===== Tarjeta: agregar al carrito ===== */
.prod-card__add { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.prod-card__cart { width: 100%; border: 0; cursor: pointer; }
.prod-card__cart:disabled { opacity: .6; cursor: wait; }
.prod-card__link {
   display: block; margin-top: 8px; text-align: center;
   font-size: 14px; font-weight: 600; color: #2D2A6E;
}
.prod-card__link:hover { color: #EA0D42; }

/* Botón "Agregar al carrito" de la tarjeta (es <button>, no <a>) */
.prod-card .prod-card__cart {
   display: flex; align-items: center; justify-content: center; gap: 8px;
   width: 100%; padding: 10px 14px; border: 0; border-radius: 8px;
   background: #2D2A6E; color: #fff; font-size: 15px; font-weight: 600;
   cursor: pointer; transition: background .2s ease;
}
.prod-card .prod-card__cart:hover { background: #EA0D42; color: #fff; }
.prod-card .prod-card__cart i { color: #fff; }

/* ===== Panel lateral: lista con scroll y total siempre visible ===== */
.tpcartinfo { display: flex; flex-direction: column; overflow: hidden; }
.tpcartinfo .tpcart { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tpcartinfo .tpcart__product { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tpcartinfo .tpcart__product-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.tpcartinfo .tpcart__checkout {
   flex-shrink: 0; background: #fff;
   padding-top: 14px; margin-top: 8px; border-top: 1px solid #eee;
}

/* X para quitar y foto de reemplazo */
.tpcart__item { position: relative; padding-right: 34px; }
.tpcart__remove-form { position: absolute; top: 0; right: 0; margin: 0; }
.tpcart__remove {
   width: 28px; height: 28px; border: 0; border-radius: 50%;
   background: #f1f1f4; color: #777; font-size: 14px; cursor: pointer;
}
.tpcart__remove:hover { background: #fde7ec; color: #EA0D42; }
.tpcart__remove:disabled { opacity: .5; cursor: wait; }
.tpcart__noimg {
   display: flex; align-items: center; justify-content: center;
   width: 70px; height: 70px; border-radius: 6px;
   background: #f1f1f4; color: #b5b5c3; font-size: 24px;
}

/* ===== Tarjeta: botones alineados y botón delgado ===== */

/* Todas las tarjetas del mismo alto (carrusel y cuadrícula) */
.swiper-slide .prod-card,
.row > [class*="col"] > .prod-card { height: 100%; }

.prod-card { display: flex; flex-direction: column; }
.prod-card .prod-card__body { display: flex; flex-direction: column; flex: 1; }

/* El bloque de agregar siempre pegado abajo */
.prod-card .prod-card__add { margin-top: auto; padding-top: 10px; }

/* "Ver opciones" (varias presentaciones) también pegado abajo */
.prod-card a.prod-card__cart {
   margin-top: auto;
   display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* "Agregar" y "Ver opciones" con las mismas esquinas */
.prod-card a.prod-card__cart,
.prod-card button.prod-card__cart { border-radius: 8px; }

/* Botón "Agregar": una línea, delgado */
.prod-card .prod-card__cart {
   height: 40px; padding: 0 12px;
   font-size: 14px; line-height: 1;
   white-space: nowrap;
}
.prod-card .prod-card__cart i { font-size: 15px; }

/* "Ver producto" un poco más pegado */
.prod-card .prod-card__link { margin-top: 6px; font-size: 13px; }

/* "2 presentaciones": mismo lugar que "Ver producto", pero en gris y sin ser enlace */
.prod-card .prod-card__body span.prod-card__count {
   color: #8a8a8a;
   font-weight: 500;
   cursor: default;
}



.cartpage__noimg { width: 90px; height: 90px; margin: 0 auto; }

/* ===== Footer: redes, contacto y crédito (datos desde Configuración) ===== */
.footer-redes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-redes a {
   display: inline-flex; align-items: center; justify-content: center;
   width: 40px; height: 40px; border-radius: 50%;
   background: #fff; border: 0;
   color: #2D2A6E; font-size: 16px;
   transition: background .2s ease, transform .2s ease;
}
.footer-redes a:hover { background: #96AE00; color: #fff; transform: translateY(-2px); }

.footer-contacto { list-style: none; padding: 0; margin: 0; }
/* Con "footer .tpfooter__widget" delante para ganarle a los estilos de la plantilla */
footer .tpfooter__widget .footer-contacto li {
   display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; line-height: 1.5;
   color: rgba(255, 255, 255, .8);
}
footer .tpfooter__widget .footer-contacto li span,
footer .tpfooter__widget .footer-contacto li a { color: rgba(255, 255, 255, .8); }
footer .tpfooter__widget .footer-contacto li i { width: 16px; margin-top: 4px; text-align: center; color: #96AE00; }
footer .tpfooter__widget .footer-contacto li a:hover { color: #96AE00; }

.footer-credito { display: block; margin-top: 6px; font-size: 13px; opacity: .8; }
.footer-credito a { color: inherit; font-weight: 600; text-decoration: underline; }
.footer-credito a:hover { color: #96AE00; }

/* ===== Botón flotante de WhatsApp (discreto: blanco con ícono verde) ===== */
.wa-float {
   position: fixed; right: 30px; bottom: 30px; z-index: 999;
   display: flex; align-items: center; justify-content: center;
   width: 50px; height: 50px; border-radius: 50%;
   background: #fff; color: #25D366; font-size: 28px;
   box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
   transition: background .2s ease, color .2s ease, transform .2s ease;
}
.wa-float:hover,
.wa-float:focus { background: #25D366; color: #fff; transform: translateY(-3px); }
@media (max-width: 575px) {
   .wa-float { right: 16px; bottom: 16px; width: 46px; height: 46px; font-size: 26px; }
}

/* Logo del header: cualquier logo subido desde el panel se ajusta sin deformarse */
.header__logo img {
   max-height: 64px;
   max-width: 100%;
   width: auto;
   height: auto;
   object-fit: contain;
}

/* ===== Página de política de datos ===== */
.policy__title { font-size: 32px; line-height: 1.25; color: #2D2A6E; margin-bottom: 24px; }
.policy__body { font-size: 16px; line-height: 1.8; color: #4D5574; }
.policy__empty { font-size: 17px; color: #777; }
@media (max-width: 575px) {
   .policy__title { font-size: 24px; }
}

/* Crédito del desarrollador en el footer */
footer .footer-dev {
  color: rgba(255, 255, 255, 0.7);
}
footer .footer-dev__nombre,
footer a.footer-dev__nombre {
  color: #fff;
  font-weight: 600;
}
footer a.footer-dev__nombre {
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer a.footer-dev__nombre:hover {
  color: #96AE00;
}

/* Página de envío y resumen */
.envio-card, .envio-resumen { background:#fff; border:1px solid #eee; border-radius:12px; padding:24px; }
.envio-resumen { position:sticky; top:20px; }
.envio-row { margin-bottom:4px; }
.envio-row--2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:575px){ .envio-row--2 { grid-template-columns:1fr; } }
.envio-label { display:block; font-weight:600; margin:14px 0 6px; color:#333; }
.envio-input { width:100%; height:46px; padding:8px 12px; border:1px solid #d9d9d9; border-radius:8px; background:#fff; color:#333; }
textarea.envio-input { height:auto; min-height:70px; }
.envio-err { display:block; color:#EA0D42; font-size:.85rem; margin-top:4px; }
.envio-alert--error { background:#fdecef; color:#EA0D42; border:1px solid #f5c2cd; padding:12px 16px; border-radius:8px; margin-bottom:20px; }
.envio-costo { margin-top:16px; padding:12px 16px; border-radius:8px; background:#f3f6e6; color:#4a5500; }
.envio-sincobertura { color:#EA0D42; }
.envio-check { display:flex; gap:10px; align-items:flex-start; margin:18px 0; color:#555; }
.envio-check a { color:#2563eb; text-decoration:underline; }
.envio-intl { margin:18px 0; padding:16px; border-radius:8px; background:#f3f6e6; color:#4a5500; }
.envio-btn { margin-top:10px; }
.envio-btn:disabled { opacity:.5; cursor:not-allowed; }
.envio-linea { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid #f0f0f0; color:#444; }
.envio-linea small { color:#888; }
.envio-linea--total { font-weight:700; color:#2D2A6E; font-size:1.1rem; border-bottom:none; margin-top:6px; }
.envio-resumen h4, .envio-card h4 { margin-bottom:12px; }
.resumen-datos { color:#444; line-height:1.7; }
.resumen-nota { color:#777; margin-top:8px; }
.resumen-editar { color:#2563eb; text-decoration:underline; }
.resumen-pendiente { color:#999; font-size:.85rem; margin-top:10px; }
/* Select2 a juego con los campos del formulario de envío */
.select2-container--default .select2-selection--single { height:46px; border:1px solid #d9d9d9; border-radius:8px; display:flex; align-items:center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height:normal; padding-left:12px; color:#333; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height:44px; }
.select2-dropdown { border-color:#d9d9d9; }
/* Página de gracias (solicitud internacional) */
.gracias-card { max-width:560px; margin:0 auto; background:#fff; border:1px solid #eee; border-radius:12px; padding:40px 28px; }
.gracias-icon { font-size:56px; color:#96AE00; margin-bottom:12px; }
.gracias-card h3 { color:#2D2A6E; margin-bottom:10px; }
.gracias-card p { color:#555; margin-bottom:20px; }
.gracias-volver { margin-top:16px; }
.gracias-volver a { color:#2563eb; text-decoration:underline; }
.resumen-intl-nota { color:#777; font-size:.9rem; margin-top:10px; }