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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 500px;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #d63384;
}

.subtitle {
    margin-bottom: 20px;
    color: #555;
}

.photo-container {
    margin: 20px auto;
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #d63384;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CARTA */
.letter {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

.letter.open {
    animation: none;
}

.letter-text {
    display: none;
    margin-top: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* CORAZONES */
.heart-fall {
    position: fixed;
    top: -20px;
    font-size: 16px;
    color: #ff6b81;
    animation: fall-heart linear forwards;
    pointer-events: none;
    z-index: 999;
}

@keyframes fall-heart {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}
/* SOBRE */
.envelope-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 120px;
}

/* SOBRE */
.envelope-real {
    width: 360px;
    height: 230px;
    background: #f4f1ee;
    position: relative;
    border-radius: 3px;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.25),
        inset 0 0 0 1px rgba(0,0,0,0.08);
    cursor: pointer;
    animation: envelopeShake 3s infinite ease-in-out;

}

.envelope-real.open {
    animation: none;
}

/* SOLAPA */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e9e4df;
    clip-path: polygon(0 0, 100% 0, 50% 55%);
    transform-origin: top;
    transition: transform 1s ease;
    z-index: 5;
}

.envelope-real.open .envelope-flap {
    transform: rotateX(180deg);
}

/* CUERPO */
.envelope-body {
    width: 100%;
    height:100%;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* PAPEL */
.letter-paper {
    position: absolute;
    bottom: -100%;
    left: 10px;
    width: calc(100% - 20px);
    max-height: 200px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 2px;
    transition: bottom 1.2s ease;
    overflow-y: auto; 
}

.envelope-real.open .letter-paper {
    bottom: 20px;
}

/* TEXTO */
#letter-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
}

@keyframes envelopeShake {
    0%   { transform: rotate(5deg); }
    25%  { transform: rotate(0.10deg); }
    50%  { transform: rotate(-0.10deg); }
    75%  { transform: rotate(0.10eg); }
    100% { transform: rotate(5deg); }
}

.envelope-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    color: #d62828;
    z-index: 6;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* 🔥 SOLO cuando se abre desaparece */
.envelope-real.open .envelope-heart {
    opacity: 0;
}

.photo-container {
    margin: 20px auto;
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #d63384;
    position: relative;
    background: #fff;
}

.photo-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.photo-slider img.active {
    opacity: 1;
}
/* 🔒 PANTALLA BLOQUEO */

.lock-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lock-romantic {
  text-align: center;
  transform: scale(0.9);
  animation: lockShake 10s infinite ease-in-out;
}

.lock-shackle {
  width: 170px;
  height: 150px;
  border: 10px solid #ccc;
  border-bottom: none;
  border-radius: 60px 60px 0 0;
  margin: 0 auto -10px;
  background: linear-gradient(to right, #eee, #aaa);
}

.lock-body {
  background: linear-gradient(to right, #f5f5f5, #cfcfcf);
  padding: 80px 10px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.digits {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.digit {
  width: 42px;
  height: 60px;
  background: #111;
  color: #ff6b81;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
  transition: transform 0.15s;
}

.digit:active {
  transform: translateY(3px);
}

#unlockBtn {
  margin-top: 20px;
  padding: 10px 25px;
  border-radius: 50px;
  border: none;
  background: #d63384;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
}
@keyframes lockShake {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(0.8deg); }
    40%  { transform: rotate(-0.8deg); }
    60%  { transform: rotate(0.6deg); }
    80%  { transform: rotate(-0.6deg); }
    100% { transform: rotate(0deg); }
}
.questions-box {
    margin: 50px auto;
    max-width: 400px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.questions-box h2 {
    color: #d63384;
    margin-bottom: 20px;
}

.question {
    display: none;
}

.question.active {
    display: block;
}

.question p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.question button {
    margin: 5px;
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    background: #d63384;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.question button:hover {
    background: #b62d6f;
}

/* VIDEO */
.video-box {
    margin: 40px auto;
    max-width: 500px;
}

.video-box video {
    width: 100%;
    border-radius: 20px;
}

.hidden {
    display: none;
}
