/* === PALETA DE COLORES === */
:root {
  --negro-profundo: #0a0a0a;
  --negro-medio: #1a1a1a;
  --rojo-pasion: #c41e3a;
  --rojo-vivo: #e63946;
  --rojo-oscuro: #8b0000;
  --rojo-claro: #ff4d6d;
  --gris-oscuro: #2d2d2d;
  --blanco-humo: #f5f0f0;
  --dorado-suave: #d4af37;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--negro-profundo);
  color: var(--blanco-humo);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* === LOADER === */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--negro-profundo);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.heart-loader {
  width: 60px;
  height: 60px;
  background-color: var(--rojo-vivo);
  transform: rotate(45deg);
  animation: heartbeat 1.2s infinite;
  margin-bottom: 25px;
  position: relative;
}

.heart-loader::before,
.heart-loader::after {
  content: "";
  width: 60px;
  height: 60px;
  background-color: var(--rojo-vivo);
  border-radius: 50%;
  position: absolute;
}

.heart-loader::before {
  top: -30px;
  left: 0;
}

.heart-loader::after {
  top: 0;
  left: -30px;
}

@keyframes heartbeat {
  0% { transform: rotate(45deg) scale(1); }
  25% { transform: rotate(45deg) scale(1.1); }
  50% { transform: rotate(45deg) scale(1); }
  75% { transform: rotate(45deg) scale(1.1); }
  100% { transform: rotate(45deg) scale(1); }
}

.loader-text {
  color: var(--rojo-claro);
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

/* === MAIN CONTENT === */
main {
  opacity: 0;
  transition: opacity 0.8s ease;
}

main.visible {
  opacity: 1;
}

/* === HERO === */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, var(--negro-medio) 0%, #2d0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.badge {
  background: var(--rojo-oscuro);
  color: white;
  padding: 8px 25px;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--rojo-vivo);
  animation: heartbeat 2s infinite;
}

.hero-title {
  font-family: 'Dancing Script', cursive;
  font-size: 3.2rem;
  color: var(--rojo-vivo);
  text-shadow: 0 0 20px rgba(196, 30, 58, 0.7);
  line-height: 1.2;
}

.hero-date {
  font-size: 1.1rem;
  color: var(--dorado-suave);
  font-weight: 300;
}

.hero-names {
  font-size: 1.4rem;
  font-weight: 600;
  background: rgba(196, 30, 58, 0.2);
  padding: 10px 25px;
  border-radius: 8px;
  border-left: 3px solid var(--rojo-vivo);
}

.hero-subtitle {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--rojo-claro);
  font-style: italic;
}

/* === SECCIONES GENERALES === */
section {
  padding: 60px 20px;
  position: relative;
}

.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  text-align: center;
  color: var(--rojo-claro);
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.section-title i {
  font-size: 1.8rem;
  color: var(--rojo-vivo);
}

/* === COUNTER === */
.counter-section {
  background: var(--negro-medio);
}

.counter-card {
  background: linear-gradient(145deg, #1f1f1f, #151515);
  border: 1px solid var(--rojo-oscuro);
  border-radius: 16px;
  padding: 25px 15px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rojo-vivo);
  font-family: 'Courier New', monospace;
}

.counter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #aaa;
  margin-top: 5px;
}

.counter-divider {
  width: 1px;
  height: 40px;
  background: var(--rojo-oscuro);
}

.counter-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: var(--dorado-suave);
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
}

/* === INSIDE JOKES === */
.inside-jokes-section {
  background: var(--negro-profundo);
}

.joke-card {
  background: var(--negro-medio);
  border-radius: 16px;
  padding: 25px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--rojo-oscuro);
  text-align: center;
}

.pollo-takis {
  border-left: 4px solid #ff8c00;
}

.hey-tierno {
  border-left: 4px solid #ff1493;
}

.joke-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}

