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

/* body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.conversor-container {
  max-width: 600px;
  width: 100%;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  animation: fadeIn 0.5s ease-out;
} */

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

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #3d3d3d 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #666;
  font-size: 1.1em;
}

/* Conversion Tab Styles */
.conversion-tab {
  margin: 20px 0 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tab-toggle {
  width: 100%;
  padding: 18px 25px;
  background: linear-gradient(135deg, #3d3d3d 0%, #43e3ff 100%);
  color: white;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.tab-toggle:hover {
  background: linear-gradient(135deg, #550909 0%, #ebebeb 100%);
  transform: scale(1.02);
}

.arrow {
  transition: transform 0.3s;
  font-size: 1.2em;
}

.arrow.rotated {
  transform: rotate(180deg);
}

.conversion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.conversion-panel.open {
  max-height: 700px;
}

.conversion-content {
  padding: 30px;
}

.conversion-content h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.4em;
}

.info-message {
  background-color: #e3f2fd;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 25px;
  text-align: center;
  border-left: 4px solid #2196f3;
}

.info-message p {
  color: #1976d2;
  font-size: 0.95em;
  font-weight: 500;
}

.conversion-row {
  margin-bottom: 20px;
}

.conversion-row label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.95em;
}

.conversion-row input {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1.1em;
  transition: all 0.3s;
  background-color: white;
}

.conversion-row input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.conversion-row input[type="number"] {
  -moz-appearance: textfield;
}

.conversion-row input[type="number"]::-webkit-outer-spin-button,
.conversion-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.conversion-actions {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}

.btn-convert {
  flex: 1;
  background: linear-gradient(135deg, #3d3d3d 0%, #43e3ff 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-convert:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-convert:active {
  transform: translateY(0);
}

.conversion-result {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  text-align: center;
  font-size: 1.3em;
  font-weight: 700;
  color: #2c3e50;
  border: 2px dashed #667eea;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.conversion-result.highlight {
  animation: pulse 0.5s ease-in-out;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #4caf50;
}

.exchange-note {
  text-align: center;
  margin-top: 15px;
  color: #666;
  font-style: italic;
}

/* Info Section */
.info-section {
  display: grid;
  /* grid-template-columns: 6fr 6fr; */
  gap: 50px;
  margin: 10px 0;
}

.info-card {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid #14e2fd;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.info-card p {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  color: #666;
  font-size: 0.9em;
}

/* Animaciones */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 25px;
  }

  h1 {
    font-size: 2em;
  }

  .conversion-actions {
    flex-direction: column;
  }

  .info-section {
    grid-template-columns: 1fr;
  }

  .conversion-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.8em;
  }

  .tab-toggle {
    padding: 15px 20px;
    font-size: 1em;
  }

  .conversion-row input {
    padding: 12px 15px;
  }

  .btn-convert {
    padding: 12px;
  }
}
