/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* === COLORES ROMÁNTICOS === */
  :root {
    --pink: #ff69b4;
    --pastel: #ffe4e1;
    --gold: #ffd700;
    --white: #fffaf0;
    --text: #444;
    --btn-bg: #ffd700;
    --btn-hover: #ffb800;
    --card-bg: #fff8f5;
  }
  
  body.dark-mode {
    --pink: #ff1744;
    --pastel: #1a0000;
    --gold: #ffffff;
    --white: #000000;
    --text: #ffffff;
    --btn-bg: #ff1744;
    --btn-hover: #d50000;
    --card-bg: #1a0000;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.6s ease, color 0.6s ease;
  }
  
  h1, h2, h3, h4 {
    font-family: 'Great Vibes', cursive;
    color: var(--pink);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  section {
    padding: 80px 20px;
    position: relative;
  }
  
  section:not(#home) {
    display: none;
  }
  
  /* === BOTONES ANIMADOS === */
  .btn-animated {
    position: relative;
    padding: 12px 30px;
    background: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    z-index: 1;
    font-size: 1rem;
  }
  
  .btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
  }
  
  .btn-animated:hover::before {
    width: 300px;
    height: 300px;
  }
  
  .btn-animated:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 23, 68, 0.4);
    background: var(--btn-hover);
  }
  
  .btn-animated:active {
    transform: translateY(-1px) scale(1.02);
  }
  
  /* FLECHAS EN CARRUSEL */
  .carousel .prev,
  .carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 105, 180, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }
  
  .carousel .prev:hover,
  .carousel .next:hover {
    background: var(--pink);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5);
  }
  
  .carousel .prev { left: 15px; }
  .carousel .next { right: 15px; }
  
  /* Dark mode button */
  .dark-mode-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 0.9rem;
  }
  
  /* Home */
  #home {
    height: 100vh;
    background: linear-gradient(135deg, var(--pastel), var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    animation: bgPulse 12s infinite alternate;
  }
  
  @keyframes bgPulse {
    0% { background-color: var(--pastel); }
    100% { background-color: #fff5f5; }
  }
  
  #home h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    animation: heartbeat 2s infinite;
  }
  
  #home p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-family: 'Dancing Script', cursive;
  }
  
  /* Particles */
  .particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  
  .heart-particle {
    position: absolute;
    font-size: 20px;
    color: var(--pink);
    opacity: 0.6;
    animation: float 6s infinite linear, rotateHeart 4s infinite;
    pointer-events: none;
  }
  
  @keyframes rotateHeart {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Contador */
  #counter {
    background: var(--pastel);
    text-align: center;
    animation: fadeIn 2s;
  }
  
  #daysTogether {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--pink);
    font-family: 'Great Vibes', cursive;
    animation: heartbeat 1.5s infinite;
  }
  
  /* Galería de meses */
  #yearSelect {
    margin: 20px auto;
    padding: 10px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--pink);
    font-size: 1rem;
    color: var(--text);
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
  }
  
  .month-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.4s;
    height: 150px;
  }
  
  .month-item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.3);
  }
  
  .month-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .month-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
  }
  
  /* Cartas */
  .letters-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .book {
    width: 400px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--pink);
  }
  
  .pages .page {
    display: none;
    padding: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    animation: fadeIn 1s;
    color: var(--text);
  }
  
  body.dark-mode .pages .page {
    background: rgba(0,0,0,0.6);
    color: #ffffff;
  }
  
  .pages .page.active {
    display: block;
  }
  
  .page h4 {
    color: var(--pink);
    margin-bottom: 10px;
  }
  
  .typing {
    overflow: hidden;
    border-right: 2px solid var(--pink);
    white-space: nowrap;
    animation: typing 4s steps(50) forwards, blink 0.8s infinite;
  }
  
  /* Música */
  .music-player {
    margin: 30px auto;
    max-width: 600px;
    background: var(--pastel);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(255,105,180,0.2);
    border: 1px solid var(--pink);
  }
  
  .playlist {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid var(--pink);
    border-radius: 10px;
    background: var(--card-bg);
  }
  
  .playlist-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--pink);
    transition: 0.3s;
    color: var(--text);
  }
  
  .playlist-item:hover {
    background: var(--pink);
    color: white;
  }
  
  .controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  
  #currentSong {
    font-style: italic;
    color: var(--pink);
  }
  
  .wave {
    height: 60px;
    background: linear-gradient(90deg, var(--pink) 0%, transparent 100%);
    border-radius: 30px;
    animation: wave 2s infinite;
    display: none;
  }
  
  .wave.playing {
    display: block;
  }
  
  /* Carrusel */
  .carousel {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .carousel-item {
    min-width: 100%;
  }
  
  .carousel-item img, .carousel-item video {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }
  
  /* VIDEO FINAL 100% CENTRADO */
  #final {
    background: linear-gradient(to top, var(--pastel), var(--white));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
  }
  

.video-container {
    margin-top: 30px;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  #finalVideo {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 3px solid var(--pink);
    display: block;
    margin: 0 auto;
  }
  
  .video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    max-width: 90%;
    text-align: center;
    position: relative;
    animation: modalShow 0.5s;
    border: 2px solid var(--pink);
  }
  
  #modalTitle {
    color: var(--pink);
    margin-bottom: 15px;
  }
  
  #monthCarousel {
    max-width: 600px;
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--pink);
    font-weight: bold;
  }
  
  /* EFECTOS SIN TEXTO */
  .fireworks > div {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1.5s infinite ease-out;
    opacity: 0;
  }
  
  @keyframes sparkle {
    0% { transform: scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
  }
  
  /* Animaciones */
  @keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
  }
  
  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  
  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }
  
  @keyframes blink {
    50% { border-color: transparent; }
  }
  
  @keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
  }
  
  @keyframes modalShow {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    #home h1 { font-size: 3rem; }
    .book { width: 90%; }
    .carousel-item img, .carousel-item video { height: 250px; }
    .gallery { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .letters-container { flex-direction: column; }
    .carousel .prev, .carousel .next { width: 40px; height: 40px; font-size: 1.2rem; }
  }