:root {
  /* --- PALETA DE COLORES "MINERAL" --- */
  --color-olive: #5a6b3f;       /* Tu color base */
  --color-olive-dark: #3d4a2a;  /* Versión más profunda para hover */
  --color-volcanic: #222620;    /* Casi negro, cálido (Gris Volcánico) */
  --color-stone: #f4f4f0;       /* Blanco roto / Crema piedra */
  --color-white: #ffffff;
  --color-text: #2c2c2c;        /* Gris oscuro legible */
  --color-muted: #6b6b6b;
  --color-border: #e0e0da;
  
  /* --- FUENTES --- */
  --font-heading: 'Montserrat', sans-serif; /* Geométrica, técnica */
  --font-body: 'Lora', serif;               /* Elegante, editorial */

  --max-width: 1200px;
  --radius-card: 16px;
  --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px -10px rgba(90, 107, 63, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-stone); /* Fondo color "hueso" */
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* --- TEXTURA DE "PAPEL/ROCA" (DISTINTIVO VISUAL) --- */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Ruido sutil para dar textura de material natural */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, .btn, .nav-ob, .logo-text, .card-tag {
  font-family: var(--font-heading);
}

img {
  max-width: 100%;
  display: block;
}

/* --- HEADER --- */
.header-ob {
  background: rgba(255, 255, 255, 0.9); /* Semitransparente */
  backdrop-filter: blur(10px);          /* Efecto cristal moderno */
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner { /* Para las páginas internas */
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo, .logo-ob {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark, .logo-ob-mark {
  width: 32px;
  height: 32px;
  background: var(--color-olive);
  border-radius: 6px 12px 6px 12px; /* Forma orgánica asimétrica */
}

.logo-text, .logo-ob-text {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-volcanic);
}

nav ul, .nav-ob ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
}

nav a, .nav-ob a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
  position: relative;
}

nav a:hover, .nav-ob a:hover,
nav a.active, .nav-ob a.active {
  color: var(--color-olive);
}

/* Línea animada debajo del link activo */
nav a.active::after, .nav-ob a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-olive);
  position: absolute;
  bottom: -4px;
  left: 0;
}

/* --- HERO (HOME) --- */
.hero-minimal-carousel {
  padding: 4rem 1.2rem;
  background: transparent; /* Deja ver la textura del body */
}

.hero-mc-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-mc-name {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-volcanic);
  letter-spacing: -0.02em;
}

.hero-mc-claim {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--color-olive);
  text-align: right;
}

/* Estilo Distintivo del Carrusel */
.carousel {
  width: 100%;
  height: 550px;
  position: relative;
  border-radius: 200px 200px 20px 20px; /* Forma de ARCO / VENTANA */
  overflow: hidden;
  box-shadow: 20px 20px 0px rgba(90, 107, 63, 0.15); /* Sombra sólida decorativa */
  transition: transform 0.3s;
}

.carousel:hover {
  transform: scale(1.01); /* Sutil efecto al pasar el mouse */
}

.carousel-track-manual {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-track-manual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  animation: fadeIn 0.6s ease;
}
.carousel-track-manual img.active { display: block; }

@keyframes fadeIn { from { opacity: 0.8; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  color: var(--color-olive);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.carousel-btn:hover { background: var(--color-olive); color: white; }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }


/* --- HERO PRODUCTO (INTERNAS) --- */
.hero-producto {
  padding: 5rem 1.2rem;
  background-color: var(--color-volcanic); /* Fallback */
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 2rem auto;
  border-radius: 24px; /* Tarjeta flotante grande */
  overflow: hidden;
}

.hero-producto h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.hero-producto h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.hero-producto img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.hero-kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.7;
  border-left: 3px solid white;
  padding-left: 10px;
}


/* --- SECCIONES GENERALES --- */
.section-text-center { padding: 4rem 1.2rem; }
.section-text-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.section-text-inner h2 {
  font-size: 2rem; margin-bottom: 1.5rem; color: var(--color-olive); line-height: 1.3;
}

.section-band {
  padding: 4rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.section-band-light {
  background: var(--color-white);
  border-radius: 24px; /* Sección encapsulada */
  margin: 2rem auto;
  box-shadow: var(--shadow-soft);
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto 2.5rem;
  padding: 0 1.2rem;
}
.section-title { font-size: 2.2rem; color: var(--color-volcanic); margin-bottom: 0.5rem; }
.section-kicker {
  color: var(--color-olive);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* --- CARDS (PRODUCTOS) --- */
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card, .card-ob {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.03); /* Borde casi invisible */
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  top: 0;
}

.card:hover, .card-ob:hover {
  transform: translateY(-8px); /* Efecto de elevación */
  box-shadow: var(--shadow-hover);
}

.card img, .card-ob img {
  border-radius: 8px;
  margin-bottom: 1.2rem;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-tag {
  display: inline-block;
  background: var(--color-stone);
  color: var(--color-olive);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card h4, .card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-volcanic);
}
.card-text, .card-ob p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1.2rem;
}

