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

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
}

/* Background (placeholder) */
body {
  /* Use any placeholder image you want */

  background: url('bg.jpg') no-repeat center center / cover;
  background-size: cover;
  color: #ffffff;
  position: relative;
}

/* Header */
.header {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Main Content */
.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  text-align: center;
  padding: 0 1rem;
}

.main-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 700px;
  margin: 0.5rem auto 2rem auto;
}

/* Drop Circle */
.drop-circle {
  margin: 0 auto 2rem auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}

.drop-circle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.drop-text {
  text-align: center;
  pointer-events: none;
  font-size: 0.9rem;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* "Calcular" Button */
.calculate-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  background-color: #5DC560;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.calculate-btn:hover {
  background-color: #49a44c;
}

/* Steps Section */
.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.step-box {
  max-width: 200px;
  text-align: center;
}

.step-bigbox {
  max-width: 300px;
  text-align: center;
}

.step-number {
  background-color: #5DC560;
  color: #fff;
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-bignumber {
  background-color: #5DC560;
  color: #fff;
  margin: 0 auto 0.5rem auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  padding: 10px 30px;
}

/* Loader Overlay */
.loader-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-title {
    font-size: 1.5rem;
  }

  .drop-circle {
    width: 150px;
    height: 150px;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }
}

.error-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.error-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
}

.error-content i {
    color: #dc3545;
    font-size: 48px;
    margin-bottom: 20px;
}

.error-content h3 {
    color: #333;
    margin-bottom: 15px;
}

.error-content p {
    color: #666;
    margin-bottom: 20px;
}

.error-content button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.error-content button:hover {
    background: #c82333;
}

a {
    color: white;
    text-decoration: underline;
}

a:hover {
    color: #f0f0f0;
}

.return-container {
  text-align: center;
  margin-top: 100px;
}

.return-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: white;
  color: #333;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.return-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.return-button i {
  font-size: 18px;
}