/* ==========================================================================
   MATTEO CHANCAY CELLERY - 6° CUMPLEAÑOS MÁGICO (HOGWARTS WIZARD THEME)
   Diseño Editorial Mágico Premium: Oro Bruñido, Pergamino y Noche Estrellada
   Alineado a las Reglas de Oro de AGENTS.md y Optimización Móvil Total
   ========================================================================== */

:root {
  /* Paleta Cromática Mágica */
  --bg-deep-night: #050811;
  --bg-midnight-blue: #0c1424;
  --bg-card-glass: rgba(8, 14, 26, 0.72);
  --bg-card-glass-border: rgba(229, 169, 60, 0.35);
  
  /* Pergamino de Hogwarts */
  --parchment-bg: #f7f1e1;
  --parchment-border: #b89358;
  --parchment-text: #261609;
  --parchment-dark-text: #41220c;
  
  /* Oro & Lumos */
  --gold-primary: #e5a93c;
  --gold-light: #fce289;
  --gold-bright: #ffd700;
  --gold-dark: #9c6c18;
  --gold-glow: rgba(229, 169, 60, 0.45);
  
  /* Casas de Hogwarts */
  --gryffindor-red: #8b1523;
  --gryffindor-gold: #e5a93c;
  --slytherin-green: #154728;
  --slytherin-silver: #b5c2ba;
  --ravenclaw-blue: #0e2646;
  --ravenclaw-bronze: #ba8c44;
  --hufflepuff-yellow: #cf9b1f;
  --hufflepuff-black: #1f1f1f;

  /* Tipografías */
  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-name: 'Titan One', cursive, sans-serif;
  --font-venue: 'Kanit', sans-serif;
  --font-digits: 'Russo One', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Dimensiones y Sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-gold: 0 4px 20px rgba(229, 169, 60, 0.25);
  --shadow-deep: 0 12px 35px rgba(0, 0, 0, 0.75);
}

/* --------------------------------------------------------------------------
   RESET Y BASE (CERO DESBORDES HORIZONTALES)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep-night);
  color: #e8ecf4;
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: radial-gradient(circle at 50% 12%, #141d30 0%, #050811 100%);
  line-height: 1.6;
}

body.ceremonial-locked {
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   ACCESIBILIDAD Y FOCUS
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   CANVAS DE LUMOS & FLASH DE HECHIZO
   -------------------------------------------------------------------------- */
#magic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 4;
}

.lumos-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 248, 220, 0.95) 0%, rgba(229, 169, 60, 0.85) 50%, rgba(11, 16, 29, 0.7) 100%);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lumos-flash.active {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   BOTÓN FLOTANTE DE MÚSICA
   -------------------------------------------------------------------------- */
.floating-music-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 30px;
  background: rgba(14, 20, 34, 0.88);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.55), 0 0 10px var(--gold-glow);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 44px;
}

.floating-music-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.4);
  background: rgba(20, 30, 50, 0.95);
}

.music-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.music-note-icon {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px var(--gold-light));
}

.music-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.wave-bar {
  width: 3px;
  background: var(--gold-light);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.floating-music-btn.playing .bar-1 {
  animation: waveAnim 0.7s infinite alternate ease-in-out;
}
.floating-music-btn.playing .bar-2 {
  animation: waveAnim 0.9s 0.2s infinite alternate ease-in-out;
}
.floating-music-btn.playing .bar-3 {
  animation: waveAnim 0.8s 0.4s infinite alternate ease-in-out;
}

@keyframes waveAnim {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* --------------------------------------------------------------------------
   1. PANTALLA CEREMONIAL: LA LECHUZA Y LA CARTA DE HOGWARTS
   -------------------------------------------------------------------------- */
.ceremonial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050811;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.ceremonial-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.ceremonial-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ceremonial-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: brightness(0.85) contrast(1.1);
}

.ceremonial-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(5, 8, 17, 0.4) 20%, rgba(5, 8, 17, 0.92) 100%);
}

