/* =========================
RESET CONTROLADO
========================= */
*, *::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; }

body { 
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #4a3f38;
  line-height: 1.7;
  background-color: #f7f3ed;
  position: relative;
  overflow-x: hidden;
}

/* =========================
VARIABLES VISUALES
========================= */
:root { 
  --accent: #c46a3a;
  --accent-soft: #f1d7c3;
  --panel-bg: #ffffff; 
  --text-soft: #7a6f68;
  --shadow-soft: 0 12px 30px rgba(120, 80, 50, 0.08);
  --shadow-lift: 0 24px 50px rgba(120, 80, 50, 0.14);
}

/* =========================
IMÁGENES
========================= */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================
HERO
========================= */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 20px 24px;
  text-align: center;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.hero img {
  width: 100%;
  max-width: 1025px;
  aspect-ratio: 1025 / 500;
  object-fit: contain;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(120,80,50,0.1);
  opacity: 1;
  transform: translateY(0);
}

/* =========================
CLAIM
========================= */
.claim {
  position: relative;
  margin-top: 50px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  color: var(--accent);
  transition: transform 0.4s ease, color 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.claim:hover {
  color: #d77f4d;
  transform: scale(1.05);
}

/* =========================
MAIN
========================= */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
PANELES
========================= */
.panel {
  background: linear-gradient(to bottom, rgb(255 252 248), rgb(248 242 236));
  border-radius: 22px;
  padding: clamp(24px, 5vw, 40px);
  margin: clamp(48px, 8vw, 72px) 0;
  box-shadow: 0 14px 34px rgba(120, 80, 50, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(120,80,50,0.14);
}

h2 {
  margin: 0 0 16px;
  line-height: 1.25;
  text-align: center;
  color: #3a2f2a;
  font-weight: 700;
}

.panel p {
  text-align: center;
  color: var(--text-soft);
}

/* =========================
GALERÍA
========================= */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 960px;
  margin: 48px auto;
}

.gallery img {
  flex: 0 1 280px;
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery img {
    flex: 0 1 220px;
    max-width: 220px;
  }
}

/* =========================
VIDEO
========================= */
.video, .video-wrapper {
  margin: clamp(56px, 10vw, 80px) 0;
  opacity: 1;
  transform: translateY(0);
}

.video-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 56.25%;
  box-shadow: 0 20px 60px rgba(120,80,50,0.08);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

/* =========================
APP CARDS
========================= */
.versions {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-card {
  background: #fffbf7;
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
}

.app-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lift);
}

.app-card img {
  max-width: 180px;
  margin: 0 auto 16px;
}

/* =========================
SHARE
========================= */
.share {
  margin: clamp(56px, 8vw, 72px) 0;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
}

.share p {
  margin-bottom: 20px;
  font-weight: 600;
}

.share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 12px;
}

.share img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.share a:hover img {
  transform: scale(1.15);
  opacity: 0.85;
}

.share a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

/* =========================
FOOTER
========================= */
footer {
  text-align: center;
  padding: 32px 20px 40px;
}

footer p {
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* =========================
ACCESIBILIDAD
========================= */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* =========================
FONDO TEXTURIZADO SUAVE + VIÑETEADO
========================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(196, 139, 0, 0.07), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(180, 156, 91, 0.12), transparent 48%),
    repeating-linear-gradient(
      to bottom,
      rgba(196, 139, 0, 0.03) 0,
      rgba(254, 255, 231, 0.05) 3px,
      transparent 5px,
      transparent 15px
    );
  background-repeat: no-repeat;
  background-size: cover;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 70%, transparent 100%);
}
