/* Estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Hero */
.hero {
  position: relative;
  height: 48.75vh;
  min-height: 375px;
  max-height: 525px;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.8);
  transition: transform 8s ease;
}

.hero:hover .hero-image {
  transform: scale(1.05);
}

.hero-content {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  width: 100%;
  padding: 0 20px;
  z-index: 10;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Contenido principal con 2/3 - 1/3 */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.main-column, .sidebar {
  min-width: 0;
}

.content-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e74c3c;
}

.section-text {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Imágenes */
.img-container-center {
  text-align: center;
  margin: 2rem 0;
}

.img-centered {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border: 1px solid #eee;
}

.img-caption {
  font-style: italic;
  color: #666;
  margin-top: 8px;
  font-size: 0.9em;
}

/* Sidebar */
.sidebar-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
}

.sidebar-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.sidebar-list a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar-list a:hover {
  color: #e74c3c;
}

.image-placeholder {
  width: 100%;
  height: 200px;
  background: #eee;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* Submenú interno */
.content-submenu {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.content-submenu a {
  padding: 0.5rem 1rem;
  background: #f0f0f0;
  border-radius: 20px;
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.content-submenu a:hover, 
.content-submenu a.active {
  background: #e74c3c;
  color: white;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  margin-top: 15px;
}

.footer-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

/* Selector de idiomas */
.language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.language-flag {
  width: 30px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid #ddd;
}

.language-flag:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: 55vh;
    min-height: 350px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .language-selector {
    top: 10px;
    right: 10px;
  }

  .main-content {
    grid-template-columns: 1fr;
  }
}

 /* Estilo específico para centrar y ajustar las imágenes del contenido principal */
  .main-column img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