.ceremonial-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ARQUITECTURA DEL SOBRE 3D (Regla de Oro: Cero overflow: hidden) */
.envelope-scene {
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.envelope-container {
  position: relative;
  width: min(320px, calc(100vw - 32px));
  height: 215px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
  margin: 0 auto;
}

.envelope-container:hover {
  transform: translateY(-4px) scale(1.015);
}

/* 1. Fondo trasero del sobre */
.envelope-back-plate {
  position: absolute;
  inset: 0;
  background: #c89f60;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* 2. Solapa Superior Giratoria 3D */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 145px;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: rotateX(0deg) translateZ(12px);
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 15;
  pointer-events: none;
  backface-visibility: visible;
}

.envelope-flap .flap-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.envelope-container.opening .envelope-flap,
.envelope-container.open .envelope-flap {
  transform: rotateX(180deg) translateZ(-6px);
  z-index: 2;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.01s linear 0.4s;
}

.envelope-container.letter-elevated .envelope-flap,
.envelope-container.open .envelope-flap {
  z-index: 2 !important;
}

/* 3. Bolsillo Delantero de Pergamino */
.envelope-pocket {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  z-index: 8;
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(92, 60, 20, 0.35);
}

.pocket-crease-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 108px solid transparent;
  border-bottom: 108px solid transparent;
  border-left: 160px solid #bc9252;
  filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.2));
}

.pocket-crease-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 108px solid transparent;
  border-bottom: 108px solid transparent;
  border-right: 160px solid #bc9252;
  filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.2));
}

.pocket-crease-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 130px;
}

.pocket-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 -4px 8px rgba(0, 0, 0, 0.25));
}

.envelope-address {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-serif);
  color: #2b1b10;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.address-recipient {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.address-school {
  font-size: 0.62rem;
  font-weight: 600;
  color: #55141c;
}

.address-seal-mark {
  font-size: 0.56rem;
  font-style: italic;
  opacity: 0.85;
}

/* 4. Carta Interior que Asciende al Frente Absoluto */
.envelope-letter {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  background: var(--parchment-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 3;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--parchment-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px) translateZ(4px);
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, 
              opacity 0.4s ease 0.4s, 
              visibility 0.4s ease 0.4s, 
              box-shadow 0.6s ease 0.5s;
  cursor: pointer;
}

.envelope-container.opening .envelope-letter,
.envelope-container.open .envelope-letter {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-145px) translateZ(35px);
  z-index: 25;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
}

.envelope-container.letter-elevated .envelope-letter,
.envelope-container.open .envelope-letter {
  z-index: 25 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.letter-border {
  border: 1px solid var(--parchment-border);
  padding: 8px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  background: radial-gradient(circle at center, #fbf7ee 50%, #f0e4cb 100%);
}

.letter-crest {
  width: 32px;
  height: 32px;
  margin: 0 auto 2px;
}

.crest-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}

.letter-school-name {
  font-family: var(--font-serif);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #6a1a24;
}

.letter-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #2b1b10;
  margin-bottom: 2px;
}

.letter-divider {
  width: 50px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #b89358, transparent);
  margin: 2px auto 4px;
}

.letter-body-text {
  font-size: 0.65rem;
  line-height: 1.25;
}

