/* ========================================================
   ACTIVOPLUS+ MAIN STYLESHEET - ESTILO KOOBA / NATURE CRAFT
   Reset, Cabecera verde oliva, Fondo pergamino y Navegación
   ======================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text-main);
  background-color: var(--bg-parchment);
  background-image: url('../images/paper-texture.svg');
  background-repeat: repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--btn-dark-bg);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 15px;
  outline: 3px solid #ffcc00;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--sp-md);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: var(--sp-md);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: var(--sp-sm);
}

p {
  margin-bottom: var(--sp-md);
}

p.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

a {
  color: var(--color-olive-header-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

a:hover {
  color: var(--color-watercolor-terracotta);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #5a7b26;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================
   CABECERA VERDE OLIVA (ESTILO KOOBA)
   ======================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-olive-header);
  background-image: linear-gradient(180deg, #7e9c3c 0%, #68852c 100%);
  border-bottom: 2px solid var(--color-olive-header-border);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logotipo en pastilla oscura redondeada (exacto estilo kooba) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(180deg, #2b3930 0%, #1a251f 100%);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.25);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 1px solid #141d18;
}

.logo:hover {
  color: #ffffff;
  text-decoration: none;
  background: #18221c;
}

.logo-plus {
  color: #a4ce57;
  font-weight: 900;
  margin-left: 1px;
}

.logo-tag {
  font-size: 0.65rem;
  color: #b0c99b;
  text-transform: lowercase;
  opacity: 0.85;
}

/* Menú de navegación en la franja verde oliva */
.main-nav {
  display: none;
}

@media (min-width: 980px) {
  .main-nav {
    display: flex;
    align-items: center;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.25);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f0f6e4;
  text-decoration: none;
  padding: 10px 14px;
  display: block;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.22);
}

/* Acciones en la cabecera */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #2b3930 0%, #1a251f 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid #141d18;
}

.btn-header-follow:hover {
  background: #151e18;
  color: #ffffff;
  text-decoration: none;
}

/* Botón menú móvil */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  gap: 4px;
}

@media (min-width: 980px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer móvil */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: #FAF7EE;
  background-image: url('../images/paper-texture.svg');
  border-top: 2px solid var(--color-olive-header-border);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: #e9f0dc;
  color: var(--color-olive-header-dark);
  border-color: #b5cca0;
}

/* ========================================================
   CINTA KRAFT (MASKING TAPE BANNER) - ESTILO KOOBA SERVICES
   ======================================================== */

.tape-banner {
  position: relative;
  display: inline-block;
  background-image: url('../images/kraft-tape.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 12px 36px 14px;
  transform: rotate(-0.8deg);
  margin: 1.5rem auto 2.25rem;
  filter: drop-shadow(0 2px 4px rgba(60, 50, 30, 0.18));
}

.tape-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(60, 45, 20, 0.6);
  letter-spacing: -0.01em;
  text-transform: lowercase;
  margin: 0;
  display: inline-block;
}

.tape-banner-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Divisor horizontal de papel rasgado */
.torn-divider {
  width: 100%;
  height: 24px;
  background-image: url('../images/torn-paper.svg');
  background-repeat: repeat-x;
  background-size: 1200px 24px;
  margin: 2.5rem 0;
}

/* ========================================================
   BOTONES OSCUROS DE RELIEVE SUAVE (ESTILO KOOBA)
   ======================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid #141d18;
}

.btn-primary, .btn-dark {
  background: linear-gradient(180deg, #2b3a31 0%, #17221c 100%);
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
}

.btn-primary:hover, .btn-dark:hover {
  background: linear-gradient(180deg, #202b24 0%, #0f1612 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #9bb58a;
  color: var(--color-text-main);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--color-olive-header-dark);
  text-decoration: none;
  border-color: #68852c;
}

.btn-accent {
  background: linear-gradient(180deg, #c9755f 0%, #b35e48 100%);
  border-color: #8c3f2d;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.btn-accent:hover {
  background: linear-gradient(180deg, #b86650 0%, #9e4c37 100%);
  color: #ffffff;
  text-decoration: none;
}

.btn-soft {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  color: var(--color-text-main);
}

.btn-soft:hover {
  background-color: #ffffff;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 11px 24px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

/* Insignias */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #e3ebd7;
  color: #496323;
  border: 1px solid #c8d9b4;
}

.badge-salvia {
  background-color: #e5ded0;
  color: #5d5138;
  border-color: #cfc2ad;
}

.badge-terracota {
  background-color: #f7e6e1;
  color: #9c4c37;
  border-color: #e8bfb4;
}

/* Migas de pan */
.breadcrumbs {
  padding: var(--sp-xs) 0;
  margin-bottom: var(--sp-md);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.breadcrumbs-item a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs-item a:hover {
  color: var(--color-olive-header-dark);
  text-decoration: underline;
}

.breadcrumbs-separator {
  color: #a4b39b;
}

.breadcrumbs-item[aria-current="page"] {
  color: var(--color-olive-header-dark);
  font-weight: 700;
}

/* Aviso editorial */
.editorial-disclaimer {
  background-color: rgba(255, 255, 255, 0.75);
  border-left: 4px solid var(--color-olive-header);
  border: 1px solid var(--border-light);
  border-left-width: 4px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: var(--sp-xl) 0;
  font-size: 0.9375rem;
  line-height: var(--lh-base);
  box-shadow: var(--shadow-xs);
}

.editorial-disclaimer strong {
  color: var(--color-olive-header-dark);
}

/* Pie de página */
.site-footer {
  margin-top: auto;
  background-color: #243322;
  background-image: linear-gradient(180deg, #2b3d29 0%, #1d291b 100%);
  color: #d6e2cf;
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-xl);
  font-size: var(--fs-sm);
  border-top: 4px solid #5a7629;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer-brand .logo {
  margin-bottom: var(--sp-sm);
  display: inline-flex;
}

.footer-brand p {
  color: #b5c7ad;
  line-height: 1.55;
  font-size: 0.875rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--sp-sm);
  text-transform: lowercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #bfd0b7;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: #bfd0b7;
  font-size: 0.875rem;
}

.footer-contact-info strong {
  color: #ffffff;
}

.footer-contact-info a {
  color: #bfd0b7;
}

.footer-disclaimer-box {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: var(--sp-xl);
  font-size: 0.8125rem;
  color: #a6baa0;
  line-height: 1.55;
}

.footer-disclaimer-box strong {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa588;
  font-size: 0.8125rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.footer-legal-links a {
  color: #a6baa0;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #ffffff;
}
