/* ==========================================
   CSS PRINCIPAL - EL ARCHIPIÉLAGO DE ALEIDA
   ========================================== */

/* Variables del sistema de diseño (Teal & Co.) */
:root {
  --color-teal-dark: #0f766e;
  --color-teal-base: #14b8a6;
  --color-teal-light: #2dd4bf;
  --color-teal-pale: #e0f2fe;
  
  --color-coral: #f43f5e;
  --color-coral-light: #fda4af;
  
  --color-girasol-dark: #b45309;
  --color-girasol-base: #fbbf24;
  --color-girasol-light: #fef08a;

  --color-weed-base: #10b981;
  --color-weed-dark: #065f46;
  --color-weed-light: #a7f3d0;

  --color-bg-dark: #020617;
  --color-bg-card: rgba(15, 23, 42, 0.75);
  
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-body: 'Quicksand', sans-serif;
  
  --trans-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Reset y estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: #f8fafc;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Scrollbars personalizadas */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-teal-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal-base);
}

/* Botones comunes */
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 9999px;
  transition: var(--trans-smooth);
}

.btn-primario {
  background: linear-gradient(135deg, var(--color-teal-base), var(--color-teal-dark));
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.4);
}
.btn-primario:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px -5px rgba(20, 184, 166, 0.6);
}
.btn-primario:active {
  transform: translateY(0) scale(0.98);
}

.btn-secundario {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}
.btn-secundario:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ==========================================
   PANTALLA DE CARGA / BIENVENIDA (ESTILOS)
   ========================================== */
#pantalla-bienvenida {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}
#pantalla-bienvenida.active {
  opacity: 1;
  pointer-events: all;
}

.mar-decoracion {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25vh;
  overflow: hidden;
  pointer-events: none;
}

.olas-fondo {
  position: absolute;
  width: 200%;
  height: 100%;
  background: var(--color-teal-dark);
  opacity: 0.3;
  bottom: 0;
  left: 0;
  animation: olasMove 12s linear infiniteAlternate;
  border-radius: 43% 40% 44% 40%;
}

.olas-medio {
  position: absolute;
  width: 210%;
  height: 90%;
  background: var(--color-teal-base);
  opacity: 0.15;
  bottom: 0;
  left: -5%;
  animation: olasMove 8s linear infiniteAlternate-reverse;
  border-radius: 40% 43% 40% 44%;
}

@keyframes olasMove {
  0% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(5deg); }
}

.bienvenida-tarjeta {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  padding: 3rem 2rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: cardFadeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cardFadeIn {
  to { transform: scale(1); }
}

.barco-container {
  width: 90px;
  height: 70px;
  margin: 0 auto 1.5rem;
  animation: barcoBoleo 3s ease-in-out infinite;
}

.barco-svg {
  width: 100%;
  height: 100%;
}

@keyframes barcoBoleo {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-teal-light);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(45, 212, 191, 0.3);
}

p {
  color: var(--color-teal-pale);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.pregunta-seccion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pregunta-seccion label {
  font-family: var(--font-display);
  color: var(--color-girasol-base);
  font-size: 1.1rem;
}

.input-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

input[type="number"] {
  width: 80px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-teal-dark);
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  outline: none;
  transition: var(--trans-smooth);
}
input[type="number"]:focus {
  border-color: var(--color-teal-light);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

#btn-ingresar {
  background: linear-gradient(135deg, var(--color-teal-base), var(--color-teal-dark));
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}
#btn-ingresar:hover {
  transform: scale(1.05);
}

.error-msg {
  color: var(--color-coral);
  font-size: 0.95rem;
  min-height: 24px;
  font-weight: 500;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ==========================================
   PANTALLA MAPA PRINCIPAL (ESTILOS)
   ========================================== */
#pantalla-mapa {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}
#pantalla-mapa.active {
  opacity: 1;
  pointer-events: all;
}

.mapa-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0) 100%);
}

.logo-area h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-teal-light);
}
.logo-area p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.progreso-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
}
.progreso-container span {
  font-size: 0.85rem;
}

.barra-progreso-bg {
  width: 100px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}
#barra-progreso-llenado {
  height: 100%;
  background: linear-gradient(to right, var(--color-teal-light), var(--color-weed-base));
  border-radius: 9999px;
  transition: width 0.6s ease;
}