.letter-honoree {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #8b1523;
  letter-spacing: 0.4px;
  margin: 1px 0;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.letter-subtext {
  font-size: 0.62rem;
  font-style: italic;
}

.letter-age-pill {
  display: inline-block;
  background: #8b1523;
  color: #ffd700;
  font-family: var(--font-digits);
  font-size: 0.74rem;
  padding: 2px 10px;
  border-radius: 16px;
  margin: 3px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.letter-date-loc {
  font-size: 0.66rem;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #3b281b;
}

.btn-enter-magic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #a6192e 0%, #730d1b 100%);
  color: #ffd700;
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  border: 1px solid #e5a93c;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(115, 13, 27, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 40px;
}

.btn-enter-magic:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(229, 169, 60, 0.5);
  background: linear-gradient(135deg, #b81e35 0%, #850f20 100%);
}

/* 5. Sello de Cera Carmesí Pulsante */
.wax-seal {
  position: absolute;
  top: 112px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.wax-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.seal-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(229, 169, 60, 0.7);
  animation: sealRotate 8s linear infinite;
  pointer-events: none;
}

@keyframes sealRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.envelope-container.opening .wax-seal,
.envelope-container.open .wax-seal {
  transform: translate(-50%, -50%) scale(1.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Indicador de Apertura Separado Debajo del Sobre (Regla de Oro) */
.envelope-hint-wrapper {
  margin-top: 32px;
  text-align: center;
  z-index: 10;
  width: 100%;
  padding: 0 16px;
  transition: opacity 0.4s ease;
}

.envelope-container.opening + .envelope-hint-wrapper,
.envelope-container.open + .envelope-hint-wrapper {
  opacity: 0;
  pointer-events: none;
}

.envelope-hint-text {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--gold-light);
  background: rgba(8, 14, 26, 0.88);
  border: 1px solid rgba(229, 169, 60, 0.45);
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
  animation: hintFloat 2s infinite ease-in-out;
  max-width: 100%;
}

@keyframes hintFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --------------------------------------------------------------------------
   2. CONTENEDOR PRINCIPAL TRASLÚCIDO (Regla de Oro: Vidrio y Atmósfera)
   -------------------------------------------------------------------------- */
.magic-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 14px 60px;
  min-height: 100vh;
  z-index: 5;
}

.magic-card {
  position: relative;
  background: var(--bg-card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bg-card-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow-deep), 0 0 25px rgba(229, 169, 60, 0.15);
  overflow: hidden;
}

/* Resplandores ambientales no desbordantes */
.ambient-glow {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.glow-top {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(229, 169, 60, 0.2) 0%, transparent 70%);
}

.glow-bottom {
  bottom: 0;
  right: 0;
  background: radial-gradient(circle, rgba(139, 21, 35, 0.2) 0%, transparent 70%);
}

/* Píldora de encabezado de sección */
.section-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  max-width: 100%;
}

.section-header-pill.center {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: fit-content;
}

.parchment-card .section-header-pill {
  background: rgba(139, 21, 35, 0.1);
  border-color: #8b1523;
  color: #7b1d28;
}

.pill-icon {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 3px var(--gold-light));
}

/* --------------------------------------------------------------------------
   SECCIÓN HÉROE / PORTADA
   -------------------------------------------------------------------------- */
.section-hero {
  text-align: center;
  padding-top: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.badge-icon-wand {
  width: 14px;
  height: 14px;
}

.hero-callout {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.5vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 6px;
  padding: 0 4px;
}

.callout-line, .title-line {
  display: block;
}

.hero-subcallout {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.hero-enchanted {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.8vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  margin-bottom: 18px;
}

/* Retrato de Matteo con Marco de Oro Bruñido */
.photo-portrait-wrapper {
  position: relative;
  width: min(210px, 60vw);
  height: min(210px, 60vw);
  margin: 0 auto 18px;
}

.photo-glow-aura {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.5) 0%, transparent 70%);
  filter: blur(8px);
  animation: auraPulse 3s infinite ease-in-out;
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

.photo-gold-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--gold-primary);
  padding: 4px;
  background: linear-gradient(135deg, #e5a93c 0%, #805814 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.photo-matteo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.wand-lumos-flare {
  position: absolute;
  top: 32%;
  right: 28%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 10%, #ffe082 50%, transparent 80%);
  box-shadow: 0 0 16px #ffd700;
  animation: flareSparkle 1.8s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes flareSparkle {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 8px #ffffff); }
}

/* Nombre del Festejado (Titan One con Relieve 3D - Adaptado a Móvil) */
.hero-names-block {
  margin-bottom: 12px;
  padding: 0 4px;
}

.matteo-name {
  font-family: var(--font-name);
  font-size: clamp(1.65rem, 6.2vw, 2.35rem);
  line-height: 1.15;
  color: #fff6db;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  word-break: break-word;
  text-shadow:
    0 2px 0 #9c6c18,
    0 4px 0 #734c0e,
    0 6px 12px rgba(0, 0, 0, 0.85);
  margin-bottom: 6px;
}

.badge-cumple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8b1523 0%, #570c15 100%);
  border: 1px solid var(--gold-primary);
  color: #ffd700;
  padding: 6px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(139, 21, 35, 0.5);
}

