/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  padding: 20px;
  margin: 0;
  text-align: center;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

/* HEADER */
.site-header, header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

.logo-link {
  text-decoration: none;
  color: #00aaff;
  font-weight: bold;
  font-size: 28px;
}

.logo-link:hover {
  color: #0088cc;
}

/* BLOQUE DE SEMANA ACTUAL */
.week-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: repeating-linear-gradient(
    135deg,
    #1c1c1c,
    #1c1c1c 10px,
    #1a1a1a 10px,
    #1a1a1a 20px
  );
  color: #00eaff;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
}

.week-hero h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.week-number {
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
}

.week-dates {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #bffcff;
}

.week-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.week-navigation button {
  background: none;
  border: none;
  color: #ff7000;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px 15px;
  transition: all 0.2s ease;
}

.week-navigation button:hover {
  color: #ffaa33;
  transform: scale(1.1);
  text-shadow: 0 0 5px rgba(255, 112, 0, 0.5);
}

.week-navigation button:focus {
  outline: none;
}

.week-info {
  transition: opacity 0.3s ease;
  opacity: 1;
}

.week-info.fade-out {
  opacity: 0;
}

/* CONVERTIDOR */
.converter-container {
  background: #fff;
  border: 1px solid #ddd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

input, select {
  padding: 12px;
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.convert-button {
  margin-top: 20px;
  padding: 12px 30px;
  font-size: 20px;
  background-color: #00aaff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.convert-button:hover {
  background-color: #0088cc;
}

.result-display {
  margin-top: 30px;
  font-size: 28px;
  font-weight: bold;
  color: #0077cc;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  word-break: break-word;
}

.formula-box {
  margin-top: 20px;
  background-color: #fff8e1;
  padding: 10px;
  font-size: 16px;
  border-left: 5px solid #ffcc00;
  text-align: left;
}

section {
  margin-bottom: 40px;
}

h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

h2 {
  font-size: 26px;
  margin-bottom: 15px;
}

/* CALCULADORAS */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
  margin-bottom: 60px;
}

.tool-card {
  border: 1px solid #ddd;
  padding: 14px 16px;
  border-radius: 6px;
  background: #f9f9f9;
  transition: background 0.25s;
}

.tool-card a {
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
  display: block;
}

.tool-card:hover {
  background: #f0f0f0;
}

/* CATEGORÍAS */
.category-list {
  list-style: disc inside;
  padding-left: 10px;
  margin-bottom: 20px;
}

.category-list li {
  margin-bottom: 8px;
  color: #333;
}

/* FAQ */
.faq p, .faq-question, .faq-answer {
  margin-bottom: 15px;
  color: #444;
  font-size: 18px;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* FOOTER */
.footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px; /* Subido de 15px a 20px */
  border-top: 1px solid #ddd; /* Cambiado de #ccc a #ddd */
  font-size: 18px; /* Se queda en 14px, igual que convert-seconds */
  color: #888;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  body {
    font-size: 15px;
    padding: 10px;
  }

  .logo-link {
    font-size: 1.6rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .week-number {
    font-size: 4rem;
  }

  .week-dates {
    font-size: 1rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .week-navigation {
    gap: 15px;
  }

  .week-navigation button {
    font-size: 1.3rem;
  }

  input, select {
    font-size: 18px;
  }
}