html, body {
  margin: 0;
  padding: 0;
  height: auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
}

.goes-page {
  display: grid;
  grid-template-rows: auto auto auto; /* Cabeza, Cuerpo, Pie */
  min-height: auto;
  height: auto;
  width: 100%;
  max-width: 65%;
  margin: 0 auto;
  padding: 5px 15px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .goes-page {
    max-width: 100% !important;
  }
}

/* Cabecera */
.top-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.goes-title {
  color: #1a2b4b; font-size: 1.5rem; margin: 5px 0 10px 0;
  text-align: center; font-weight: 800;
}

.goes-controls {
  width: 100%; display: flex; justify-content: center; gap: 15px;
  margin-bottom: 5px; flex-wrap: wrap;
}

.goes-control { flex: 1; min-width: 280px; max-width: 500px; }
.goes-label { font-size: 0.75rem; font-weight: 700; color: #5b6b8c; text-transform: uppercase; margin-bottom: 4px; }

/* Dropdown Styles */
.goes-dropdown .Select-control { border-radius: 10px; border: 1px solid #dce0e8; height: 40px; display: flex; justify-content: space-between; align-items: center; }
.goes-dropdown .Select-value-label, .goes-dropdown .Select-placeholder { line-height: 38px; padding-left: 10px; }
.goes-dropdown .Select-arrow-zone { width: 35px; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.goes-dropdown .Select-menu-outer { z-index: 99999; animation: slideDownFade 0.2s ease-out forwards; }

/* Imagen (Elástica y centrada) */
.middle-section {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.goes-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8ecf5;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.goes-card-header {
  flex: 0 0 auto;
  text-align: center;
  margin-bottom: 5px;
}

.goes-card-title {
  font-weight: 800;
  color: #213a63;
  font-size: 1.1rem;
  text-shadow: none; 
}
.goes-card-subtitle { font-size: 0.85rem; color: #6b778d; text-shadow: 0 0 10px rgba(255,255,255,0.8); }

#frame-img {
  flex: 1 1 0%;             /* No borrar % (no es redundante) */
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Pie de página */
.bottom-section {
  width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  z-index: 100;
  background: white;
}

.goes-btn-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 5px; }
.goes-btn { background: #f2f6fb; border: 1px solid #dbe6f5; border-radius: 50px; padding: 8px 16px; color: #24446e; font-weight: 700; cursor: pointer; }
.goes-btn:hover { background: #e7f0ff; }
.goes-btn-primary { background: #2f6fed; color: #fff; border: none; }
#wrapper-slider { width: 100%; padding: 0 10px; }

@keyframes slideDownFade { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .goes-controls { flex-direction: column; } }