:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ff8e8e;
    --tertiary-color: #ffbdbd;
    --gold-accent: #FFD700;
    --text-color: #333;
    --background-overlay: rgba(255, 255, 255, 0.95);
    --button-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --button-hover-bg: #ff3333;
    --modal-bg: rgba(0,0,0,0.5);
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Roboto', sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
  }
  
  h1, h2 {
    font-family: var(--font-heading);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
  }
  
  .header {
    margin: 50px 0 20px;
    animation: fadeIn 2s;
    text-align: center;
  }
  
  h1 {
    color: #fff;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
  }
  
  .photo-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 30px;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    transition: transform 0.3s, filter 0.3s;
  }
  .photo-frame:hover {
    transform: rotate(10deg) scale(1.1);
    filter: brightness(1.1);
  }
  
  .love-letter {
    background: var(--background-overlay);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    border: 2px solid var(--gold-accent);
  }
  .love-letter::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--gold-accent);
    border-radius: 25px;
    opacity: 0.3;
    z-index: -1;
  }
  .love-letter h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .love-letter p {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
    font-family: var(--font-heading);
  }
  
  button {
    background: var(--button-bg);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  button:hover {
    background: var(--button-hover-bg);
    transform: scale(1.1);
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    align-items: center;
    justify-content: center;
  }
  .modal-content {
    background: var(--background-overlay);
    background-image: url('https://www.transparenttextures.com/patterns/old-mathematics.png');
    background-blend-mode: multiply;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.5s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: var(--font-heading);
    font-size: 1.5em;
    line-height: 1.5;
    color: var(--text-color);
  }
  .modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
  }
  .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-color);
  }
  input[type="password"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 80%;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .interactive-hearts {
    position: fixed;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
  }
  .heart {
    position: absolute;
    font-size: 20px;
    color: #ff3b3b;
    animation: float 6s infinite;
  }
  @keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-20px) rotate(20deg); opacity: 0.8; }
    100% { transform: translateY(0) rotate(0deg); opacity: 1; }
  }
  
  .floating-wrapper {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideUp 1.5s ease-out forwards;
  }
  @keyframes slideUp {
    0% { transform: translateX(-50%) translateY(300px); opacity: 0; }
    60% { transform: translateX(-50%) translateY(-10px); opacity: 1; }
    80% { transform: translateX(-50%) translateY(5px); }
    100% { transform: translateX(-50%) translateY(0); }
  }
  .floating-message {
    background: var(--background-overlay);
    padding: 1rem 2rem;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--text-color);
    animation: bounce 2.5s ease-in-out infinite;
  }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
  }
  .floating-message:hover {
    transform: translateY(-3px) scale(1.05);
    transition: transform 0.2s;
  }
  @media (max-width: 480px) {
    .floating-wrapper {
      bottom: 3rem;
    }
    .floating-message {
      padding: 0.8rem 1.5rem;
      font-size: 0.9em;
    }
  }
  
  .footer {
    text-align: center;
    margin: 4rem 0;
  }
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
  }
  .photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  .photo-card:hover {
    transform: translateY(-10px) rotate(2deg);
  }
  .photo-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s;
  }
  .photo-card:hover img {
    filter: grayscale(0%);
  }
  
  .unlocked-letter {
    background: url('https://www.transparenttextures.com/patterns/paper-3.png'), rgba(251,246,225,0.95);
    background-blend-mode: overlay;
    background-size: cover;
    padding: 40px;
    border: 3px solid var(--gold-accent);
    border-radius: 20px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    font-family: 'Dancing Script', cursive;
    font-size: 1.4em;
    line-height: 1.8;
    color: #5D3A00;
    position: relative;
    overflow: hidden;
    animation: reveal 1s ease-in-out;
  }
  @keyframes reveal {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  .unlocked-letter::before,
  .unlocked-letter::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.5;
    background: url('https://www.transparenttextures.com/patterns/brick-wall.png') no-repeat center;
    background-size: cover;
  }
  .unlocked-letter::before {
    top: 10px;
    left: 10px;
  }
  .unlocked-letter::after {
    bottom: 10px;
    right: 10px;
  }
  
  #preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* #playMusic {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--button-bg);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.3s;
  }
  #playMusic:hover {
    transform: scale(1.1);
  } */
  
  .lightbox {
    display: none;
    position: fixed;
    z-index: 1200;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
  }
  .lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation: fadeInLightbox 0.5s;
  }
  @keyframes fadeInLightbox {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
  }
  .close-lightbox:hover,
  .close-lightbox:focus {
    color: #bbb;
  }
  
  #memories {
    padding: 2rem;
    background: var(--background-overlay);
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
  #memories h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
  }
  .memories-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  .memory {
    text-align: center;
    transition: transform 0.3s;
  }
  .memory img {
    width: 100%;
    height: 80%;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s;
  }
  .memory:hover img {
    transform: scale(1.05);
  }
  .memory p {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--text-color);
  }
  
  .photo-gallery .photo-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
  }
  .photo-gallery .photo-card:nth-child(1) {
    animation-delay: 0.2s;
  }
  .photo-gallery .photo-card:nth-child(2) {
    animation-delay: 0.4s;
  }
  .photo-gallery .photo-card:nth-child(3) {
    animation-delay: 0.6s;
  }
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes slideIn {
    0% {
      left: -150px;
      opacity: 0;
    }
    100% {
      left: 20px;
      opacity: 1;
    }
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.03);
    }
  }
  @keyframes slideIn {
    0% {
      left: -150px;
      opacity: 0;
    }
    100% {
      left: 20px;
      opacity: 1;
    }
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  
/* Contenedor para los iconos en la esquina inferior derecha, en fila */
#iconContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column; /* Los botones se muestran en línea */
    align-items: center;
    gap: 1px; /* Espacio reducido entre ellos */
    z-index: 1100;
  }
  
  /* Estilo común para ambos botones circulares */
  #playMusic,
  #visitIcon {
    background: var(--button-bg);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s;
    width: 50px;
    height: 50px;
  }
  
  /* Efecto hover para ambos botones */
  #playMusic:hover,
  #visitIcon:hover {
    transform: scale(1.1);
  }
  
  /* Estilo adicional cuando el botón de visitas muestra el número */
  #visitIcon.showCount {
    background: linear-gradient(135deg, rgba(255,107,107,0.9), rgba(255,142,142,0.9));
    font-size: 1.2em;
  }
  