/* Océano y estrellas */
.oceano-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #020617 0%, #083344 100%);
}

.olas-mapa {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 90%, rgba(20, 184, 166, 0.08) 0%, rgba(2, 6, 23, 0) 70%);
  pointer-events: none;
}

.estrellas-cielo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  pointer-events: none;
}
.estrella {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: estrellaBrillo 4s ease-in-out infinite;
}

@keyframes estrellaBrillo {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* Viewport de las islas (Scroll en Móvil, Fijo en PC) */
.mapa-islas-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 3rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.mapa-islas-scroll {
  display: flex;
  gap: 4rem;
  min-width: 100%;
  justify-content: space-around;
  align-items: center;
  padding: 4rem 0;
}

.isla-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  scroll-snap-align: center;
  cursor: pointer;
  transition: var(--trans-smooth);
}

.isla-visual {
  position: relative;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  transition: var(--trans-smooth);
  animation: islaFlote 4s ease-in-out infinite;
}

.svg-isla {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.isla-nombre {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-teal-pale);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: var(--trans-smooth);
}

/* Efectos hover/active para islas */
.isla-card:hover {
  transform: scale(1.08) translateY(-10px);
}
.isla-card:hover .isla-visual {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 20px 40px -10px rgba(20, 184, 166, 0.3);
}
.isla-card:hover .isla-nombre {
  color: var(--color-teal-light);
  transform: translateY(2px);
}

/* Variar el delay del balanceo de islas */
#isla-girasol .isla-visual { animation-delay: 0s; }
#isla-antojos .isla-visual { animation-delay: 0.7s; }
#isla-weed .isla-visual { animation-delay: 1.4s; }
#isla-faro .isla-visual { animation-delay: 2.1s; }

@keyframes islaFlote {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* Indicador de estado de la isla */
.marcador-completado {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--color-weed-base);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--color-bg-dark);
  transform: scale(0);
  transition: var(--trans-smooth);
}
.isla-card.completada .marcador-completado {
  transform: scale(1);
}

/* Faro Haz de luz animacion */
.haz-luz-anim {
  transform-origin: 50% 26px;
  animation: faroHaz 6s ease-in-out infinite alternate;
}
@keyframes faroHaz {
  0% { transform: rotate(-5deg); opacity: 0.2; }
  100% { transform: rotate(10deg); opacity: 0.45; }
}

/* Deslizar indicador */
.indicador-deslizar {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  text-align: center;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-teal-pale);
  opacity: 0.7;
  animation: pulsoSuave 2s infinite;
  pointer-events: none;
}

@keyframes pulsoSuave {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ==========================================
   MODALES (ESTILOS GENERALES Y CAPAS)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 500;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-tarjeta {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  width: 95%;
  max-width: 700px;
  height: 85vh;
  max-height: 650px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}
.modal-overlay.active .modal-tarjeta {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}
#modal-titulo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-teal-light);
}

.btn-cerrar {
  background: transparent;
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  padding: 0.2rem 0.6rem;
  transition: var(--trans-smooth);
}
.btn-cerrar:hover {
  color: var(--color-coral);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.seccion-contenido {
  display: none;
  height: 100%;
}
.seccion-contenido.active {
  display: flex;
  flex-direction: column;
}

.instruccion-isla {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
  color: var(--color-teal-pale);
  text-align: center;
}

/* ==========================================
   ISLA 1: GIRASOL (INTERACTIVO)
   ========================================== */
.girasoles-jardin {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
  margin-top: 1rem;
}

.girasol-interactive-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--trans-smooth);
}

.girasol-tall-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.05);
  border: 1px dashed rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-smooth);
}

.girasol-interactive-card:hover .girasol-tall-box {
  background: rgba(251, 191, 36, 0.15);
  border-color: var(--color-girasol-base);
  transform: scale(1.1) rotate(15deg);
}

.girasol-tall-box svg {
  width: 75%;
  height: 75%;
}

.girasol-interactive-card span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-girasol-light);
}

/* Vista detallada del recuerdo */
.detalle-recuerdo-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.4s ease;
}