.star-icon {
  font-size: 0.85rem;
  color: #ffd700;
}

.cumple-text {
  font-family: var(--font-digits);
  font-size: 0.92rem;
  letter-spacing: 1px;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  color: #d1d8e6;
  max-width: 320px;
  margin: 0 auto 16px;
  line-height: 1.4;
}

/* Botón Hechizo Lumos Interactivo */
.spell-action-wrap {
  margin-bottom: 10px;
}

.btn-cast-spell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 25px;
  background: linear-gradient(135deg, #e5a93c 0%, #b37d1d 100%);
  color: #1a1005;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  border: 1px solid #ffea9f;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.btn-cast-spell:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.65);
}

.btn-cast-spell:active {
  transform: scale(0.97);
}

.hero-down-indicator {
  margin-top: 10px;
  color: var(--gold-light);
  font-size: 1.2rem;
  animation: bounceDown 1.8s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   CUENTA REGRESIVA DE HOGWARTS
   -------------------------------------------------------------------------- */
.section-countdown {
  padding: 24px 0;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.countdown-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.countdown-box {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  min-width: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.countdown-num {
  display: block;
  font-family: var(--font-digits);
  font-size: 1.45rem;
  color: #ffd700;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.countdown-lbl {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.58rem;
  color: #aebfd9;
  letter-spacing: 1px;
  margin-top: 4px;
}

.countdown-separator {
  font-family: var(--font-digits);
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-top: -12px;
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}

.btn-secondary-magic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #ffd700;
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  min-height: 44px;
}

.btn-secondary-magic:hover {
  background: rgba(229, 169, 60, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   COORDENADAS SECRETAS: TARJETAS DE PERGAMINO
   -------------------------------------------------------------------------- */
.section-details {
  padding: 24px 0;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.parchment-card {
  position: relative;
  background: var(--parchment-bg);
  border: 2px solid var(--parchment-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: var(--parchment-text);
  margin: 0 auto;
}

.parchment-card.center-text {
  text-align: center;
}

.parchment-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #8b1523;
  border-style: solid;
}

.corner-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.corner-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.corner-br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 20px;
}

.detail-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 147, 88, 0.45);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.detail-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b1523 0%, #5e0c16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(139, 21, 35, 0.35);
}

.detail-icon-circle img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.detail-text {
  flex: 1;
}

.detail-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #8b1523;
  margin-bottom: 2px;
}

.detail-main-val {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 700;
  color: #211206;
  line-height: 1.25;
}

.detail-venue-name {
  font-family: var(--font-venue);
  font-size: 1.1rem;
  font-weight: 800;
  color: #211206;
  line-height: 1.2;
}

.detail-sub-val {
  font-size: 0.72rem;
  color: #55351a;
  margin-top: 2px;
}

.venue-action-wrap {
  text-align: center;
}

.btn-primary-magic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #8b1523 0%, #570c15 100%);
  color: #ffd700;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-decoration: none;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 14px rgba(139, 21, 35, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 46px;
}

.btn-primary-magic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 21, 35, 0.55);
}

