:root {
  --color-text: #9d1329;
  --color-bg: #f8f4eb;
  --color-bg-highlight: #F3DFBA;
  --color-box: #99BCCF;
  --color-box-dark: #7fa2b8;
  --color-white: #ffffff;
  --radius: 12px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

p {
  font-family: 'Young Serif', serif;
}

.container {
  width: min(1120px, 94%);
  margin: 0 auto;
}

header {
  padding: 1rem 0;
  text-align: center;
}

.site-branding {
  display: inline-block;
}

.site-logo {
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-icon {
  margin: 0.6rem 0;
}

.hero {
  margin: 1.8rem 0;
  padding: 1.8rem;
  background: var(--color-bg-highlight);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  font-family: 'Calistoga', cursive;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 0.7rem;
}

.hero p {
  margin-bottom: 1.1rem;
  color: #472b31;
  font-size: min(1.1rem, 1.05rem);
}

.about,
.problem {
  margin: 2rem 0;
  padding: 1.8rem;
  background: var(--color-bg-highlight);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about h2,
.problem h2 {
  font-family: 'Calistoga', cursive;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 0.9rem;
  color: var(--color-text);
}

.about p,
.problem p {
  color: #472b31;
  font-size: min(1.1rem, 1.05rem);
  margin-bottom: 0.8rem;
}

.about p:last-child,
.problem p:last-child {
  margin-bottom: 0;
}

.cta {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-white);
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Young Serif', serif;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  background: #7f0f23;
  transform: translateY(-1px);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5rem;
  margin: 5rem 0 5rem;
  padding: 1rem 3rem;
}

.feature-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.2rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  box-shadow: none;
  overflow: visible;
}

.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  border-radius: 16px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  z-index: 0;
}

.feature-card::before {
  background: rgba(153, 188, 207, 0.75);
  /* #99BCCF semitransparente */
  top: -16px;
  left: 16px;
}

.feature-card::after {
  background: rgba(245, 238, 218, 0.72);
  /* #F5EEDA semitransparente */
  top: 12px;
  border: 2px solid var(--color-text);
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}


.feature-card h3 {
  color: var(--color-text);
  margin: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  z-index: 1;
  font-family: 'Calistoga', cursive;
  font-weight: 700;
  margin-top: 10px;
}

.feature-card p {
  color: #5f363f;
  font-size: 0.96rem;
  z-index: 1;
  margin: 0;
}


footer {
  margin-top: 5rem;
  padding: 1.8rem 0 1.4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  border-top: 1px solid rgba(157, 19, 41, 0.18);
  justify-content: center;
}

.footer-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

footer p {
  color: #6a3f4b;
  font-size: 0.9rem;
  margin: 0;
}

.instagram-icon {
  width: 35px;
  height: 35px;
  color: #6a3f4b;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover .instagram-icon {
  color: var(--color-text);
  transform: scale(1.15);
}

/* --- Navegación principal --- */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 0 0.2rem;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Calistoga', cursive;
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

/* Línea animada bajo cada enlace */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #7f0f23;
}

.nav-links a:hover::after {
  width: 100%;
}

.metodologia {
  margin: 4rem 0;
}

.metodologia h2 {
  font-family: 'Calistoga', cursive;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--color-text);
  margin-bottom: 1.6rem;
}

.metodo-pills {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.metodo-pills.top {
  margin-bottom: 1.4rem;
}

.metodo-pills.bottom {
  margin-top: 1.4rem;
}

.metodo-pill {
  background: rgba(153, 188, 207, 0.75);
  border: 2px solid var(--color-text);
  border-radius: 16px;
  padding: 0.9rem 1.3rem;
  color: #924519;
  font-family: 'Young Serif', serif;
  font-size: 1.5rem;
  flex: 1;
  min-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.metodo-pill strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: 'Young Serif', serif;
}

.metodo-fotos {
  display: flex;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
}

.metodo-foto {
  flex: 1;
  height: 200px;
  background: rgba(153, 188, 207, 0.75);
  object-fit: cover;
  display: block;
  min-width: 0;
}

@media (max-width: 600px) {
 .metodo-fotos {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .metodo-foto {
    min-height: 200px;
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .metodo-pills {
    flex-direction: column;
  }
}

.conclusion {
  margin: 4rem 0 3rem;
  padding: 2.4rem;
  background: var(--color-bg-highlight);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.conclusion h2 {
  font-family: 'Calistoga', cursive;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--color-text);
  font-style: italic;
}

.conclusion p {
  color: #472b31;
  font-size: min(1.1rem, 1.05rem);
  max-width: 680px;
}

/* --- Botón burger (oculto en escritorio) --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animación burger → X cuando el menú está abierto */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* --- Responsive: menú móvil --- */
@media (max-width: 600px) {
  .main-nav {
    justify-content: flex-end;
    padding: 0.6rem 0;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(245, 238, 218, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 2px solid var(--color-text);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(157, 19, 41, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 100;
    min-width: 180px;
    overflow: hidden;
  }

  .nav-links.open {
    display: flex;
    animation: menuFadeIn 0.25s ease forwards;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(157, 19, 41, 0.10);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}