:root {
  --background-gradient: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  --table-gradient: linear-gradient(90deg, #ff7eb3 0%, #ff758c 100%);
  --podium-gradient: linear-gradient(90deg, #ffcc80 0%, #ffeb99 100%);
  --modal-bg: rgba(0, 0, 0, 0.6);
  --white: #ffffff;
  --orange: #ffab40;
  --blue: #29b6f6;
  --pink: #ff80ab;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease-in-out;
}

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

body {
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  background: var(--background-gradient), url('../img/fondo.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #333;
}

header {
  text-align: center;
  padding: 2rem 0;
}

.main-title {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  color: var(--orange);
  text-shadow: 2px 2px var(--blue);
  margin-bottom: 1.5rem;
}

.title-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: fadeInTitle 1.5s ease;
}

@keyframes fadeInTitle {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: none; }
}

main {
  flex: 1;
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.table-section {
  background: var(--table-gradient);
  padding: 2rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  animation: fadeInTable 1s;
}

@keyframes fadeInTable {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ===== CONTROLES DE MEDALLAS ===== */
.medal-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.medal-btn {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  user-select: none;
}

.medal-btn.add-btn {
  color: #4CAF50; /* Verde para el botón + */
}

.medal-btn.remove-btn {
  color: #f44336; /* Rojo para el botón - */
}

.medal-count {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

/* Efecto hover sutil */
.medal-btn:hover {
  opacity: 0.8;
}

/* Estilos responsive para móviles */
@media (max-width: 768px) {
  .medal-controls {
    gap: 8px;
  }
  
  .medal-btn {
    font-size: 16px;
  }
  
  .medal-count {
    font-size: 0.9em;
  }
}

/* ===== ESTILOS RESPONSIVE ===== */
@media (max-width: 768px) {
  html {
    font-size: 80%; /* Reducción del 20% del tamaño base */
  }
  
  /* Ajustes específicos para elementos que necesitan más espacio */
  .table-controls {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .control-group, .nav-links {
    width: 100%;
    justify-content: space-between;
  }
  
  .control-btn, .nav-link {
    flex: 1;
    justify-content: center;
    padding: 0.6em 0.5em;
    font-size: 0.9rem;
  }
  
  /* Ajuste para el título principal */
  .main-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  /* Ajuste para la imagen del título */
  .title-image {
    max-width: 90%;
  }
}

/* Puedes agregar aquí estilos adicionales para la tabla y la página */

/* Animación de salida de página hacia la derecha */
.slide-out-right-page {
  animation: slideOutRightPage 0.6s cubic-bezier(.6,1.2,.5,1) forwards;
}
@keyframes slideOutRightPage {
  0% { transform: translateX(0); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(120vw); opacity: 0.6; }
}

/* --------- PODIUM TITLE SLIDE UP --------- */
.slide-up-podium-title {
  animation: slideUpPodiumTitle 0.55s cubic-bezier(.4,2,.6,1) forwards;
}
@keyframes slideUpPodiumTitle {
  0% { opacity: 1; transform: none; }
  60% { opacity: 0.5; transform: translateY(-60px); }
  100% { opacity: 0; transform: translateY(-120px); }
}

.announce-btn {
  font-size: 1.35rem;
  font-weight: 600;
  padding: 0.85em 2.2em;
  color: #fffbe7;
  background: linear-gradient(90deg, #f9b600 0%, #fd5e53 100%);
  border: none;
  border-radius: 2em;
  box-shadow: 0 3px 18px rgba(253,94,83,0.18);
  cursor: pointer;
  transition: background 0.3s, transform 0.15s, box-shadow 0.3s;
  letter-spacing: 0.04em;
  margin: 0.5em 0 1.5em 0;
  outline: none;
}
.announce-btn:hover, .announce-btn:focus {
  background: linear-gradient(90deg, #fd5e53 0%, #f9b600 100%);
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 6px 24px rgba(253,94,83,0.25);
}



/* Shake para el podio */
@keyframes shake-podium {
  0% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.shake-podium {
  animation: shake-podium 0.5s cubic-bezier(.36,.07,.19,.97);
}


@keyframes slide-out-right {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(60px); }
}
@keyframes slide-in-left {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes podium-bounce {
  0% { transform: scale(1); }
  20% { transform: scale(1.1, 0.9); }
  40% { transform: scale(0.95, 1.05); }
  60% { transform: scale(1.04, 0.96); }
  80% { transform: scale(0.98, 1.02); }
  100% { transform: scale(1); }
}
.bounce-podium {
  animation: podium-bounce 0.6s cubic-bezier(.68,-0.55,.27,1.55);
}
.podium-name {
  display: inline-block;
  min-width: 80px;
  transition: color 0.2s;
}
.slide-out-right {
  animation: slide-out-right 0.33s forwards;
}
.slide-in-left {
  animation: slide-in-left 0.33s;
}


#rankingTable tbody tr {
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), background 0.8s;
  z-index: 2;
  position: relative;
}

/* Fila sube de posición */
.row-up {
  background: linear-gradient(90deg, #e0ffd8 0%, #c8ffcb 100%) !important;
  animation: row-up-anim 1.2s;
}
@keyframes row-up-anim {
  0% { background: #baffb8; }
  70% { background: #e0ffd8; }
  100% { background: transparent; }
}

/* Fila baja de posición */
.row-down {
  background: linear-gradient(90deg, #ffd8d8 0%, #ffc8c8 100%) !important;
  animation: row-down-anim 1.2s;
}
@keyframes row-down-anim {
  0% { background: #ffb8b8; }
  70% { background: #ffd8d8; }
  100% { background: transparent; }
}

/* Estilos para botones de añadir medallas */
.add-medal-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 5px;
  margin-left: 5px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 0.7;
}

.add-medal-btn:hover {
  opacity: 1;
  transform: scale(1.2);
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Estilos específicos para cada tipo de medalla */
.add-medal-btn[data-type="gold"] {
  color: #ffd700;
}

.add-medal-btn[data-type="silver"] {
  color: #c0c0c0;
}

.add-medal-btn[data-type="bronze"] {
  color: #cd7f32;
}

/* Ajuste para la tabla */
#rankingTable td {
  position: relative;
  padding: 10px 5px !important;
}

/* Medallas grandes en la tabla */
.medal-table {
  font-size: 2.2rem;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  padding: 0.1em 0.3em;
  text-align: center;
}
/* Animación para medallas del podio y tabla */
.medal-animate {
  animation: medal-bounce-spin 0.9s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes medal-bounce-spin {
  0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
  20% { transform: scale(1.2,0.8) rotate(-20deg); filter: brightness(1.3); }
  40% { transform: scale(0.95,1.1) rotate(20deg); filter: brightness(1.1); }
  60% { transform: scale(1.1,0.95) rotate(-10deg); filter: brightness(1.2); }
  80% { transform: scale(1.05,1.05) rotate(10deg); filter: brightness(1.3); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

/* --------- SCROLLBAR ULTRA MINIMALISTA --------- */
/* ===== ANIMACIÓN DE ELIMINACIÓN: POP-SHRINK ===== */
@keyframes row-pop-shrink {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  18% {
    transform: scale(1.13, 1.07);
    opacity: 1;
  }
  70% {
    transform: scale(0.92, 0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
.row-pop-shrink {
  animation: row-pop-shrink 0.44s cubic-bezier(.7,0,.9,1) forwards !important;
  will-change: transform, opacity;
  z-index: 10;
}

.dust-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  width: 5px;
  height: 5px;
  opacity: 1;
  background: var(--dust-color, #bbb);
  animation: dust-disperse 0.8s cubic-bezier(.3,.7,.5,1) forwards;
  will-change: transform, opacity;
}
@keyframes dust-disperse {
  0% {
    opacity: 1;
    transform: translate(0,0) scale(1);
    filter: blur(0px);
  }
  80% {
    opacity: 0.7;
    filter: blur(0.5px);
  }
  100% {
    opacity: 0;
    transform:
      translate(var(--dust-x, 0px), var(--dust-y, 60px))
      scale(var(--dust-scale, 1.7));
    filter: blur(2px);
  }
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease-out;
}

.modal h2 {
  color: var(--orange);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  color: #aaa;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover,
.close:focus {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

.export-import-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.export-section, .import-section {
  padding: 20px;
  margin: 10px 0;
  border-radius: 5px;
  background-color: #e0f0e0;  /* Light green background - more visible */
  border: 1px solid #b0d0b0;  /* Slightly darker green border */
  box-shadow: 0 2px 6px rgba(0,100,0,0.1);  /* Subtle green-tinted shadow */
}

.export-section h3, .import-section h3 {
  color: var(--blue);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.export-section p, .import-section p {
  color: #555;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

#confirmImportBtn {
  background-color: #4CAF50;
}

#confirmImportBtn:hover {
  background-color: #45a049;
}

#selectedFileName {
  color: #666;
  font-style: italic;
  margin-left: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.row-deleting { position: relative; overflow: visible; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: #88888855 transparent;
  max-height: 500px;
  overflow-y: auto;
}

/* Webkit (Chrome, Edge, Safari) */
.table-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background-color: #88888888;
  border-radius: 2px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #888888bb;
}

.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Firefox */
@-moz-document url-prefix() {
  .table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #88888855 transparent;
  }
}

.table-scroll table {
  width: 1200px; /* Ajusta este valor si quieres otro ancho fijo */
  min-width: 800px;
  border-collapse: collapse;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
}

.control-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.control-btn, .nav-link {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.6em 1.2em;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
}

.nav-link {
  background: var(--orange);
  padding: 0.6em 1.2em;
}

.control-btn:hover, .nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:hover {
  background: var(--orange);
}

.nav-link:hover {
  background: var(--blue);
  color: white;
}

.control-btn:active, .nav-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#rankingTable {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  :root {
    font-size: 80%;
  }
  
  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    transform: scale(0.95);
    transform-origin: top center;
    margin: 0 auto;
    padding: 0 2px;
  }
  
  #rankingTable {
    width: auto;
    min-width: 100%;
    margin: 0 auto;
    table-layout: auto;
    border-collapse: collapse;
  }
  
  #rankingTable th, #rankingTable td {
    padding: 0.1rem 0.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .btn-small {
    padding: 0.1rem 0.3rem;
    font-size: 0.8rem;
  }
  
  /* Ajuste específico para columnas de medallas */
  .medal-cell {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
  }
  
  /* Ajuste para la columna de posición */
  .position-cell {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
  }
  
  /* Ajuste para la columna de nombre */
  .name-cell {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

#rankingTable th, #rankingTable td {
  padding: 0.8rem;
  text-align: center;
  font-size: 1.1rem;
  color: #333;
}

#rankingTable thead tr {
  background: var(--orange);
  color: var(--white);
  font-weight: bold;
}

#rankingTable tbody tr {
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.25s, transform 0.2s;
}

#rankingTable tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.6);
}

#rankingTable tbody tr:hover {
  background: rgba(255, 204, 128, 0.8);
  transform: scale(1.012);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#rankingTable .icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0.3em 0.5em;
  border-radius: var(--radius);
  transition: background var(--transition);
}

#rankingTable .edit-btn:hover {
  background: rgba(67, 206, 162, 0.8);
}

#rankingTable .delete-btn:hover {
  background: rgba(255, 110, 110, 0.8);
}

.form-section {
  margin-top: 1.5rem;
  background: rgba(255, 204, 128, 0.9);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.form-section h2 {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

#addForm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

#addForm input {
  padding: 0.5em;
  width: 130px;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  font-size: 1em;
  outline: none;
  transition: border-color var(--transition);
}

#addForm input:focus {
  border-color: var(--pink);
}

#addForm button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.6em 1em;
  border-radius: var(--radius);
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background var(--transition), transform var(--transition);
}

#addForm button:hover {
  background: var(--pink);
  transform: translateY(-2px) scale(1.04);
}

/* Podio */
.podium-section {
  text-align: center;
  margin-top: 3rem;
}

.podium-section h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2.5rem;
  color: var(--pink);
  text-shadow: 1px 1px var(--orange);
  margin-bottom: 1.5rem;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
}

.podium-spot {
  text-align: center;
  background: var(--podium-gradient);
  color: var(--blue);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.podium-spot:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.podium-spot.first {
  height: 200px;
  width: 120px;
}

.podium-spot.second {
  height: 180px;
  width: 120px;
}

.podium-spot.third {
  height: 160px;
  width: 120px;
}

.podium-spot p:first-child {
  font-size: 2.8rem;
}

/* ===== MODAL DE CONFIRMACIÓN ===== */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal.show {
  display: flex;
  opacity: 1;
}

.custom-modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  text-align: center;
}

.custom-modal.show .custom-modal-content {
  transform: translateY(0);
}

.custom-modal-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.custom-modal-header h3 {
  margin: 0;
  color: var(--orange);
  font-size: 1.5rem;
}

.custom-modal-body {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.custom-modal-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.6em 1.5em;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-confirm {
  background-color: #4CAF50;
  color: white;
}

.btn-confirm:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.btn-cancel {
  background-color: #f44336;
  color: white;
}

.btn-cancel:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #333;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-bg);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #e0f7fa 80%, #b2ebf2 100%);
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 1.3rem;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 1.5px 0 #ffe082 inset;
  width: 96%;
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: fadeInModal 0.3s ease-in-out;
  overflow: visible;
}

/* Pelota de playa decorativa */
.palmtree, .modal-ball {
  position: absolute;
  width: 104px;
  height: 104px;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  background: none;
}
.palmtree {
  top: -40px;
  left: -40px;
  animation: palmtree-sway 2.5s cubic-bezier(.7,0,.7,1.4) infinite alternate;
}
.modal-ball {
  right: -60px;
  bottom: -60px;
  animation: ball-bounce 1.8s cubic-bezier(.6,.2,.7,1.5) infinite alternate;
}
@keyframes ball-bounce {
  0% { transform: translateY(0) scale(1); }
  60% { transform: translateY(-16px) scale(1.10); }
  100% { transform: translateY(0) scale(1); }
}
.palmtree {
  top: -20px;
  left: -20px;
  animation: palmtree-sway 2.5s cubic-bezier(.7,0,.7,1.4) infinite alternate;
}
.modal-ball {
  right: -20px;
  bottom: -20px;
  animation: ball-bounce 1.8s cubic-bezier(.6,.2,.7,1.5) infinite alternate;
}
.palmtree svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 16px #a2e49a88);
  animation: palmtree-sway 2.5s cubic-bezier(.7,0,.7,1.4) infinite alternate;
}
@keyframes palmtree-sway {
  0% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
  100% { transform: rotate(-5deg); }
}


/* Botones veraniegos */
.modal-content button, .modal-content .btn {
  background: linear-gradient(90deg, #ffe082 60%, #ffd54f 100%);
  color: #b85d00;
  border: none;
  border-radius: 2em;
  padding: 0.7em 2.1em;
  font-size: 1.1em;
  margin-top: 1.1em;
  box-shadow: 0 2px 8px rgba(255,193,7,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.modal-content button:hover, .modal-content .btn:hover {
  background: linear-gradient(90deg, #ffd54f 60%, #ffe082 100%);
  transform: scale(1.07);
}

/* Inputs veraniegos */
.modal-content input, .modal-content select {
  border-radius: 1.2em;
  border: 1.5px solid #ffe082;
  padding: 0.6em 1em;
  margin: 0.5em 0;
  font-size: 1.08em;
  background: #fffbe7;
  box-shadow: 0 1px 3px #ffe08244 inset;
  transition: border 0.2s;
}
.modal-content input:focus, .modal-content select:focus {
  border-color: #ffd54f;
  outline: none;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: var(--orange);
  cursor: pointer;
}

.close:hover {
  color: var(--pink);
}

#editForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

#editForm input {
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

#editForm input:focus {
  border-color: var(--pink);
}

#editForm button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background var(--transition), transform var(--transition);
}

#editForm button:hover {
  background: var(--pink);
  transform: translateY(-2px) scale(1.05);
}