.btn-primary-magic .btn-icon {
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
   ITINERARIO MÁGICO (LÍNEA DE TIEMPO)
   -------------------------------------------------------------------------- */
.section-itinerary {
  padding: 24px 0;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.section-title-gold {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  margin-bottom: 20px;
}

.section-title-gold.center {
  margin-left: auto;
  margin-right: auto;
}

.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  padding-left: 18px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-primary) 0%, rgba(229, 169, 60, 0.2) 100%);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #8b1523;
  box-shadow: 0 0 8px #ffd700;
  flex-shrink: 0;
  margin-top: 6px;
  z-index: 2;
}

.timeline-time {
  font-family: var(--font-digits);
  font-size: 0.78rem;
  color: #ffd700;
  width: 58px;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-card {
  flex: 1;
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.timeline-card h4 {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.timeline-card p {
  font-size: 0.72rem;
  color: #ccd7e8;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   CÓDIGO DE VESTIMENTA
   -------------------------------------------------------------------------- */
.section-dresscode {
  padding: 24px 0;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.dresscode-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #261609;
  margin-bottom: 8px;
}

.dresscode-desc {
  font-size: 0.78rem;
  color: #4b301c;
  line-height: 1.45;
  max-width: 380px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   MINI-JUEGO: EL SOMBRERO SELECCIONADOR INTERACTIVO
   -------------------------------------------------------------------------- */
.section-houses {
  padding: 24px 0;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.houses-subtitle {
  font-size: 0.8rem;
  color: #c4d2e8;
  margin-bottom: 16px;
}

.houses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.house-card {
  position: relative;
  background: rgba(14, 22, 38, 0.85);
  border: 2px solid rgba(229, 169, 60, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.house-card:hover {
  transform: translateY(-2px);
}

.house-card.selected {
  transform: translateY(-3px) scale(1.02);
}

/* Estilos de Casas Específicas */
.house-gryffindor.selected {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(139, 21, 35, 0.75) 0%, rgba(14, 22, 38, 0.9) 100%);
  box-shadow: 0 6px 18px rgba(139, 21, 35, 0.5), 0 0 12px rgba(255, 215, 0, 0.4);
}

.house-slytherin.selected {
  border-color: #b5c2ba;
  background: linear-gradient(135deg, rgba(21, 71, 40, 0.75) 0%, rgba(14, 22, 38, 0.9) 100%);
  box-shadow: 0 6px 18px rgba(21, 71, 40, 0.5), 0 0 12px rgba(181, 194, 186, 0.4);
}

.house-ravenclaw.selected {
  border-color: #ba8c44;
  background: linear-gradient(135deg, rgba(14, 38, 70, 0.75) 0%, rgba(14, 22, 38, 0.9) 100%);
  box-shadow: 0 6px 18px rgba(14, 38, 70, 0.5), 0 0 12px rgba(186, 140, 68, 0.4);
}

.house-hufflepuff.selected {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(207, 155, 31, 0.65) 0%, rgba(14, 22, 38, 0.9) 100%);
  box-shadow: 0 6px 18px rgba(207, 155, 31, 0.45), 0 0 12px rgba(255, 215, 0, 0.35);
}

.house-badge-symbol {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.house-name {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.house-trait {
  font-size: 0.64rem;
  color: #a8bcd8;
  line-height: 1.25;
}

.house-check-badge {
  display: none;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ffd700;
  margin-top: 4px;
}

.house-card.selected .house-check-badge {
  display: block;
}

.house-feedback {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.hat-quote {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: #ffd700;
  line-height: 1.4;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   DETALLE DE REGALOS: COFRE MÁGICO
   -------------------------------------------------------------------------- */
.section-gifts {
  padding: 24px 0;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.gifts-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #261609;
  margin-bottom: 8px;
}

.gifts-text {
  font-size: 0.78rem;
  color: #4b301c;
  line-height: 1.45;
  max-width: 380px;
  margin: 0 auto 12px;
}

.gift-chest-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5a93c 0%, #a47119 100%);
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(164, 113, 25, 0.35);
}

.gift-chest-icon {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
   CONFIRMACIÓN DE ASISTENCIA: RSVP
   -------------------------------------------------------------------------- */
.section-rsvp {
  padding: 24px 0;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.rsvp-card {
  position: relative;
  background: rgba(14, 22, 38, 0.88);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.rsvp-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  margin-bottom: 6px;
}

.rsvp-subtitle {
  font-size: 0.78rem;
  color: #ccd8ea;
  margin-bottom: 20px;
  line-height: 1.4;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.4px;
}

.form-group .req {
  color: #ff5252;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(8, 14, 26, 0.8);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.form-input.readonly-input {
  background: rgba(229, 169, 60, 0.12);
  border-color: rgba(229, 169, 60, 0.5);
  color: #ffd700;
  font-weight: 700;
}

.field-error {
  display: none;
  color: #ff5252;
  font-size: 0.68rem;
  margin-top: 2px;
}

.field-error.visible,
.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #ff5252 !important;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.4) !important;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-submit-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #a6192e 0%, #730d1b 100%);
  color: #ffd700;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(115, 13, 27, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 46px;
}

.btn-submit-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.45);
}

.btn-whatsapp-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  border: 1px solid #70e29b;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 46px;
}

.btn-whatsapp-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-icon-wa {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit-rsvp.loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.rsvp-feedback {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25d366;
  text-align: center;
}

.rsvp-feedback.hidden {
  display: none;
}

.feedback-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.feedback-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #70e29b;
  margin-bottom: 4px;
}

.feedback-text {
  font-size: 0.76rem;
  color: #ffffff;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   FOTO DE CIERRE CON MENSAJE (FINAL DEL VIDEO)
   -------------------------------------------------------------------------- */
.section-footer {
  padding-top: 24px;
  text-align: center;
}

.footer-photo-scene {
  position: relative;
  width: min(220px, 64vw);
  margin: 0 auto 16px;
}

.footer-photo-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.footer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Aros de Luz Dorada (Inspirados en el video) */
.portal-rings-wrap {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 1;
}

.portal-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #ffd700;
  box-shadow: 0 0 15px #ffd700, inset 0 0 10px #ffd700;
  animation: ringPulse 2s infinite alternate ease-in-out;
}

.ring-2 { animation-delay: 0.4s; }
.ring-3 { animation-delay: 0.8s; }

@keyframes ringPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 8px #ffffff); }
}

.footer-farewell {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  margin-bottom: 4px;
}

.footer-thanks {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: #c9d7ec;
  margin-bottom: 4px;
}

.footer-school {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 10px;
}

.footer-stars {
  color: #ffd700;
  letter-spacing: 4px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   REVELADO AL HACER SCROLL
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease-out, transform 0.75s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal-on-scroll.revealed,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   RESPONSIVIDAD Y REDUCCIÓN DE MOVIMIENTO
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .floating-music-btn {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    min-height: 38px;
  }
  .music-badge-text {
    font-size: 0.72rem;
  }
  .section-hero {
    padding-top: 44px;
  }
  .hero-top-badge {
    font-size: 0.64rem;
  }
  .magic-wrapper {
    padding: 16px 8px 50px;
  }
  .magic-card {
    padding: 18px 10px;
  }
  .countdown-box {
    min-width: 52px;
    padding: 8px 4px;
  }
  .countdown-num {
    font-size: 1.25rem;
  }
  .timeline-container {
    padding-left: 8px;
  }
  .timeline-container::before {
    left: 13px;
  }
  .timeline-time {
    width: 48px;
    font-size: 0.72rem;
  }
  .houses-grid {
    gap: 8px;
  }
}

@media (min-width: 768px) {
  .magic-wrapper {
    padding: 40px 20px 80px;
  }
  .magic-card {
    padding: 36px 28px;
  }
  .hero-names-block {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
