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

html {
  min-height: 100%;
  background: #f7efe3;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.85), rgba(247, 239, 227, 0.95)),
    #f7efe3;
  color: #1f1f1f;
}

.page {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 24px);
}

.hero {
  width: min(100%, 980px);
  display: grid;
  place-items: center;
}

.hero-image {
  display: block;
  width: min(100%, 760px);
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  background: #f7efe3;
}

/* Footer */

.site-footer {
  width: 100%;
  padding: 20px 18px 28px;
}

.footer-content {
  position: relative;
  overflow: hidden;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(249, 241, 227, 0.96)),
    #f9f1e3;
  border: 1px solid rgba(55, 35, 20, 0.14);
  box-shadow: 0 12px 30px rgba(58, 39, 24, 0.12);
  text-align: center;
}

.footer-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: footerShine 5s ease-in-out infinite;
  pointer-events: none;
}

.footer-title,
.footer-text,
.social-links {
  position: relative;
  z-index: 1;
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #2c1d16;
  margin-bottom: 4px;
}

.footer-text {
  font-size: 0.9rem;
  color: #6a4a35;
  margin-bottom: 14px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.social-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #211713;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(33, 23, 19, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 16px rgba(58, 39, 24, 0.08);
  animation: softFloat 3.8s ease-in-out infinite;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.social-link:nth-child(2) {
  animation-delay: 0.45s;
}

.social-link::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 100%;
  top: 0;
  left: -60px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 420ms ease;
}

.social-link:hover::after {
  left: 120%;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.03);
  background: #ffffff;
  border-color: rgba(33, 23, 19, 0.22);
  box-shadow: 0 12px 26px rgba(58, 39, 24, 0.18);
}

.social-link:active {
  transform: translateY(-1px) scale(0.98);
}

.social-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111111;
  color: #f9f1e3;
  transition: transform 180ms ease;
}

.social-link:hover .social-icon {
  transform: rotate(-8deg) scale(1.08);
}

.instagram-icon {
  background: linear-gradient(135deg, #3d1f1c, #9d342d, #d79a48);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Animaciones */

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes footerShine {
  0% {
    transform: translateX(-120%);
  }

  35% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(120%);
  }
}

/* Desktop landscape */

@media (orientation: landscape) {
  .hero-image {
    width: auto;
    max-width: min(100%, 980px);
    max-height: calc(100vh - 165px);
  }
}

/* Mobile */

@media (max-width: 700px) {
  .page {
    min-height: auto;
    padding: 0;
  }

  .hero {
    width: 100%;
  }

  .hero-image {
    width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .site-footer {
    padding: 14px 14px 22px;
  }

  .footer-content {
    padding: 16px 14px;
    border-radius: 22px;
  }

  .social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .social-link {
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.88rem;
  }
}

/* Reduce animaciones si el usuario lo tiene configurado así */

@media (prefers-reduced-motion: reduce) {
  .footer-content::before,
  .social-link {
    animation: none;
  }

  .social-link,
  .social-icon {
    transition: none;
  }
}

/* FIX MOBILE SOCIAL FOOTER */

.site-footer {
  width: 100%;
  padding: 18px 14px 24px;
  background: #f7efe3;
}

.footer-content {
  width: min(92%, 760px);
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: 24px;
  background: #f9f1e3;
  border: 1px solid rgba(55, 35, 20, 0.14);
  box-shadow: 0 10px 26px rgba(58, 39, 24, 0.12);
  text-align: center;
}

.footer-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.footer-text {
  font-size: 14px;
  color: #6a4a35;
  margin-bottom: 14px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #211713 !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid rgba(33, 23, 19, 0.14);
}

.social-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  display: inline-grid !important;
  place-items: center;
  border-radius: 50%;
  background: #111;
  overflow: hidden;
}

.social-icon svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block !important;
  fill: #f9f1e3 !important;
}

.instagram-icon {
  background: linear-gradient(135deg, #3d1f1c, #9d342d, #d79a48);
}

@media (max-width: 700px) {
  .social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .social-link {
    width: 100%;
    padding: 10px 8px;
    font-size: 14px;
  }
}