/* DAE - Minimalist Styles */
/* Off-white & Orange - No Gradients */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Fredoka es la fuente principal, con fallbacks a fuentes similares de Google Fonts y finalmente fuentes del sistema */
  font-family: 'Montserrat', sans-serif;
  background: #f5f5f0;
  min-height: 100vh;
  padding: 20px;
  font-size: 22px;
}

p {
  font-size: 1em;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fafaf8;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

header {
  background: #ffffff;
  color: #3a506b;
  padding: 30px;
  text-align: center;
  border-bottom: 2px solid #ff7f50;
}

header .logo {
  max-height: 80px;
  margin-bottom: 15px;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #3a506b;
}

header .subtitle {
  font-size: 1.2em;
  color: #666;
}

nav {
  background: #ffffff;
  padding: 0;
  border-bottom: 1px solid #e0e0e0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  padding: 20px 30px;
  color: #3a506b;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: 3px solid transparent;
}

nav ul li a:hover {
  background: #fff5f0;
}

nav ul li a.active {
  border-bottom-color: #ff7f50;
  color: #ff7f50;
}

.lang-btn {
  padding: 8px 15px;
  background: #f0f0f0;
  color: #3a506b;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9em;
  transition: background 0.2s;
  border: 1px solid #e0e0e0;
}

.lang-btn:hover {
  background: #e8e8e8;
}

.lang-btn.active {
  background: #ff7f50;
  color: white;
  border-color: #ff7f50;
}

.content {
  padding: 40px;
  min-height: 500px;
}

.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h2 {
  font-size: 2em;
  color: #3a506b;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1em;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 30px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature {
  background: #ffffff;
  padding: 30px;
  border-radius: 4px;
  border-left: 3px solid #ff7f50;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.feature h3 {
  color: #3a506b;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.feature p {
  color: #666;
  line-height: 1.6;
}

.email-format {
  background: #3a506b;
  color: #ff7f50;
  padding: 20px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 1.5em;
  text-align: center;
  margin: 30px 0;
  letter-spacing: 2px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: #ff7f50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  margin: 10px;
  transition: background 0.2s;
  border: none;
}

.btn:hover {
  background: #e06b40;
}

.btn-secondary {
  background: #999;
}

.btn-secondary:hover {
  background: #777;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-box {
  background: #ff7f50;
  color: white;
  padding: 30px;
  border-radius: 4px;
  text-align: center;
}

.stat-box .number {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-box .label {
  font-size: 1.1em;
  opacity: 0.95;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #3a506b;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.2s;
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff7f50;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.alert {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

footer {
  background: #ffffff;
  color: #3a506b;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.code-block {
  background: #3a506b;
  color: #ff7f50;
  padding: 20px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  overflow-x: auto;
  margin: 20px 0;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.step-number {
  background: #ff7f50;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3em;
  margin-right: 20px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  color: #3a506b;
  margin-bottom: 10px;
}

.step-content p {
  color: #666;
  line-height: 1.6;
}

/* Pricing card */
.pricing-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 30px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.pricing-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  border: 2px solid #ff7f50;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

table th {
  background: #f5f5f0;
  color: #3a506b;
  font-weight: 600;
}

table tr:hover {
  background: #fafaf8;
}

/* File upload styling */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.file-upload-btn {
  padding: 12px 24px;
  background: #ff7f50;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95em;
}

.file-upload-btn:hover {
  background: #e06b40;
}

#file-name {
  font-style: italic;
}

#file-size.error {
  color: #e74c3c;
  font-weight: 600;
}

/* ==================== */
/* MOBILE RESPONSIVE     */
/* ==================== */

@media screen and (max-width: 768px) {
  /* Body - reduce padding and font size */
  body {
    padding: 10px;
    font-size: 16px;
  }

  /* Container */
  .container {
    border-radius: 0;
  }

  /* Header */
  header {
    padding: 15px;
    text-align: center;
  }

  header .logo {
    max-height: 50px;
    margin-bottom: 10px;
  }

  header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
  }

  header .subtitle {
    font-size: 0.9em;
  }

  /* Header flex layout */
  header > div:first-child {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  header > div:first-child > div:first-child {
    flex-direction: column;
    gap: 10px;
  }

  header > div:last-child {
    flex-wrap: wrap;
    justify-content: center;
  }

  header > div:last-child > span {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 0.85em;
  }

  /* Navigation - horizontal scroll for many items */
  nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 5px;
  }

  nav ul li a {
    padding: 15px 12px;
    font-size: 0.85em;
    white-space: nowrap;
  }

  /* Language buttons */
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.8em;
  }

  /* Content area */
  .content {
    padding: 20px 15px;
    min-height: auto;
  }

  /* Hero section */
  .hero {
    padding: 20px 10px;
  }

  .hero h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1em;
    line-height: 1.6;
  }

  /* Email format example */
  .email-format {
    font-size: 1em;
    padding: 15px 10px;
    letter-spacing: 1px;
    word-break: break-all;
  }

  /* Stats - single column */
  .stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-box {
    padding: 20px;
  }

  .stat-box .number {
    font-size: 2em;
  }

  .stat-box .label {
    font-size: 0.95em;
  }

  /* Features - single column */
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .feature {
    padding: 20px;
  }

  .feature h3 {
    font-size: 1.1em;
  }

  /* Buttons */
  .btn {
    padding: 12px 25px;
    font-size: 0.9em;
    margin: 5px;
  }

  /* Forms */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  /* Alerts */
  .alert {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  /* Steps */
  .step {
    flex-direction: column;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1em;
    margin-right: 0;
    margin-bottom: 15px;
  }

  /* Code blocks */
  .code-block {
    font-size: 0.8em;
    padding: 15px;
    word-break: break-all;
  }

  /* Tables - horizontal scroll */
  table {
    font-size: 0.85em;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table th,
  table td {
    padding: 8px;
    white-space: nowrap;
  }

  /* Footer */
  footer {
    padding: 15px 10px;
    font-size: 0.85em;
  }

  /* File upload */
  .file-upload-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .file-upload-btn {
    width: 100%;
    text-align: center;
  }
}

/* Extra small devices (phones in portrait) */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  header h1 {
    font-size: 1.3em;
  }

  header .subtitle {
    font-size: 0.8em;
  }

  nav ul li a {
    padding: 12px 8px;
    font-size: 0.75em;
  }

  .content {
    padding: 15px 10px;
  }

  .hero h2 {
    font-size: 1.3em;
  }

  .email-format {
    font-size: 0.9em;
    padding: 12px 8px;
  }

  .feature {
    padding: 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85em;
    width: 100%;
    margin: 5px 0;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    font-size: 0.9em;
  }
}
