/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root variables for consistent colors */
:root {
  --primary-bg: #1a3c5e; /* Dark blue for header/footer */
  --secondary-bg: #2a4d7a; /* Slightly lighter dark blue for estudios */
  --text-container-bg: #3b604d; /* Dark green for text containers */
  --page-bg: #2e4a3d; /* Dark green for page background */
  --accent-bg: #f0f2f5; /* Soft white for section backgrounds */
  --text-color: #ffffff; /* White text */
  --accent-color: #4a90e2; /* Light blue for highlights */
}

/* Body */
body {
  background-color: var(--page-bg);
  color: #ffffff;
  font-family: 'Source Sans Pro', Arial, sans-serif; /* Stellar-like font */
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  background-color: var(--primary-bg);
  padding: 15px 0;
}

.navbar-brand, .nav-link {
  color: var(--text-color) !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

.navbar-toggler {
  border-color: var(--text-color);
}

/* Header */
header {
  background-color: var(--primary-bg);
  background-blend-mode: overlay;
  background-image: linear-gradient(rgba(26, 60, 94, 0.8), rgba(26, 60, 94, 0.8)), url('images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 80vh; /* Larger hero section like Stellar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  position: relative;
}

header .content {
  padding: 20px;
  animation: fadeIn 1s ease-in;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

header .lead {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Section styles */
.section {
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.section-title {
  color: var(--primary-bg);
  margin-bottom: 40px;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Section backgrounds */
#nosotros {
  background-color: var(--accent-bg);
  color: #333;
}

#estudios {
  background-color: var(--secondary-bg);
  color: var(--text-color);
}

#musica {
  background-color: var(--accent-bg);
  color: #333;
}

/* Text container for subsections */
.text-container {
  background-color: var(--text-container-bg);
  padding: 30px;
  border-radius: 10px;
  color: var(--text-color);
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-in;
}

.text-container h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-weight: bold;
  text-align: left;
}

.text-container p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: justify; /* Justified text as requested */
}

/* Responsive images */
.img-side {
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* YouTube iframes */
iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background-color: var(--primary-bg);
  color: var(--text-color);
  padding: 30px 20px;
  text-align: center;
}

footer p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

footer img {
  transition: opacity 0.3s ease;
}

footer img:hover {
  opacity: 0.8;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
  header {
    min-height: 60vh;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header .lead {
    font-size: 1.2rem;
  }

  .section {
    padding: 40px 10px;
  }

  .section-title {
    font-size: 2rem;
  }

  .text-container {
    padding: 20px;
  }

  .text-container h3 {
    font-size: 1.5rem;
  }

  .text-container p {
    font-size: 1rem;
    text-align: justify;
  }
}

@media (max-width: 576px) {
  header {
    min-height: 50vh;
  }

  header h1 {
    font-size: 2rem;
  }

  header .lead {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .text-container {
    padding: 15px;
  }

  .text-container h3 {
    font-size: 1.3rem;
  }

  .text-container p {
    font-size: 0.9rem;
    text-align: justify;
  }
}