.joke-card h3 {
  color: var(--rojo-claro);
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.joke-card p {
  color: var(--blanco-humo);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.joke-detail {
  font-style: italic;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 10px;
}

/* === GALERÍA === */
.gallery-section {
  background: var(--negro-medio);
}

.gallery-container {
  position: relative;
  width: 100%;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 15px;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: var(--negro-medio);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rojo-oscuro);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.card-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  background-color: #3a0a0a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img {
  background-color: #1a1a1a;
  background-blend-mode: overlay;
}

.image-overlay {
  font-size: 3rem;
  opacity: 0.8;
}

.card-caption {
  padding: 15px;
  text-align: center;
  font-weight: 500;
  color: var(--blanco-humo);
  font-size: 0.95rem;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  transition: all 0.3s;
}

.gallery-dot.active {
  background: var(--rojo-vivo);
  width: 20px;
  border-radius: 10px;
}

/* === RAZONES === */
.reasons-section {
  background: var(--negro-profundo);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.reason-item {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 15px 10px;
  text-align: center;
  border: 1px solid #3a0a0a;
  transition: all 0.3s;
  font-size: 0.85rem;
}

.reason-item i {
  color: var(--rojo-vivo);
  margin-right: 5px;
}

.reason-item:active {
  background: var(--rojo-oscuro);
  transform: scale(0.95);
}

.btn-reveal {
  background: var(--rojo-oscuro);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
  border: 1px solid var(--rojo-vivo);
  text-transform: uppercase;
}

.btn-reveal:active {
  background: var(--rojo-vivo);
  transform: scale(0.97);
}

.special-reason {
  margin-top: 20px;
  padding: 20px;
  background: rgba(196, 30, 58, 0.15);
  border-radius: 12px;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: var(--rojo-claro);
  border: 1px dashed var(--rojo-vivo);
}

/* === TIMELINE === */
.timeline-section {
  background: var(--negro-medio);
}

.timeline {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rojo-oscuro);
}

.timeline-item {
  padding: 10px 0 20px 50px;
  position: relative;
}

.timeline-item::before {
  content: '❤️';
  position: absolute;
  left: 12px;
  top: 15px;
  font-size: 1rem;
}

.timeline-content {
  background: #1e1e1e;
  padding: 15px;
  border-radius: 10px;
  border-left: 3px solid var(--rojo-vivo);
}

.timeline-content h3 {
  color: var(--rojo-claro);
  margin-bottom: 5px;
}

/* === MUSIC PLAYER === */
.music-section {
  background: var(--negro-profundo);
}

.music-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.disc-animation {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--rojo-oscuro) 0deg, var(--negro-medio) 180deg, var(--rojo-oscuro) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 3s linear infinite paused;
}

.disc-animation.playing {
  animation-play-state: running;
}

.disc-inner {
  width: 25px;
  height: 25px;
  background: var(--negro-profundo);
  border-radius: 50%;
  border: 2px solid var(--rojo-vivo);
}

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

.song-info {
  text-align: center;
}

.song-name {
  font-weight: 600;
  color: var(--rojo-claro);
}

.artist {
  font-size: 0.85rem;
  color: #aaa;
}

.player-controls {
  display: flex;
  gap: 20px;
}

.control-btn {
  background: var(--rojo-oscuro);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
}

.music-note {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 10px;
  text-align: center;
}

/* === CARTA INTERACTIVA === */
.letter-section {
  background: var(--negro-medio);
}

.letter-container {
  background: #1e1e1e;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--rojo-oscuro);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.letter-preview i {
  font-size: 3rem;
  color: var(--rojo-vivo);
  margin-bottom: 15px;
  animation: heartbeat 1.5s infinite;
}

.letter-content {
  text-align: left;
  line-height: 1.8;
}

.signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--rojo-claro);
  margin-top: 20px;
  text-align: right;
}

.pdt {
  font-family: 'Dancing Script', cursive;
  color: var(--dorado-suave);
  margin-top: 15px;
  font-style: italic;
}

/* === MAPA === */
.map-placeholder {
  background: #1e1e1e;
  padding: 40px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--rojo-oscuro);
  color: #aaa;
}

.map-placeholder i {
  font-size: 3rem;
  color: var(--rojo-vivo);
  margin-bottom: 15px;
}

.map-coords {
  margin-top: 15px;
  color: var(--dorado-suave);
}

/* === SECCIÓN FINAL === */
.final-section {
  background: linear-gradient(0deg, var(--negro-medio) 0%, #1a0505 100%);
  text-align: center;
  padding: 60px 20px;
}

.final-heart {
  font-size: 4rem;
  animation: heartbeat 1.2s infinite;
}

.final-section h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: var(--rojo-claro);
  margin: 20px 0;
}

.final-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--dorado-suave);
  margin: 20px 0;
  font-style: italic;
}

.signature-final {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: var(--dorado-suave);
  margin-top: 25px;
}

footer {
  background: var(--negro-profundo);
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #2a2a2a;
}

footer i {
  color: var(--rojo-vivo);
}

/* === CORAZONES FLOTANTES === */
.floating-heart {
  position: absolute;
  color: var(--rojo-vivo);
  opacity: 0.7;
  animation: floatUp 4s linear forwards;
  pointer-events: none;
}

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}