/*
Theme Name: IRIBA
Description: Tema personalizado para IRIBA – Nutrición Natural para Perros
Version: 1.0.0
Text Domain: iriba
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ===========================
   FUENTES LOCALES (Baloo 2)
=========================== */
@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/baloo-2-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/baloo-2-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/baloo-2-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/baloo-2-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/baloo-2-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --red: #E8391A;
  --red-dark: #c42d13;
  --amber: #F0C060;
  --amber-bg: #FCD199;
  --purpose-bg: #B73D25;
  --green: #3A6B2A;
  --green-dark: #2C5220;
  --contact-bg: #D88210;
  --dark: #1A1C20;
  --dark-footer: #243746;
  --text: #2C2C2C;
  --text-light: #666;
  --white: #FFFFFF;
  --light-bg: #F8F8F6;
  --border: #E8E2D9;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.25s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Baloo 2';
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
}

/* ===========================
   CONTAINER
=========================== */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 50px;
  border-radius: 35px;
  font-family: 'Baloo 2';
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
  border: 0;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border: 0;
}

.btn-red-outline {
  background-color: var(--purpose-bg);
  color: white;
}

.btn-blog {
  background: #E73C2E;
  color: var(--white);
  font-size: 0.85rem;
  padding: 10px 22px;
}

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  transition: var(--transition);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 38px;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-family: 'Baloo 2';
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  color: var(--text);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.cart-icon:hover {
  color: var(--red);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span {
  background: #ffffff;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO SLIDER
=========================== */
.hero {
  position: relative;
  height: 650px;
  min-height: 440px;
  overflow: hidden;
  margin-top: 58px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(20, 20, 20, 0.82) 17%,
      rgba(20, 20, 20, 0.1) 45%);
}

.slide-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.slide-text {
  color: var(--white);
  max-width: 480px;
}

.slide-text h1 {
  font-family: 'Baloo 2';
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.slide-text p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
  max-width: 380px;
  line-height: 1.4;
}

.slide-product {
  flex-shrink: 0;
  width: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  padding-bottom: 40px;
}

.slide-product img {
  max-height: 440px;
  max-width: 300px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: floatProduct 4s ease-in-out infinite;
}

@keyframes floatProduct {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}

.cart-fab--hidden {
  display: none !important;
}

/* WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* Carrito flotante */
.cart-fab {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 999;
  background: var(--red);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(232, 57, 26, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.cart-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(232, 57, 26, 0.5);
}

.cart-fab__count {
  position: absolute;
  top: 7px;
  right: 10px;
  background: var(--white);
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-fab svg {
  margin-right: 5px;
}

/* ===========================
   DIFERENCIAS
=========================== */
.diferencias {
  background: var(--amber-bg);
  padding: 100px 0;
}

.diferencias-title {
  font-family: 'Baloo 2';
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--dark);
}

.diferencias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.dif-item {
  text-align: center;
}

.dif-icon {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: #F9FAE1;
}

.dif-icon img {
  width: 100px;
  object-fit: contain;
}

.dif-item h3 {
  font-family: 'Baloo 2';
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.dif-item p {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.2rem;
  font-weight: 600;
}

/* ===========================
   PROPÓSITO
=========================== */
.purpose {
  background: var(--purpose-bg);
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}

.purpose::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(img/bg-decor-proposito.svg);
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.purpose-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.purpose-text h2 {
  font-family: 'Baloo 2';
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.purpose-text p {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
  text-align: justify;
}

.purpose-img img {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ===========================
   TIENDA
=========================== */
.shop {
  padding: 80px 0;
}

.shop-header {
  text-align: center;
  margin-bottom: 50px;
}

.shop-header h2 {
  font-family: 'Baloo 2';
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.shop-header p {
  color: #000000;
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.product-row {
  display: grid;
  grid-template-columns: 40% 60%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 auto 28px;
  transition: var(--transition);
  max-width: 900px;
}

.product-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-row-img {
  background: var(--panel-color, #5A1845);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 280px;
}

.product-row-img img {
  height: 100%;
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  margin: 0 auto;
  transition: var(--transition);
}

.product-row:hover .product-row-img img {
  transform: scale(1.05);
}

.product-row-info {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  background-color: #FFDBAC;
}

.product-price {
  position: absolute;
  top: 20px;
  right: 24px;
  background: white;
  color: var(--dark);
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 20px;
}

.product-row-info h3 {
  font-family: 'Baloo 2';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 8px;
}

.product-row-info>p {
  color: black;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 520px;
}

.product-ideal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ideal-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.ideal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ideal-tags span {
  background: #D88110;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px 2px;
  border-radius: 50px;
  font-family: 'Baloo 2';
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: auto;

  .btn {
    padding: 5px 30px;
  }
}

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.qty-control {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--light-bg);
  color: var(--red);
}

.qty-value {
  min-width: 35px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 4px;
  border-radius: 5px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.product-btns {
  display: flex;
  gap: 12px;
}

/* ===========================
   BLOG BANNER
=========================== */
.blog-banner {
  background: #769B48;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 180px;
  max-width: 1300px;
  margin: 0 auto 50px;
  border-radius: 25px;
  position: relative;
}

.blog-photos {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 160px;
  gap: 15px;
  padding: 15px 30px;
  max-width: 865px;
}

.blog-photos img {
  flex: 1;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  border-radius: 20px;
}

.blog-text {
  padding: 30px 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--white);
  gap: 25px;
  z-index: 99;
}

.blog-text p {
  font-family: 'Baloo 2';
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0;
  color: #F9FAE1;
}

.title-cta-blog {
  font-weight: 800;
}

.decor-cta {
  position: absolute;
  right: 0px;
}

/* ===========================
   CONTACTO
=========================== */
.contact {
  background: var(--contact-bg);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.contact-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-decor img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  opacity: 0.06;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.contact-form-wrap h2 {
  font-family: 'Baloo 2';
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.contact-form-wrap>p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 420px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 68px 13px 16px;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn-red {
  padding: 13px 32px;
}

.field-wrap {
  display: flex;
  flex-direction: column;
}

.input-wrap {
  position: relative;
}

.char-counter {
  position: absolute;
  right: 14px;
  bottom: 13px;
  font-size: 0.7rem;
  color: #bbb;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: color 0.2s;
  line-height: 1;
}

.char-counter--warn {
  color: #c0392b;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: #ffffff;
  margin-top: 4px;
  min-height: 1.2rem;
}

.field-invalid {
  box-shadow: 0 0 0 2px #ff6b6b !important;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-feedback {
  font-size: 0.82rem;
  min-height: 1.2em;
}

.form-feedback:empty {
  display: none;
}

.form-feedback--success {
  color: #7dffb3;
}

.form-feedback--error {
  color: #ff8080;
}

.form-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-dog {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.contact-dog img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(img/bg-decor-contacto.svg);
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.contact-form-wrap {
  padding-bottom: 35px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--dark-footer);
  color: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding: 60px 0 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.75;
  max-width: 240px;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.social-icon:hover {
  background: #FCD199;
  color: var(--dark-footer);
}

.footer-col h4 {
  font-family: 'Baloo 2';
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FCD199;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-contact-list li {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-legal-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reclamaciones-link img {
  max-width: 150px;
  border-radius: 6px;
  opacity: 0.9;
  transition: var(--transition);
}

.reclamaciones-link:hover img {
  opacity: 1;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-links li a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  line-height: 1.5;
  transition: var(--transition);
}

.footer-legal-links li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  color: #FCD199;
  font-size: 0.82rem;
}

.img-proinnovate {
  max-width: 120px !important;
  margin-top: 20px;
}

.obi-copyright {
  width: 16px;
  padding-bottom: 4px;
  vertical-align: middle;
  display: inline-block;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===========================
   INNER PAGE HERO
=========================== */
.inner-hero {
  position: relative;
  height: 265px;
  margin-top: 58px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(img/bg-inner-hero-product.svg);
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.inner-hero--nosotros::before {
  background-image: url(img/bg-inner-hero-nosotros.svg);
}

.inner-hero .container {
  position: relative;
  z-index: 99;
}

.inner-hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 265px;
  z-index: 999;
  position: relative;
}

.inner-hero-text {
  max-width: 600px;
  color: var(--white);
  z-index: 999;
}

.inner-hero-text h1 {
  font-family: 'Baloo 2';
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}

.inner-hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  height: 265px;
  z-index: 2;
  pointer-events: none;
}

.inner-hero-photo img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: left top;
  display: block;
}

/* ===========================
   NOSOTROS - Quienes somos
=========================== */
.quienes-somos {
  background: #FCD199;
  padding: 80px 0;
}

.qs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.qs-text h2 {
  font-family: 'Baloo 2';
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
  line-height: 1.1;
}

.qs-text p {
  color: #000000;
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.75;
  text-align: justify;
}

.qs-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ===========================
   NOSOTROS - Nuestros Valores
=========================== */
.valores-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
}

.valores-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(img/bg-decor-valores.svg);
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.valores-section h2 {
  font-family: 'Baloo 2';
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 50px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.valor-card {
  text-align: center;
}

.valor-card .valor-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.valor-card .valor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.valor-card h3 {
  font-family: 'Baloo 2';
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.valor-card p {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.6;
}

/* ===========================
   NOSOTROS - Proveedores
=========================== */
.proveedores {
  background: #92214E;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.prov-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.prov-decor img {
  position: absolute;
  right: -40px;
  top: 0;
  height: 100%;
  width: auto;
  opacity: 0.07;
}

.prov-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.prov-img img {
  width: 100%;
}

.prov-text h2 {
  font-family: 'Baloo 2';
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.prov-text h4 {
  color: white;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.prov-text--subtitle {
  margin-bottom: 20px;
}

.prov-text h4 span {
  font-family: 'Baloo 2';
  font-weight: 700;
  color: #FFDBAC;
  line-height: 1.15;
}

.prov-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.7;
}

.decor-prov-left {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  width: 100px;
}

.decor-prov-right {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  width: 100px;
}

.icon-text-item {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;

  img {
    max-width: 48px;
  }
}

/* ===========================
   SINGLE PRODUCT
=========================== */
.breadcrumb-bar {
  padding: 20px 0 0;
  background: var(--light-bg);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4D5D68;
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Baloo 2';
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--red);
}

.single-product {
  padding: 32px 0 80px;
  background: var(--light-bg);
}

body.single-product {
  padding: 0;
}

.sp-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.sp-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #5A1845;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-nuevo {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: var(--white);
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 16px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Track contenedor de imágenes */
.sp-track {
  position: relative;
  width: 100%;
  flex: 1;
}

.sp-main-img {
  object-fit: cover;
  width: 100%;
  display: none;
  cursor: zoom-in;
}

.sp-main-img.active {
  display: block;
}

/* Flechas del carrusel */
.sp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  padding: 4px 14px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 2;
  user-select: none;
}

.sp-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.sp-arrow--prev {
  left: 8px;
}

.sp-arrow--next {
  right: 8px;
}

.sp-dots {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
  position: absolute;
  bottom: 0;
}

.sp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.sp-dot.active {
  background: var(--white);
}

/* ---- Lightbox ---- */
.sp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.sp-lightbox.open {
  display: flex;
}

.sp-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.sp-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.sp-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  padding: 4px 16px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 2;
}

.sp-lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sp-lightbox__arrow--prev {
  left: 16px;
}

.sp-lightbox__arrow--next {
  right: 16px;
}

.sp-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;

  .ideal-label {
    font-size: 0.95rem;
    font-weight: 700;
  }

  p {
    text-align: justify;
  }
}

.sp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.sp-head h1 {
  font-family: 'Baloo 2';
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.sp-price {
  background: var(--amber-bg);
  color: var(--dark);
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sp-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.analisis-box {
  border: 1.5px solid #ADB1AF;
  border-radius: 10px;
  overflow: hidden;
  max-width: 480px;
}

.analisis-head {
  background: #F9FAE1;
  padding: 10px 18px;
  font-family: 'Baloo 2';
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.analisis-grid {
  background: #F9FAE1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 18px;
  gap: 10px 8px;
}

.analisis-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analisis-col strong {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Baloo 2';
}

.analisis-col span {
  font-family: 'Baloo 2';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.sp-row {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}

.sp-row-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  font-family: 'Baloo 2';
  display: block;
  margin-bottom: 6px;
}

.sp-buy {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sp-buy-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'Baloo 2';
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ingredientes-section {
  background: #B73D25;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.ingredientes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(img/bg-decor-proposito.svg);
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.ing-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 100px;
  align-items: center;
  margin-bottom: 50px;
}

.ing-top h2 {
  font-family: 'Baloo 2';
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
}

.ing-top p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.3;
}

.ing-stage {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ing-arrow {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
}

.ing-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.ing-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: center;
}

.ing-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ing-circle {
  background: #FCD199;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-bottom: 10px;
}

.ing-circle img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.ing-item strong {
  color: var(--white);
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
}

.ing-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.3;
}

.ing-center-product {
  display: flex;
  justify-content: center;
}

.ing-center-product img {
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.ing-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.ing-dot {
  width: 26px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.ing-dot.active {
  background: var(--white);
}

.related-section {
  padding: 80px 0;
  background: #F9FAE1;
}

.related-section h2 {
  font-family: 'Baloo 2';
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #1E2939;
  margin-bottom: 36px;
}

.related-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.related-arrow {
  background: var(--red);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}

.related-arrow:hover {
  background: var(--red-dark);
  transform: scale(1.08);
}

.related-grid {
  display: grid;
  margin: auto;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  justify-items: stretch;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.related-img {
  height: 300px;
  display: block;
  overflow: hidden;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.related-card:hover .related-img img {
  transform: scale(1.06);
}

.related-card .btn-red {
  background: #B73D25;
  color: var(--white);
  border-color: #B73D25;
  width: fit-content;
}

.related-info {
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 12px;
  position: relative;
  background: #FFDBAC;
  min-height: 0;
}

.related-info .rp-price {
  position: absolute;
  top: -16px;
  right: 20px;
  background: #fff;
  color: var(--dark);
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 0.88rem;
  padding: 5px 14px;
  border-radius: 15px;
}

.related-info h3 {
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin-top: 6px;
}

.related-info p {
  color: var(--dark);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Hacer que el botón quede pegado al fondo de la tarjeta */
.related-info .btn-red {
  margin-top: auto;
  align-self: flex-start;
}

/* ===========================
   BLOG HERO
=========================== */
.blog-hero {
  position: relative;
  height: 265px;
  margin-top: 58px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #3D6E28;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(img/bg-hero-blog.svg);
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.blog-hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.blog-hero-decor::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1.5'%3E%3Cellipse cx='7' cy='5' rx='2' ry='2.5'/%3E%3Cellipse cx='17' cy='5' rx='2' ry='2.5'/%3E%3Cellipse cx='4' cy='11' rx='2' ry='2.5'/%3E%3Cellipse cx='20' cy='11' rx='2' ry='2.5'/%3E%3Cpath d='M12 22c-4 0-8-3-8-7 0-2 2-4 4-4h8c2 0 4 2 4 4 0 4-4 7-8 7z'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.blog-hero-dogs {
  position: absolute;
  left: 100px;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.blog-hero-dogs img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.blog-hero-text {
  flex: 1;
  padding: 0 240px;
  color: var(--white);
  text-align: center;
  z-index: 99;
}

.blog-hero-text h1 {
  font-family: 'Baloo 2';
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 10px;
}

.blog-hero-text p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-hero-dogs-right {
  position: absolute;
  right: 100px;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.blog-hero-dogs-right img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* ===========================
   BLOG FILTER
=========================== */
.blog-filter {
  background: #F9FAE1;
  padding: 22px 0;
  /* border-bottom: 1px solid #E8E0D0; */
}

.blog-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.blog-filter-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.blog-order-wrap {
  flex-shrink: 0;
}

.blog-order-select {
  padding: 7px 32px 7px 14px;
  border-radius: 50px;
  border: 1.5px solid #D4A84B;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.blog-order-select:focus {
  border-color: #b8932e;
}

.filter-pill {
  display: inline-block;
  padding: 8px 24px 5px;
  border-radius: 50px;
  border: 1.5px solid #D4A84B;
  background: #FCD199;
  color: var(--dark);
  font-family: 'Baloo 2';
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
  background: #FCD199;
  color: var(--dark);
}

/* ===========================
   BLOG GRID
=========================== */
.blog-section {
  background: #F9FAE1;
  padding: 48px 0 64px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-card-body {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-cat-badge {
  display: inline-block;
  background: #789C4A;
  color: var(--white);
  font-family: 'Baloo 2';
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-self: flex-start;
}

.blog-cat-badge.cuidado {
  background: #5A7F2A;
}

.blog-cat-badge.alimentacion {
  background: #6B9E30;
}

.blog-cat-badge.tendencias {
  background: #4A8020;
}

.blog-cat-badge.moda {
  background: #7A5020;
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--dark);
  font-weight: 700;
}

.blog-card-date svg {
  flex-shrink: 0;
}

.blog-card h3 {
  font-family: 'Baloo 2';
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.82rem;
  color: var(--dark);
  line-height: 1.65;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3D6E28;
  font-family: 'Baloo 2';
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.blog-read-more:hover {
  gap: 8px;
  color: #2A5020;
}

.blog-card-img {
  height: 180px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}

.page-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2';
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

.page-num.active {
  background: #3D6E28;
  color: var(--white);
}

.page-num:hover:not(.active) {
  background: rgba(61, 110, 40, 0.1);
  color: #3D6E28;
}

.page-sep {
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===========================
   BLOG SINGLE
=========================== */
.article-section {
  background: #F9FAE1;
  padding: 36px 0 64px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px 40px;
  max-width: 780px;
  margin: 0 auto;
}

.article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.back-btn-small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Baloo 2';
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  background: #4D5D68;
  border-radius: 20px;
  padding: 6px 14px;
  transition: background 0.2s;
}

.back-btn-small:hover {
  background: #DDD8CF;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.article-title {
  font-family: 'Baloo 2';
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 24px;
}

.article-featured-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  height: 380px;
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body p {
  color: var(--dark);
  text-align: justify;
}

.article-body h2,
.article-body h3 {
  font-family: 'Baloo 2';
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 12px;
}

.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.article-share-label {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  white-space: nowrap;
}

.article-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border-radius: 20px;
  padding: 7px 16px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1;
}

.share-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #fff;
}

.share-facebook {
  background: #1877f2;
}

.share-twitter {
  background: #000;
}

.share-whatsapp {
  background: #25d366;
}

.share-linkedin {
  background: #0a66c2;
}

.article-footer {
  margin-top: 36px;
  text-align: center;
}

/* ===========================
   TÉRMINOS
=========================== */
.terms-hero {
  position: relative;
  height: 265px;
  margin-top: 58px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #C9850A;
}

.terms-hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.terms-hero-decor::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1.5'%3E%3Cellipse cx='7' cy='5' rx='2' ry='2.5'/%3E%3Cellipse cx='17' cy='5' rx='2' ry='2.5'/%3E%3Cellipse cx='4' cy='11' rx='2' ry='2.5'/%3E%3Cellipse cx='20' cy='11' rx='2' ry='2.5'/%3E%3Cpath d='M12 22c-4 0-8-3-8-7 0-2 2-4 4-4h8c2 0 4 2 4 4 0 4-4 7-8 7z'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.terms-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.terms-hero-text {
  padding-left: 5%;
  color: var(--white);
  max-width: 420px;
  flex-shrink: 0;
}

.terms-hero-text h1 {
  font-family: 'Baloo 2';
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.terms-hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-top: 8px;
}

.terms-hero-dogs {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 55%;
}

.terms-hero-dogs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.terms-section {
  background: var(--white);
  padding: 80px 0;
}

.terms-layout {
  display: block;
}

.terms-text h2 {
  font-family: 'Baloo 2';
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 28px;
}

.terms-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
}

.terms-text h3 {
  font-family: 'Baloo 2';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
}

.terms-img {
  float: right;
  max-width: 40%;
  margin: 0 0 1.5rem 2.5rem;
}

.terms-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.terms-text::after {
  content: '';
  display: table;
  clear: both;
}

/* ===========================
   WP / WOOCOMMERCE OVERRIDES
=========================== */
.woocommerce-notices-wrapper {
  max-width: 1160px;
  width: 90%;
  margin: 0 auto;
}

.wp-block-image img {
  border-radius: var(--radius);
}

/* Ocultar el selector de cantidad nativo de WooCommerce en el single product
   (usamos el .qty-control personalizado; el input queda oculto pero funcional) */
.wc-add-to-cart-wrapper .quantity {
  display: none !important;
}

/* Estilizar el botón "Añadir al carrito" de WooCommerce */
.wc-add-to-cart-wrapper .single_add_to_cart_button,
.wc-add-to-cart-wrapper button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  border-radius: 35px;
  font-family: 'Baloo 2';
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--red);
  color: var(--white);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-transform: none;
  letter-spacing: normal;
  line-height: normal;
}

.wc-add-to-cart-wrapper .single_add_to_cart_button:hover,
.wc-add-to-cart-wrapper button[type="submit"]:hover {
  background: var(--red-dark);
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  width: 100%;
}

/* Ocultar el .cart form wrapper extra que WooCommerce añade */
.wc-add-to-cart-wrapper .cart {
  display: contents;
}

/* ===========================
   WC PAGE: CARRITO / CHECKOUT / MI CUENTA
=========================== */
.wc-page-main {
  margin-top: 58px;
  background: var(--light-bg);
  padding: 48px 0 80px;
  min-height: 60vh;
}

/* Títulos de sección WooCommerce */
.wc-page-main h1,
.wc-page-main h2,
.wc-page-main h3 {
  font-family: 'Baloo 2';
  font-weight: 700;
  color: var(--dark);
}

/* ---- TABLA DEL CARRITO ---- */
.woocommerce-cart-form table.shop_table,
.woocommerce-checkout table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.woocommerce-cart-form table.shop_table th,
.woocommerce-cart-form table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}

.woocommerce-cart-form table.shop_table th {
  background: var(--amber-bg);
  font-family: 'Baloo 2';
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dark);
}

.woocommerce-cart-form table.shop_table .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.woocommerce-cart-form table.shop_table .product-name a {
  font-family: 'Baloo 2';
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.woocommerce-cart-form table.shop_table .product-name a:hover {
  color: var(--red);
}

.woocommerce-cart-form .qty {
  width: 60px;
  text-align: center;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}

.woocommerce-cart-form .button[name="update_cart"],
.woocommerce-cart-form .button[name="proceed"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 35px;
  font-family: 'Baloo 2';
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.woocommerce-cart-form .button[name="update_cart"]:hover {
  background: #333;
}

.added_to_cart.wc-forward,
.woocommerce a.added_to_cart {
  display: none;
}

/* Ocultar notices originales de WooCommerce (los convertimos en toasts) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: none !important;
}

/* ===========================
   TOAST STACK (WC notices)
=========================== */
#wc-toast-stack {
  position: fixed;
  top: 50px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.wc-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
  font-size: .9rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  color: #fff;
  max-width: 320px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .3s ease, transform .3s ease;
}

.wc-toast.visible {
  opacity: 1;
  transform: translateX(0);
}

.wc-toast svg {
  flex-shrink: 0;
}

.wc-toast--success {
  background: var(--green);
  border-left: 4px solid var(--green-dark);
}

.wc-toast--info {
  background: #1976d2;
  border-left: 4px solid #0d47a1;
}

.wc-toast--error {
  background: var(--red);
  border-left: 4px solid var(--red-dark);
}

/* Total del carrito */
.cart-collaterals .cart_totals {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  max-width: 420px;
  margin-left: auto;
}

.cart_totals h2 {
  font-family: 'Baloo 2';
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.cart_totals table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart_totals table th,
.cart_totals table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.cart_totals table th {
  color: var(--text-light);
  font-weight: 500;
  width: 40%;
}

.cart_totals .order-total td,
.cart_totals .order-total th {
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  border-bottom: none;
}

.cart_totals .checkout-button,
.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 28px;
  border-radius: 35px;
  background: var(--red);
  color: var(--white);
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
}

.cart_totals .checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ---- LAYOUT DOS COLUMNAS (estilo block cart) ---- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-layout-items {
  min-width: 0;
}

.cart-layout-side {
  position: sticky;
  top: 90px;
}

/* En la vista de dos columnas, ocultar los cross-sells del lado */
.cart-layout-side .cross-sells {
  display: none;
}

/* ---- AVISO ENVÍO GRATIS ---- */
.iriba-free-shipping-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1px solid #a5d6a7;
  border-left: 4px solid #43a047;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: #2e7d32;
}

/* ---- BOTÓN ELIMINAR CIRCULAR ---- */
.woocommerce-cart-form table.shop_table .product-remove .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #888;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.woocommerce-cart-form table.shop_table .product-remove .remove:hover {
  background: var(--red);
  color: #fff;
}

/* ---- ESCONDER COLUMNA PRECIO (la tabla ya muestra subtotal) ---- */
.woocommerce-cart-form table.shop_table thead th.product-price,
.woocommerce-cart-form table.shop_table td.product-price {
  display: none;
}

/* ---- COLUMNA PRESENTACIÓN (resumen "Tu pedido" en checkout) ---- */
.woocommerce-checkout table.shop_table th.product-presentation,
.woocommerce-checkout table.shop_table td.product-presentation {
  text-align: center;
  white-space: nowrap;
  color: var(--muted, #666);
  font-size: 0.85rem;
}

/* ---- REVIEW ORDER TABLE — RESPONSIVE < 480px ---- */
@media (max-width: 480px) {
  table.shop_table.woocommerce-checkout-review-order-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---- QUANTITY STEPPER ---- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
}

.qty-btn {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
  font-family: 'Baloo 2', sans-serif;
}

.qty-btn:hover {
  background: #f0f0f0;
}

.qty-stepper .qty {
  width: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  padding: 0;
  height: 34px;
  outline: none;
  background: transparent;
  -moz-appearance: textfield;
}

.qty-stepper .qty::-webkit-outer-spin-button,
.qty-stepper .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---- CUPÓN Y ACCIONES ---- */
.woocommerce-cart-form td.actions {
  padding: 16px 20px;
  background: #fafafa;
}

.woocommerce-cart-form td.actions .coupon,
.cart_totals .coupon {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.woocommerce-cart-form td.actions .coupon input#coupon_code,
.cart_totals .coupon input#coupon_code {
  flex: 1;
  min-width: 140px;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.woocommerce-cart-form td.actions .coupon input#coupon_code:focus,
.cart_totals .coupon input#coupon_code:focus {
  border-color: var(--red);
}

.woocommerce-cart-form td.actions .coupon .button,
.cart_totals .coupon .button {
  padding: 9px 20px;
  border-radius: 24px;
  background: var(--dark);
  color: var(--white);
  font-family: 'Baloo 2';
  font-weight: 600;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.woocommerce-cart-form td.actions .coupon .button:hover,
.cart_totals .coupon .button:hover {
  background: var(--dark);
  color: var(--white);
}

.woocommerce-cart-form td.actions .button[name="update_cart"] {
  padding: 9px 20px;
  font-size: 0.82rem;
  background: #E73C2E;
  color: white;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt {
  background: #E73C2E;
  border-radius: 24px;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover {
  background: #C62828;
}

/* Carrito vacío */
.cart-empty-wrapper {
  padding: 40px 0 60px;
}

.cart-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px 40px;
  gap: 12px;
  color: var(--text-light);
}

.cart-empty-message svg {
  opacity: 0.35;
  margin-bottom: 8px;
}

.cart-empty-message .button {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  padding: 10px 32px;
  border-radius: 35px;
  background: var(--red);
  color: var(--white);
  font-family: 'Baloo 2';
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
}

.cart-empty-message .button:hover {
  background: var(--red-dark);
}

.cart-empty-products h3 {
  text-align: center;
}

/* ---- CHECKOUT ---- */
.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--red);
  padding: 6px 14px;
  border-radius: 20px;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout h3 {
  font-family: 'Baloo 2';
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.woocommerce-checkout form.checkout .form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.woocommerce-checkout form.checkout .form-row input,
.woocommerce-checkout form.checkout .form-row select,
.woocommerce-checkout form.checkout .form-row textarea {
  width: 100%;
  padding: 11px 68px 14px 11px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.woocommerce-checkout form.checkout .form-row input:focus,
.woocommerce-checkout form.checkout .form-row select:focus,
.woocommerce-checkout form.checkout .form-row textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 57, 26, 0.12);
}

.woocommerce-checkout form.checkout .form-row select {
  cursor: pointer;
  padding-right: 3em;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=);
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 12px center;
  background-position: calc(100% - .5em) 50%;
}

#place_order {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 35px;
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

#place_order:hover {
  background: var(--red-dark);
}

/* ===========================
   LIBRO DE RECLAMACIONES
=========================== */
.inner-hero--libro .inner-hero-text h1,
.inner-hero--libro .inner-hero-text p {
  color: var(--dark);
}

.libro-section {
  padding: 60px 0;
  background: var(--white);
}

.libro-inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.libro-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.libro-form label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.libro-form label span {
  color: var(--red);
  margin-left: 6px;
}

.libro-form input[type="text"],
.libro-form input[type="email"],
.libro-form input[type="file"],
.libro-form textarea {
  width: 100%;
  padding: 12px 68px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: var(--transition);
}

.libro-form input[type="file"] {
  padding: 8px 6px;
}

.libro-form textarea {
  min-height: 160px;
  resize: vertical;
}

.libro-form input[type="text"]:focus,
.libro-form input[type="email"]:focus,
.libro-form textarea:focus {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: var(--red);
}

.notice {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
}

.notice.success {
  background: #E7F8F2;
  color: #1b6f3b;
  border: 1px solid rgba(58, 107, 42, 0.12);
}

.notice.error {
  background: #FFF2F2;
  color: #8a1e1e;
  border: 1px solid rgba(232, 57, 26, 0.08);
}

.libro-form .btn {
  padding: 12px 28px;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  font-weight: 700;
}

.libro-form .btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* Secciones del formulario */
.libro-seccion {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 22px;
}

.libro-seccion-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

.libro-seccion-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

/* Grid 2 columnas */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Select */
.libro-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: var(--transition);
  appearance: none;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=);
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 12px center;
  padding-right: 36px;
}

.libro-form select:focus {
  border-color: var(--red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.libro-form input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: var(--transition);
}

.libro-form input[type="number"]:focus {
  border-color: var(--red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Radio groups tipo Reclamo/Queja y Producto/Servicio */
.libro-type-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.libro-radio {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  flex: 1;
  min-width: 160px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
  font-weight: normal;
}

.libro-radio input[type="radio"] {
  display: none;
}

.libro-radio span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.libro-radio small {
  font-size: 0.8rem;
  color: var(--text-light);
}

.libro-radio:has(input:checked) {
  border-color: var(--red);
  background: #fff5f3;
}

.libro-radio:has(input:checked) span {
  color: var(--red);
}

/* Aviso legal */
.libro-legal {
  background: #fff8e6;
  border: 1px solid #f0c254;
  border-left: 4px solid #f0c254;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.87rem;
  color: #5a4200;
  margin-bottom: 22px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }

  .libro-type-group {
    flex-direction: column;
  }
}

/* ===========================
   CARRITO – LOADER PÁGINA COMPLETA
=========================== */

/* Ocultar los overlays individuales de blockUI en cada sección */
.woocommerce-cart-form .blockUI.blockOverlay,
.cart_totals .blockUI.blockOverlay,
form.woocommerce-checkout .blockUI.blockOverlay,
form.checkout .blockUI.blockOverlay,
.woocommerce-checkout-review-order .blockUI.blockOverlay,
.woocommerce-checkout-payment .blockUI.blockOverlay,
#customer_details .blockUI.blockOverlay,
.blockUI.blockOverlay.checkout-overlay {
  display: none !important;
}

/* Loader único de página completa */
#iriba-cart-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(2px);
}

#iriba-cart-loader.active {
  opacity: 1;
  visibility: visible;
}

#iriba-cart-loader .iriba-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: iriba-spin 0.7s linear infinite;
}

@keyframes iriba-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===========================
   CHECKOUT – CONTADORES Y VALIDACIONES
=========================== */
.iriba-input-wrap {
  position: relative;
}

.iriba-input-wrap input,
.iriba-input-wrap textarea {
  width: 100%;
}

.iriba-char-counter {
  position: absolute;
  right: 14px;
  bottom: 13px;
  font-size: 0.7rem;
  color: #bbb;
  letter-spacing: 0.02em;
  pointer-events: none;
  line-height: 1;
  transition: color 0.2s;
}

.iriba-input-wrap textarea~.iriba-char-counter {
  bottom: 10px;
}

.iriba-char-counter--warn {
  color: var(--red);
}

.iriba-field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 4px;
  font-family: 'Baloo 2', sans-serif;
}

.iriba-field-error--visible {
  display: block;
}

/* Términos y Condiciones */
.iriba-terms-row {
  margin: 12px 0 16px;
}

.iriba-terms-label {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  line-height: 1.4;
}

.iriba-terms-label input[type="checkbox"] {
  width: 17px !important;
  height: 17px;
  min-width: 17px;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.iriba-terms-label a {
  color: var(--red);
  text-decoration: underline;
  font-weight: 600;
}

.iriba-terms-label a:hover {
  color: var(--red-dark);
}

.iriba-terms-error {
  display: none;
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 6px;
  font-family: 'Baloo 2', sans-serif;
}

.iriba-terms-error--visible {
  display: block;
}

/* ===========================
   MODAL CONFIRMACI�N � ELIMINAR DEL CARRITO
=========================== */
#iriba-remove-modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 16px;
}

#iriba-remove-modal.iriba-modal--visible {
  opacity: 1;
}

.iriba-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

#iriba-remove-modal.iriba-modal--visible .iriba-modal-card {
  transform: translateY(0);
}

.iriba-modal-msg {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 24px;
  text-align: center;
}

.iriba-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.iriba-modal-cancel,
.iriba-modal-confirm {
  flex: 1;
  padding: 12px 20px;
  border-radius: 35px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.iriba-modal-cancel {
  background: var(--dark);
  color: #fff;
}

.iriba-modal-cancel:hover {
  background: #333;
  transform: translateY(-2px);
}

.iriba-modal-confirm {
  background: var(--red);
  color: #fff;
}

.iriba-modal-confirm:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ===========================
   STRIPE – ESTILOS DE LOS ELEMENTOS DE PAGO
=========================== */
.wc-stripe-card-element {
  padding: 10px 12px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  background: #fff;
}

.wc-stripe-card-errors {
  color: var(--red);
  margin-top: 6px;
  font-size: 13px;
  min-height: 1.2em;
}

.wc-stripe-sandbox-notice {
  background: #fff8e1;
  border-left: 4px solid var(--yellow);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1200px) {

  .blog-hero-inner img {
    opacity: 0.5;
  }
}

@media (max-width: 1100px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout-side {
    position: static;
  }
}

@media (max-width: 1024px) {

  /* Slider */
  .slide-product {
    width: 240px;
  }

  .slide-product img {
    max-height: 340px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Nosotros / Valores */
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Single product */
  .sp-content {
    grid-template-columns: 1fr;
  }

  .sp-gallery {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Blog / Términos */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .terms-img {
    float: none;
    max-width: 100%;
    margin: 0 0 2rem 0;
  }
}

@media (max-width: 768px) {
  .hero {
    position: relative;
    height: 472px;
  }

  /* Menú móvil */
  .menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }

  .menu.open {
    display: flex;
  }

  .nav-link {
    color: var(--white);
    font-size: 1.3rem;
  }

  .cart-icon {
    color: var(--white);
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero */
  .slide-product {
    display: none;
  }

  .slide-inner {
    justify-content: flex-start;
  }

  /* Diferencias */
  .diferencias-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Propósito */
  .purpose-content {
    grid-template-columns: 1fr;
  }

  /* Tienda */
  .product-row {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .product-row-img {
    min-height: 200px;
  }

  .product-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-price {
    position: static;
    align-self: center;
  }

  .product-btns {
    margin: auto;
  }

  /* Blog banner */
  .blog-banner {
    flex-direction: column;
    max-width: 450px;
  }

  .blog-photos {
    height: 120px;
    width: 100%;
  }

  .blog-photos img:nth-child(2) {
    display: none;
  }

  .blog-photos img:nth-child(3) {
    display: none;
  }

  .blog-text {
    max-width: 100%;
    padding: 24px;
  }

  /* Contacto */
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-dog {
    display: none;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  /* Inner hero */
  .inner-hero {
    height: 200px;
  }

  .inner-hero-layout {
    height: 200px;
  }

  .inner-hero-photo {
    height: 200px;
    opacity: 0.8;
  }

  /* Nosotros */
  .qs-content,
  .prov-content {
    grid-template-columns: 1fr;
  }

  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Single product: ingredientes */
  .ing-layout {
    grid-template-columns: 1fr 160px 1fr;
  }

  /* Relacionados */
  .related-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .related-wrapper {
    flex-direction: column;
  }

  .related-arrow {
    display: none;
  }

  /* Blog / Términos */
  .blog-hero-dogs-right,
  .terms-hero-dogs {
    display: none;
  }

  .blog-hero-text {
    padding: 0 24px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .article-card {
    padding: 24px 20px 32px;
  }

  .article-featured-img {
    height: 240px;
  }

  /* WooCommerce */
  .wc-page-main {
    padding: 32px 0 60px;
  }

  .cart-collaterals .cart_totals {
    max-width: 100%;
  }

  .inner-hero .container {
    position: initial;
  }
}

@media (max-width: 480px) {
  .slide-overlay {
    background: linear-gradient(to right,
        rgba(20, 20, 20, 0.82) 17%,
        rgba(20, 20, 20, 0.1) 85%);
  }

  /* Tienda */
  .product-btns .btn {
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  /* Hero slider */
  .slider-arrow {
    display: none;
  }

  /* Valores */
  .valores-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Ingredientes */
  .ing-layout {
    grid-template-columns: 1fr;
  }

  .ing-col:first-child,
  .ing-col:last-child {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ing-center-product {
    order: -1;
  }

  .blog-text {
    flex-direction: column;
  }

  .ing-top {
    display: block;
  }

  .prov-text h4 {
    line-height: 1.5rem;
  }

  .prov-text p {
    font-size: 0.75rem;
    line-height: 1.1rem;
  }
}

@media (max-width: 380px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 880px) {
  .libro-form .form-row.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

}