.recuerdo-tarjeta-completa {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recuerdo-imagen-wrapper {
  width: 100%;
  height: 220px;
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recuerdo-imagen-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  font-size: 4rem;
  animation: floatIcon 3s ease-in-out infinite;
}

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

.recuerdo-texto {
  padding: 0 1.5rem 1.5rem;
}
.recuerdo-texto h3 {
  font-family: var(--font-display);
  color: var(--color-girasol-base);
  margin-bottom: 0.75rem;
}
.recuerdo-texto p {
  margin: 0;
  font-size: 0.95rem;
  color: white;
  line-height: 1.6;
}

/* ==========================================
   ISLA 2: ANTOJOS (TRIVIA)
   ========================================== */
.trivia-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trivia-barra-progreso {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}
.trivia-progreso-llenado {
  height: 100%;
  background: var(--color-coral);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.trivia-tarjeta-pregunta {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  padding: 1.75rem;
  border-radius: 1.5rem;
  text-align: center;
}

.trivia-tarjeta-pregunta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-teal-light);
  margin-bottom: 1.5rem;
}

.trivia-opciones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-opcion {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.85rem 1.5rem;
  text-align: left;
  border-radius: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--trans-smooth);
}
.btn-opcion:hover {
  background: rgba(45, 212, 191, 0.1);
  border-color: var(--color-teal-base);
  transform: translateX(5px);
}

.btn-opcion.incorrecta {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--color-coral);
  animation: shake 0.4s ease;
}

.btn-opcion.correcta {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-weed-base);
  transform: scale(1.02);
}

.trivia-alert {
  min-height: 24px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-coral-light);
}

.trivia-exito-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kitty-bailarina {
  font-size: 4rem;
  animation: bounceDance 1s infinite alternate;
}
@keyframes bounceDance {
  to { transform: translateY(-15px) scaleY(0.9); }
}

.trivia-exito-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-coral);
}

/* ==========================================
   ISLA 3: MOANA & WEED
   ========================================== */
.panel-weed-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  background: transparent;
  color: var(--color-teal-pale);
  padding: 0.75rem 1rem;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-weight: 600;
}
.tab-btn.active {
  border-bottom-color: var(--color-teal-base);
  color: var(--color-teal-light);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.sub-guia {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.disney-carrusel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1.5rem;
  scroll-snap-type: x mandatory;
}

.disney-card {
  flex: 0 0 240px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
  transition: var(--trans-smooth);
}

.disney-card-img-wrapper {
  width: 100%;
  height: 150px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disney-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trans-smooth);
}

.disney-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.disney-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-girasol-base);
}
.disney-info p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: white;
}

.btn-disney-accion {
  margin-top: 1rem;
  background: var(--color-coral);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-disney-accion:hover {
  transform: translateY(-2px);
}

/* Weed Interactivo */
.weed-interactivo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 250px;
  position: relative;
}

.weed-hoja-gigante {
  font-size: 5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--trans-smooth);
  animation: weedPulse 2s infinite alternate;
}
.weed-hoja-gigante:active {
  transform: scale(0.9);
}

@keyframes weedPulse {
  to { transform: scale(1.1) rotate(5deg); text-shadow: 0 0 20px rgba(16, 185, 129, 0.6); }
}

.pulsar-click {
  font-size: 0.8rem;
  font-family: var(--font-display);
  color: var(--color-weed-light);
  opacity: 0.8;
}

.weed-frase-oculta {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-weed-light);
  min-height: 40px;
  max-width: 80%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.weed-frase-oculta.visible {
  opacity: 1;
}

/* Humo */
.humo-pantalla {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.humo-particula {
  position: absolute;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.25) 0%, rgba(20, 184, 166, 0) 70%);
  border-radius: 50%;
  bottom: -20px;
  animation: humoFlota 4s ease-out forwards;
}

@keyframes humoFlota {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.6; }
  100% { transform: translateY(-300px) scale(3.5) rotate(45deg); opacity: 0; }
}

/* ==========================================
   ISLA 4: EL FARO Y INSTRUMENTOS
   ========================================== */
.dueto-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.instrumento-caja {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  border-radius: 1.5rem;
}
.instrumento-caja h4 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
  color: var(--color-teal-light);
  text-align: center;
}

/* Teclado del Piano */
.piano-teclado {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.tecla-piano {
  height: 90px;
  border-radius: 0 0 6px 6px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.tecla-piano.blanca {
  background: #f8fafc;
  color: #1e293b;
  width: 40px;
  border: 1px solid #cbd5e1;
}
.tecla-piano.blanca:active {
  background: #e2e8f0;
  transform: translateY(2px);
}

/* Cuerdas de la Guitarra */
.guitarra-cuerdas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
}

.cuerda-guitarra {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-display);
  color: var(--color-teal-pale);
  cursor: pointer;
}

