:root {
  --green: #227768;
  --green-dark: #1a4d44;
  --green-light: #2d9a87;
  --green-pale: #f4f9f8;
  --clay: #c4723a;
  --clay-pale: #fdf4ee;
  --text: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --bg: #fcfcfc;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
  --border: #e2ece7;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAVBAR */
nav {
  background: white;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  max-width: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--green);
}

.btn-nav {
  background: var(--green);
  color: white !important;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
}

/* DROPDOWN MENU */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.dropdown-toggle:hover {
  color: var(--green);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
  margin-top: 0.5rem;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: 0.3s;
  white-space: nowrap;
}

.dropdown-menu a:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-menu a:hover {
  background: var(--green-pale);
  color: var(--green);
}

/* BLOG CONTENT */
.blog-header {
  padding: 180px 0 60px;
  background: var(--green-pale);
  text-align: center;
}

.blog-header span {
  display: inline-block;
  background: var(--green-light);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--green);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.blog-header h1 em {
  font-style: italic;
  color: var(--clay);
}

.blog-header p.blog-index-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 1.5rem;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 3rem;
  align-items: start;
}

.article-body > *:not(.toc) {
  grid-column: 1;
}

.article-body .toc {
  grid-column: 2;
  grid-row: 1 / span 100;
  position: sticky;
  top: 100px;
}

.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

.toc {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 0;
  box-shadow: var(--shadow);
}

.toc-title {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.8px;
}

.toc ol {
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.toc li {
  font-size: 0.85rem;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.85rem;
}

.toc a:hover { color: var(--green); }

.technique {
  margin-bottom: 5rem;
  scroll-margin-top: 120px;
}

.technique-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.technique-number {
  width: 50px;
  height: 50px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.technique h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--green);
}

.technique h2 span {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.clay-card {
  background: var(--clay-pale);
  border-left: 4px solid var(--clay);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}

.clay-card strong {
  display: block;
  color: var(--clay);
  margin-bottom: 0.5rem;
}

blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--green);
  text-align: center;
  padding: 3rem;
  margin: 4rem 0;
  background: var(--green-pale);
  border-radius: 20px;
  position: relative;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* ARTICLE / DECORATION CARDS (used in "Más del blog" and blog index) */
.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.article-card-header { padding: 2rem; }
.article-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.article-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.article-preview {
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.btn-expand {
  background: none;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-expand:hover {
  background: var(--green);
  color: white;
}

.article-full {
  display: none;
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.article-full.open { display: block; }

.article-full h4 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
  margin: 1.5rem 0 0.5rem;
}

/* BLOG INDEX GRID (listing page) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-body .article-tag { align-self: flex-start; }

.blog-card-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.blog-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card-link:hover { color: var(--clay); }

/* RELATED ARTICLES (bottom of an individual article page) */
.related-articles {
  margin-top: 5rem;
}

.related-articles h2 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* CTA FINAL */
.cta-block {
  background: var(--green-dark);
  color: white;
  border-radius: 25px;
  padding: 4rem 3rem;
  text-align: center;
  margin-top: 5rem;
}

.cta-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-block p {
  color: white !important;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 1 !important;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-cta {
  background: var(--clay);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s;
}

.btn-secondary-cta {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid white;
  transition: all 0.3s;
}

.btn-secondary-cta:hover {
  background: white;
  color: var(--green-dark);
}

/* FOOTER */
footer {
  background: #1a1a1a;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

footer p { font-size: 0.9rem; opacity: 0.8; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-links a:hover { opacity: 1; }

/* MOBILE MENU */
.menu-toggle { display: none; cursor: pointer; }
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--green);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 1200px) {
  .article-body {
    grid-template-columns: 1fr;
  }

  .article-body .toc {
    grid-column: 1;
    position: static;
    margin: 3rem 0;
  }
}

@media (max-width: 992px) {
  .logo img { height: 44px; }
  .menu-toggle { display: block; z-index: 1001; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    transition: 0.4s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    align-items: center;
  }
  .nav-links.active { right: 0; }
  .nav-item { flex-direction: column; width: 100%; }
  .nav-item .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    background: rgba(34, 119, 104, 0.05);
    width: 100%;
    text-align: center;
    min-width: auto;
    box-shadow: none;
    transform: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .nav-item.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    margin-top: 0.5rem;
    border-radius: 12px;
  }

  .dropdown-toggle {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .dropdown-menu a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    display: block;
  }

  .nav-links a { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .logo img { height: 38px; }
  .blog-header { padding: 140px 0 40px; }
  .blog-meta { flex-direction: column; gap: 0.5rem; }
  .cta-block { padding: 3rem 1.5rem; }
  .cta-block h3 { font-size: 1.8rem; }
  blockquote { font-size: 1.4rem; padding: 1.5rem; }
}

    /* PRODUCTOS RELACIONADOS (BLOG) */
  .related-section {
    margin-top: 3rem;
  }
  .related-section h2 { font-size: 1.4rem; margin-bottom: 1.2rem; color: var(--green-dark, #1a5d51); font-family: 'Playfair Display', serif; }
  .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.5rem;
  }
  .related-card {
    background: var(--white, #fff);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.05));
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
  }
  .related-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.09); }
  .related-card .related-img { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-dark, #f0e6d3); }
  .related-card .related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .related-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-dark, #1a5d51);
    padding: 0.8rem 1rem;
  }
