:root {
  --bg: #fbf6ef;
  --text: #111111;
  --muted: #2b2723;
  --brand: #b98967;
  --brand-2: #9f7151;
  --card: #fffdf8;
  --line: #e5d8ca;
}

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

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 249, 241, 0.95);
  border-bottom: 1px solid #decebde0;
}

.site-header.blog-header,
.site-header.blog-header.scrolled {
  background: rgba(17, 17, 17, 0.96);
  border-bottom: 1px solid #2e2e2e;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  padding-top: 0px;
  padding-bottom: 10px;
}

.logo img {
  display: block;
  height: 128px;
  width: auto;
  object-fit: contain;
  border-radius: 0rem 0rem 0.35rem 0.35rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.95rem 1.2rem;
  flex: 1;
}

.menu-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex: 1;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-header.scrolled .main-nav a {
  color: var(--text);
}

.site-header.blog-header .main-nav a,
.site-header.blog-header.scrolled .main-nav a {
  color: #f7efe5;
}

.main-nav a:hover {
  color: var(--brand);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #c9b9a9;
  color: #111111;
  background: #fff8f0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: #f8e9dc;
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-links .whatsapp-link {
  width: auto;
  padding: 0 0.72rem;
  border-radius: 999px;
  border: 1px solid #2b2b2b;
  background: #111111;
  color: #ffffff;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.social-links .whatsapp-link svg {
  width: 16px;
  height: 16px;
}

.social-links .whatsapp-link:hover {
  border-color: #3c3c3c;
  background: #242424;
}

.site-header.blog-header .social-links a {
  border-color: #574838;
  color: #f7efe5;
  background: #2a211b;
}

.site-header.blog-header .social-links a:hover {
  border-color: #c59a7d;
  background: #3a2e26;
}

.site-header.blog-header .social-links .whatsapp-link {
  border-color: #e7cdb5;
  color: #111111;
  background: #e7cdb5;
}

.site-header.blog-header .social-links .whatsapp-link:hover {
  border-color: #f1dcc8;
  background: #f1dcc8;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #fbf5ed, #f4eadf, #ecddcf);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, #ffffff90 0 18%, transparent 40%),
    radial-gradient(circle at 80% 70%, #d7c2ab55 0 24%, transparent 44%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 24, 20, 0.8) 0%, rgba(20, 17, 14, 0.8) 72%, rgba(10, 8, 6, 0.8) 100%),
    url("quipu.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #111111;
  padding: 2rem 0;
  margin-top: clamp(2.5rem, 7vh, 5rem);
}

.eyebrow {
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.9;
  font-size: clamp(0.74rem, 1.5vw, 0.95rem);
  color: #ffffff;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.15;
}

strong,
b {
  color: #ffffff;
}

h1 {
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 4.2rem);
  max-width: 14ch;
}

.hero-content h1 {
  font-weight: 700;
  color: #ffc107;
  background: linear-gradient(
    170deg,
    #fff4b8 0%,
    #ffd95a 16%,
    #ffbe1a 40%,
    #f1a500 62%,
    #cb7f00 82%,
    #ffcf3a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 245, 196, 0.6),
    0 2px 6px rgba(255, 176, 0, 0.55);
}

.hero-sub {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  opacity: 0.88;
}

.feature-block {
  padding: clamp(3rem, 6vw, 5.2rem) 0;
}

.feature-block.alt {
  position: relative;
  isolation: isolate;
  background: #f4eade;
  overflow: hidden;
}

.feature-block.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      24deg,
      rgba(126, 92, 66, 0.12) 0,
      rgba(126, 92, 66, 0.12) 1px,
      transparent 1px,
      transparent 13px
    ),
    repeating-linear-gradient(
      -24deg,
      rgba(95, 70, 49, 0.1) 0,
      rgba(95, 70, 49, 0.1) 1px,
      transparent 1px,
      transparent 17px
    );
  opacity: 0.7;
  z-index: 0;
}

.feature-block.alt > .container {
  position: relative;
  z-index: 1;
}

.sostenibilidad-carousel {
  margin-top: 2rem;
  padding: 0.6rem 0 2.2rem;
}

.sostenibilidad-carousel .swiper-slide {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 26px #6b4e341f;
  transform: scale(0.96);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff8ef;
}

.sostenibilidad-carousel .swiper-slide-active,
.sostenibilidad-carousel .swiper-slide-duplicate-active {
  transform: scale(1);
  box-shadow: 0 16px 36px #5f42261f;
}

.sostenibilidad-carousel img {
  width: 100%;
  height: clamp(420px, 50vw, 620px);
  object-fit: cover;
  display: block;
}

.sostenibilidad-carousel .swiper-button-prev,
.sostenibilidad-carousel .swiper-button-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff8f1de;
  border: 1px solid #dcc8b4;
  color: #2a241f;
  backdrop-filter: blur(2px);
}