.cuerda-linea {
  position: absolute;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #94a3b8;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
  transition: all 0.1s ease;
}

.cuerda-guitarra:nth-child(1) .cuerda-linea { height: 4px; }
.cuerda-guitarra:nth-child(2) .cuerda-linea { height: 3.5px; }
.cuerda-guitarra:nth-child(3) .cuerda-linea { height: 3px; }
.cuerda-guitarra:nth-child(4) .cuerda-linea { height: 2.5px; }
.cuerda-guitarra:nth-child(5) .cuerda-linea { height: 2px; }
.cuerda-guitarra:nth-child(6) .cuerda-linea { height: 1.5px; }

.cuerda-guitarra:active .cuerda-linea {
  background: var(--color-teal-light);
  box-shadow: 0 0 10px var(--color-teal-light);
  animation: cuerdaVibra 0.15s linear infinite;
}

@keyframes cuerdaVibra {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-2px); }
  75% { transform: translateY(2px); }
}

.faro-progreso-melodia {
  margin: 1.5rem 0;
  text-align: center;
  font-family: var(--font-display);
  color: var(--color-girasol-base);
  font-size: 1.05rem;
}

.revelar-carta-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.pulse-anim {
  animation: pulseButton 1.5s infinite;
}

@keyframes pulseButton {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(20, 184, 166, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

/* ==========================================
   CARTA DE AMOR FINAL (ESTILOS ESPECIALES)
   ========================================== */
.carta-amor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.pergamino-amor {
  background: #fdfaf2;
  border-radius: 1.5rem;
  border: 4px double #d97706;
  color: #78350f;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pergamino-decoracion {
  font-size: 2.2rem;
  animation: pulsoSuave 2.5s infinite;
}

.carta-texto {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #451a03;
  font-weight: 500;
  text-align: justify;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
}

/* ==========================================
   CONTROLES FLOTANTES
   ========================================== */
.controles-flotantes {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  gap: 0.75rem;
}

.control-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border);
  color: white;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.control-btn:hover {
  background: var(--color-teal-dark);
  transform: scale(1.1);
}

/* ==========================================
   UTILIDADES Y TRANSICIONES
   ========================================== */
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================
   RESPONSIVIDAD Y CONSULTAS DE MEDIOS
   ========================================== */

/* Escritorio y Pantallas Grandes */
@media (min-width: 768px) {
  .logo-area h2 {
    font-size: 2rem;
  }
  
  .logo-area p {
    font-size: 0.95rem;
  }
  
  .mapa-islas-viewport {
    justify-content: center;
    padding: 0;
    overflow-x: hidden;
  }
  
  .mapa-islas-scroll {
    gap: 5rem;
    padding: 0;
  }
  
  .isla-visual {
    width: 200px;
    height: 200px;
  }
  
  .isla-nombre {
    font-size: 1.35rem;
  }
  
  .indicador-deslizar {
    display: none;
  }

  .girasoles-jardin {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .girasol-tall-box {
    width: 120px;
    height: 120px;
  }

  .girasol-interactive-card span {
    font-size: 1rem;
  }

  .recuerdo-tarjeta-completa {
    flex-direction: row;
    align-items: stretch;
  }

  .recuerdo-imagen-wrapper {
    width: 40%;
    height: auto;
    min-height: 220px;
  }

  .recuerdo-texto {
    padding: 2rem;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .dueto-container {
    flex-direction: row;
    gap: 2rem;
  }
  
  .instrumento-caja {
    flex: 1;
  }
  
  .piano-teclado {
    gap: 6px;
  }
  
  .tecla-piano {
    height: 120px;
    width: 48px;
    font-size: 0.9rem;
  }

  .guitarra-cuerdas {
    gap: 1rem;
  }
  
  .cuerda-guitarra {
    height: 24px;
    font-size: 0.85rem;
  }
}

/* Correcciones de alto para pantallas pequeñas */
@media (max-height: 600px) {
  .modal-tarjeta {
    height: 95vh;
  }
  .recuerdo-imagen-wrapper {
    height: 150px;
  }
  .tecla-piano {
    height: 70px;
  }
}