.link-ob {
  color: var(--color-olive);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.link-ob:hover { border-bottom-color: var(--color-olive); }

/* --- BOTONES --- */
.btn, .btn-primary, .btn-olive {
  display: inline-block;
  background-color: var(--color-olive);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px; /* Pill shape */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(90, 107, 63, 0.3);
  cursor: pointer;
}

.btn:hover, .btn-primary:hover, .btn-olive:hover {
  background-color: var(--color-volcanic);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline, .btn-outline-dark {
  display: inline-block;
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-outline:hover { background: white; color: var(--color-olive); }

.btn-outline-dark {
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline-dark:hover {
  border-color: var(--color-volcanic);
  background: var(--color-volcanic);
  color: white;
}

/* --- TABLAS --- */
.table-wrapper { overflow-x: auto; margin-bottom: 2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
th, td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: var(--color-stone); font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase; color: var(--color-muted); }

/* --- LISTAS BENEFICIOS --- */
.benefit-list { display: grid; gap: 1.5rem; }
.benefit-item { display: flex; gap: 1rem; }
.benefit-dot {
  min-width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-olive);
  margin-top: 0.4rem;
  box-shadow: 0 0 0 4px rgba(90, 107, 63, 0.2); /* Anillo decorativo */
}

/* --- PILLS --- */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.pill {
  background: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pill-dot { width: 6px; height: 6px; background: var(--color-olive); border-radius: 50%; }


/* --- FOOTER --- */
footer, .footer-ob {
  background-color: var(--color-volcanic);
  color: #aaa;
  padding: 4rem 1.2rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-title {
  font-family: var(--font-heading);
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-inner a { color: #ddd; text-decoration: none; }
.footer-inner a:hover { color: white; text-decoration: underline; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-mc-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-mc-name { font-size: 2.5rem; text-align: center; }
  .hero-mc-claim { text-align: center; font-size: 1.5rem; }
  .section-band, .hero-producto { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 1rem; }
  .carousel { height: 350px; border-radius: 12px; } /* Simplificar forma en móvil */
  nav ul, .nav-ob ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* =========================================
   EFECTO "POP-OUT" DE IMÁGENES DE PRODUCTO
   ========================================= */

/* 1. Aseguramos que la tarjeta sea el punto de referencia */
.card, .card-ob {
  position: relative;
  /* Aseguramos que la imagen pueda salirse de los bordes de la tarjeta */
  overflow: visible !important; 
}

/* 2. Creamos un "espacio fantasma" que mantendrá la altura
      cuando la imagen real se vuelva flotante (absolute).
      Esto evita que el texto de abajo salte hacia arriba. */
.card::before, .card-ob::before {
  content: "";
  display: block;
  width: 100%;
  height: 220px; /* Debe coincidir exactamente con la altura base de tus imágenes */
  margin-bottom: 1.2rem; /* Debe coincidir con el margen inferior de la imagen */
}

/* 3. Estilo base de la imagen (Estado Normal)
      Ahora la posicionamos absolutamente sobre el espacio fantasma */
.card img, .card-ob img {
  position: absolute;
  top: 1.5rem; /* Coincide con el padding superior de la tarjeta */
  left: 1.5rem; /* Coincide con el padding izquierdo */
  width: calc(100% - 3rem); /* Ancho total menos los paddings laterales */
  height: 220px; /* Altura fija inicial */
  object-fit: cover; /* Recortar para llenar el espacio */
  border-radius: 8px;
  background-color: var(--color-white); /* Fondo para evitar transparencias al expandir */
  z-index: 10;
  /* Transición suave tipo "rebote" para la expansión */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Sombra inicial sutil */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  /* CLAVE: Agregamos cursor pointer para indicar interactividad */
  cursor: pointer;
}

/* 4. Estado Hover (SOLO cuando el cursor pasa sobre la IMAGEN)
      La imagen se "expande" y se muestra entera */
.card img:hover, .card-ob img:hover {
  /* Hacemos que la imagen sea un poco más ancha que la tarjeta */
  top: -15px;
  left: -15px;
  width: calc(100% + 30px);
  
  /* CLAVE: Altura automática para mostrar la imagen entera */
  height: auto;
  /* Límite de seguridad para imágenes verticales muy largas */
  max-height: 500px; 
  
  /* CLAVE: Cambiamos el modo para que se vea TODO el contenido sin recortes */
  object-fit: contain;
  
  /* La ponemos muy por encima de todo lo demás */
  z-index: 100;
  
  /* Sombra fuerte para dar efecto de que "flota" fuera de la pantalla */
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  
  /* Redondeamos un poco más los bordes al expandirse */
  border-radius: 12px;
}

/* Opcional: Ajuste para que el texto de la tarjeta no se superponga
   si la imagen expandida es transparente en los bordes */
.card h4, .card p, .card .card-tag, .card .link-ob {
    position: relative;
    z-index: 5;
}