:root {
  --primary-color: #2C3E50;
  --background-color: #f8f9fa;
  --text-color: #333;
  --container-width: 800px;
  --accent-color: #3498db;
  --rainbow-gradient: linear-gradient(
    to right,
    #FF3636,
    #FF6700,
    #ECB409,
    #1DC664,
    #0A6FFF,
    #D248FF
  );
  --rainbow-gradient-hover: linear-gradient(
    to right,
    #ff2121,
    #ff5600,
    #d9a408,
    #1ab358,
    #0960e6,
    #c133ff
  );
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sora', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  padding: 20px;
}

/* Layout components */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container .container {
  box-shadow: none;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Buenard', serif;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: justify;
  line-height: 1.8;
}

/* Navigation */
nav {
  margin-bottom: 2rem;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav li {
  list-style: none;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-color);
}

.button, 
a.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.button:hover,
a.button:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

li {
  margin: 1rem 0;
}

/* Cards and Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Audio Player Components */
.audio-container {
  width: 100%;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(to right, rgba(44, 62, 80, 0.05), rgba(52, 152, 219, 0.05));
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.audio-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rainbow-gradient);
}

.audio-container:hover::before {
  background: var(--rainbow-gradient-hover);
}

/* Non-accessible version styling */
.texto-no-accesible .audio-container::before {
  background: #3498db;  /* Using the accent color for a nice solid look */
}

.texto-no-accesible .audio-container:hover::before {
  background: #2980b9;  /* Slightly darker on hover */
}

.texto-no-accesible .progress-bar {
  background: #3498db;  /* Match the top border color */
}

.custom-audio-player {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.play-button {
  background: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 1rem;
  padding: 0;
}

.play-button i {
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button:hover {
  transform: scale(1.05);
  background: #3a506b;
}

.time-display {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  color: var(--primary-color);
  min-width: 100px;
  text-align: center;
}

.progress-container {
  flex-grow: 1;
  height: 8px;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: rgba(52, 152, 219, 0.1);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: var(--rainbow-gradient);
  --progress: 1;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: white;
  transform-origin: right;
  transition: transform 0.1s linear;
  transform: scaleX(var(--progress));
}

.native-audio {
  display: none;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Language Specific */
span[lang="en"] {
  font-style: italic;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 1.5rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }

  p {
    font-size: 1rem;
    text-align: left;
  }

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

  .audio-container {
    padding: 1rem;
  }

  .time-display {
    font-size: 0.8rem;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .audio-container {
    padding: 0.75rem;
  }

  .audio-controls {
    gap: 0.5rem;
  }

  .play-button {
    width: 36px;
    height: 36px;
  }

  .button,
  a.button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
} 