/* Importamos la tipografía vintage para títulos y la sans-serif para lectura */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,800&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

/*
@import url('https://fonts.googleapis.com/css2?family=Young+Serif:opsz,wght@9..144,700;9..144,800&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');
*/

:root {
  /* Paleta oficial sincronizada con el Logo */
  --green-primary: #2d4a27;       /* Verde pasto profundo */
  --green-hover: #1e331a;         /* Verde oscuro para hover */
  --yellow-sun: #e3b145;          /* Amarillo maíz/mostaza del logo */
  --terracotta: #d97828;          /* Ocre/terracota de la cresta */
  --cream-bg: #f6f1e3;            /* Crema/Beige textura papel */
  --ink-dark: #1a1916;            /* Negro tinta artesanal */
  --white-card: #ffffff;
  
  /* Tipografías */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-bg);
  color: var(--ink-dark);
}

h1, h2, h3, h4, .brand-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Header & Brand Logo */
.navbar-organic {
  background-color: rgba(246, 241, 227, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 177, 69, 0.25);
}

.logo-header-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-header-img:hover {
  transform: scale(1.05);
}

.brand-title {
  color: var(--green-primary);
  font-size: 1.4rem;
  font-weight: 800;
}

/* Botones con colores sincronizados */
.btn-organic-action {
  background-color: var(--green-primary);
  color: #ffffff;
  border: none;
  transition: all 0.2s ease-in-out;
}

.btn-organic-action:hover {
  background-color: var(--green-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(45, 74, 39, 0.25);
}

.badge-pastoreo {
  background-color: var(--yellow-sun);
  color: var(--ink-dark);
  font-weight: 700;
}

.section-padding {
  padding: 3rem 0;
}

.card-product {
  border: 1px solid #eae5d9;
  border-radius: 16px;
  background-color: #ffffff;
  transition: transform 0.2s ease, shadow 0.2s ease;
}

.card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(45, 90, 39, 0.08);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background-color: #f1ece1;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta y encaja la imagen proporcionalmente sin deformarla */
  object-position: center;
  transition: transform 0.3s ease;
}

.card-product:hover .product-card-img {
  transform: scale(1.04);
}

.nav-vertical-stories .nav-link {
  color: var(--ink-dark);
  border-left: 3px solid #e0dcd3;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.nav-vertical-stories .nav-link:hover,
.nav-vertical-stories .nav-link.active {
  color: var(--green-primary);
  border-left-color: var(--green-primary);
  background-color: #f3efe6;
  font-weight: 700;
}

/* Estilos para el contenido enriquecido de las historias */
.contenido-historia img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.contenido-historia table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.contenido-historia th, 
.contenido-historia td {
  padding: 0.5rem;
  border: 1px solid #dee2e6;
}

.contenido-historia iframe {
  max-width: 100%;
  border-radius: 8px;
}

.ratio-youtube {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.footer-organic {
  background-image: url('../img/pie2.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
  padding: 8rem 0 3rem 0; /* Mayor altura para que se luzcan la ilustración y el espacio superior */
  color: var(--ink-dark);
}

/* Capa translúcida opcional para asegurar que los textos se lean perfecto sobre el dibujo */
.footer-organic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(246, 241, 227, 0.88); /* Fondo crema del tono de la marca que respeta la textura */
  z-index: 1;
}

.footer-organic .container {
  position: relative;
  z-index: 2;
}