/* La Tapioquería — Home */

@keyframes leafInL {
  from { opacity: 0; transform: translate3d(-14%, 4%, 0) scale(1.14); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1.03); }
}

@keyframes leafInR {
  from { opacity: 0; transform: translate3d(14%, 4%, 0) scale(1.14); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1.03); }
}

@keyframes swayL {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.03) rotate(0deg); }
  50% { transform: translate3d(1.1%, -1.2%, 0) scale(1.055) rotate(.6deg); }
}

@keyframes swayR {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.03) rotate(0deg); }
  50% { transform: translate3d(-1.1%, -1.2%, 0) scale(1.055) rotate(-.6deg); }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.018); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(-6px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---- Hero / Portada ---- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-bg--mobile { display: none; }

@media (max-width: 640px) {
  .hero-bg--desktop { display: none; }
  .hero-bg--mobile { display: block; }
}

.mural-plant {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: clamp(210px, 44.8vw, 450px);
  height: auto;
  pointer-events: none;
}

@media (max-width: 640px) {
  .mural-plant { width: clamp(250px, 40.3vw, 529px); }
}

.mural-plant--left {
  left: 0;
  animation: leafInL 1.4s cubic-bezier(.16, .84, .32, 1) both, swayL 9s ease-in-out 1.4s infinite;
}

.mural-plant--right {
  right: 0;
  animation: leafInR 1.4s cubic-bezier(.16, .84, .32, 1) both, swayR 9s ease-in-out 1.4s infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  padding: 4vh 8vw;
  text-align: center;
}

.hero-title {
  margin: 0;
  line-height: 0;
  opacity: 0;
  animation: riseIn 1s ease-out .3s both;
}

.hero-title-img {
  width: clamp(300px, 62vw, 720px);
  height: auto;
  filter: drop-shadow(0 3px 14px rgba(23, 17, 13, .15));
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: riseIn 1s ease-out .75s both;
}

.hero-subtitle-line {
  display: block;
  width: clamp(22px, 6vw, 52px);
  height: 2px;
  background: var(--color-sage);
}

.hero-subtitle-text {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-size: clamp(13px, 2.3vw, 24px);
  color: var(--color-sage-dark);
}

.hero-gluten-badge {
  width: clamp(56px, 7vw, 88px);
  height: auto;
  margin-top: clamp(4px, 1vw, 10px);
  filter: drop-shadow(0 8px 18px rgba(23, 17, 13, .22));
  opacity: 0;
  animation: riseIn 1s ease-out 1.1s both, breathe 7s ease-in-out 2.1s infinite;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: riseIn 1s ease-out 2.2s both;
}

.hero-scroll-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  border-radius: 20px;
  background: rgba(240, 226, 198, .72);
  backdrop-filter: blur(3px);
}

.hero-scroll-label {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
}

.hero-scroll-track {
  width: 22px;
  height: 34px;
  border: 1px solid rgba(51, 54, 31, .4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.hero-scroll-dot {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-sage);
  animation: scrollDot 1.9s ease-in-out infinite;
}

/* ---- Menú principal (accesos) ---- */

.landing {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 52px);
  padding: clamp(56px, 9vw, 96px) clamp(20px, 6vw, 80px);
  box-sizing: border-box;
  overflow: hidden;
  scroll-snap-align: start;
}

.landing-glow {
  position: absolute;
  border-radius: 999px;
}

.landing-glow--top {
  top: -8%;
  right: -12%;
  width: min(58vw, 620px);
  height: min(58vw, 620px);
  background: radial-gradient(circle at 35% 35%, rgba(193, 80, 46, .14), rgba(193, 80, 46, 0) 70%);
}

.landing-glow--bottom {
  bottom: -14%;
  left: -10%;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  background: radial-gradient(circle at 60% 40%, rgba(86, 99, 63, .16), rgba(86, 99, 63, 0) 70%);
}

.landing-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.landing-eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--color-terracota-mid);
}

.landing-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  font-size: clamp(30px, 6vw, 58px);
  color: var(--color-text-brown);
}

.landing-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  max-width: 1000px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 190px;
  padding: 26px 26px 22px;
  border-radius: 28px;
  border: 1px solid transparent;
}

.nav-card-index {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.nav-card-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.1;
  transition: color .2s ease;
}

.nav-card:hover .nav-card-label {
  color: #000;
}

.nav-card-arrow {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 22px;
}

.nav-card--cream {
  background: #fdf6e8;
  border-color: rgba(32, 30, 29, .10);
  box-shadow: 0 2px 0 rgba(32, 30, 29, .06);
  color: var(--color-text-brown);
}

.nav-card--cream .nav-card-index { color: var(--color-terracota-mid); }
.nav-card--cream .nav-card-arrow { color: var(--color-terracota); }

.nav-card--terracota {
  background: var(--color-terracota);
  border-color: rgba(140, 73, 26, .4);
  box-shadow: 0 2px 0 rgba(61, 43, 29, .14);
  color: var(--color-cream-text2);
}

.nav-card--terracota .nav-card-index { color: rgba(253, 241, 224, .75); }

.nav-card--sage {
  background: var(--color-sage);
  border-color: rgba(39, 46, 27, .35);
  box-shadow: 0 2px 0 rgba(32, 30, 29, .10);
  color: #f0f4e6;
}

.nav-card--sage .nav-card-index { color: rgba(240, 244, 230, .72); }

.landing-tagline {
  position: relative;
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(13px, 1.6vw, 15px);
  color: rgba(61, 43, 29, .62);
  text-align: center;
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---- Instagram y reseñas de Google (widgets de terceros, arriba del footer) ---- */

.social-proof {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 56px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
}

.social-proof-block {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 30px);
}

.social-proof-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.social-proof-title {
  font-size: clamp(26px, 4.6vw, 44px);
}

.social-proof-widget {
  width: 100%;
  overflow-x: auto;
}

/* ---- Footer (variante home: un poco más de aire que las subpáginas) ---- */

.site-footer--home {
  padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 64px) clamp(34px, 5vw, 56px);
  gap: clamp(22px, 3.2vw, 34px);
}