.sostenibilidad-carousel .swiper-button-prev::after,
.sostenibilidad-carousel .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.sostenibilidad-carousel .swiper-pagination-bullet {
  background: #9f7151;
  opacity: 0.45;
}

.sostenibilidad-carousel .swiper-pagination-bullet-active {
  opacity: 1;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.section-heading h3 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  color: var(--brand-2);
}

.section-copy p {
  margin-top: 0;
  color: #2c2722;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #111111;
  background: var(--brand);
  border: 1px solid var(--brand);
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #ab7d5e;
}

.btn.ghost {
  background: transparent;
  color: #111111;
  border-color: #c9b29d;
}

.btn.ghost:hover {
  background: #f2e5d8;
}

.news {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.news-label {
  margin: 0;
  color: var(--brand-2);
  font-weight: 700;
}

.news-title {
  margin: 0.35rem 0 2.1rem;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.2rem;
  box-shadow: 0 10px 22px #5f463118;
}

.card-tag {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  color: var(--brand-2);
  font-weight: 700;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.card h3 a,
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover,
.blog-card h2 a:hover {
  color: var(--brand-2);
}

.card p {
  color: #2f2a26;
}

.date {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-archive {
  position: relative;
  isolation: isolate;
  padding-top: clamp(7rem, 14vw, 9rem);
  background: #f4eade;
  overflow: hidden;
}

.blog-archive::before,
.single-post-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      24deg,
      rgba(126, 92, 66, 0.12) 0,
      rgba(126, 92, 66, 0.12) 1px,
      transparent 1px,
      transparent 13px
    ),
    repeating-linear-gradient(
      -24deg,
      rgba(95, 70, 49, 0.1) 0,
      rgba(95, 70, 49, 0.1) 1px,
      transparent 1px,
      transparent 17px
    );
  opacity: 0.7;
  z-index: 0;
}

.blog-archive > .container,
.single-post-wrap > .container {
  position: relative;
  z-index: 1;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 22px #5f463118;
}

.blog-card-image {
  display: block;
  line-height: 0;
}

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

.blog-card-body {
  padding: 1.1rem 1.1rem 1.2rem;
}

.blog-card h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.blog-card p {
  margin: 0;
}

.blog-tags {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-tags a {
  text-decoration: none;
  color: #ffffff;
  background: #8a664c;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.62rem;
}

.blog-tags a:hover {
  background: #6f513d;
}

.blog-pagination {
  margin-top: 1.6rem;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.blog-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination ul.page-numbers li {
  margin: 0;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid #c9b29d;
  border-radius: 999px;
  text-decoration: none;
  color: #221d19;
  background: #fffaf3;
  padding: 0 0.68rem;
  font-size: 0.9rem;
}

.blog-pagination .page-numbers.current {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.single-post-wrap {
  position: relative;
  isolation: isolate;
  padding-top: clamp(7rem, 14vw, 9rem);
  background: #f4eade;
  overflow: hidden;
}

.single-post-container {
  max-width: 860px;
}

.single-post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 10px 22px #5f463118;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.single-back-link {
  text-decoration: none;
  color: var(--brand-2);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.single-back-link:hover {
  color: #6f513d;
}

.single-post-card h1 {
  margin: 0.3rem 0 1rem;
  max-width: none;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.single-post-image {
  margin: 0 0 1.2rem;
}

.single-post-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.85rem;
}

.single-post-content p {
  margin: 0 0 1rem;
  color: #2f2a26;
}

.single-post-content h2,
.single-post-content h3 {
  margin: 1.2rem 0 0.7rem;
}

.companies {
  position: relative;
  isolation: isolate;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
  background: #f1e7db;
  overflow: hidden;
}

.companies::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      24deg,
      rgba(126, 92, 66, 0.12) 0,
      rgba(126, 92, 66, 0.12) 1px,
      transparent 1px,
      transparent 13px
    ),
    repeating-linear-gradient(
      -24deg,
      rgba(95, 70, 49, 0.1) 0,
      rgba(95, 70, 49, 0.1) 1px,
      transparent 1px,
      transparent 17px
    );
  opacity: 0.7;
  z-index: 0;
}

.companies > .container {
  position: relative;
  z-index: 1;
}

.companies-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.companies h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.companies p {
  margin: 0;
  color: #2c2722;
}

#empresas .btn {
  white-space: nowrap;
}

.countries-map-wrap {
  margin-top: 2rem;
  text-align: center;
}

.countries-map-caption {
  margin: 0 0 0.9rem;
  font-weight: 600;
  color: #3a3129;
}

.countries-map {
  width: min(980px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid #decfbe;
  background: #fffaf3;
  box-shadow: 0 12px 28px #7a5e3d1c;
}

.site-footer {
  background: #111111;
  color: #f2e6d8;
  padding: clamp(2.2rem, 4vw, 3rem) 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  align-items: flex-start;
}

.footer-brand {
  margin: 0;
  font-size: 1.2rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
}

.footer-copy {
  margin: 0.4rem 0 0;
  color: #cbbcae;
}

.footer-social-info {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: #cbbcae;
}

.footer-social-info a {
  color: #f3e6d6;
  text-decoration: none;
  font-weight: 600;
}

.footer-social-info a:hover {
  color: #ffcf7a;
}

.footer-social-info span {
  margin: 0 0.4rem;
  color: #8d7f72;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 0.6rem 1.5rem;
}

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

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

.footer-bottom {
  margin-top: 1.4rem;
  border-top: 1px solid #2e2e2e;
  padding: 0.95rem 0 0.25rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #9d8f83;
  text-align: center;
}

.footer-bottom a {
  color: #d8c5b1;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #ffcf7a;
}

@media (max-width: 980px) {
  .nav-wrap {
    justify-content: center;
    gap: 0.8rem 1rem;
  }

  .logo img {
    height: 98px;
  }

  .main-nav {
    justify-content: center;
    flex: 0 1 100%;
  }

  .menu-block {
    align-items: center;
    flex: 0 1 100%;
  }

  .two-col,
  .news-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .section-copy,
  .news,
  .companies {
    text-align: center;
  }

  .companies-wrap,
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1120px, 94%);
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 6rem;
  }

  .logo img {
    height: 84px;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .news-grid {
    gap: 0.85rem;
  }

  .card {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    padding: 0.7rem 0 0.9rem;
    min-height: auto;
    flex-direction: column;
    align-items: center;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-content {
    padding-top: 6rem;
  }

  .main-nav {
    justify-content: center;
    gap: 0.55rem 0.85rem;
  }

  .social-links a {
    width: 30px;
    height: 30px;
  }

  .social-links .whatsapp-link {
    width: auto;
    min-height: 30px;
    padding: 0 0.62rem;
    font-size: 0.72rem;
  }

  .logo img {
    height: 72px;
  }

  h1 {
    max-width: 12ch;
  }

  .hero-sub {
    font-size: 0.86rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .sostenibilidad-carousel .swiper-button-prev,
  .sostenibilidad-carousel .swiper-button-next {
    display: none;
  }
}
