* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #eef2f3, #dfe9f3);
  color: #333;
}

header {
  background: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h2 { font-weight: 600; }

.header-logo {
  height: 45px;
  width: auto;
  max-width: 150px;
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  cursor: pointer;
  margin: 5px 10px;
  text-decoration: none;
  color: white;
  font-weight: 300;
  transition: 0.3s;
}

nav a:hover {
  color: #1abc9c;
}

.section {
  display: none;
  padding: 40px 20px;
  animation: fadeIn 0.4s ease;
}

.active { display: block; }

.container {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

h1, h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  line-height: 1.4;
}

h2 {
  font-size: 26px;
  margin-bottom: 30px;
  border-bottom: 3px solid #1abc9c;
  padding-bottom: 15px;
}

h3, h4, h5 {
  color: #2c3e50;
  font-size: 18px;
  margin-top: 0;
}

.form-content label {
  display: block;
  margin-top: 14px;
  color: #2c3e50;
  font-weight: 600;
}

p { 
  margin-bottom: 15px;
  color: #555;
  line-height: 1.8;
}

input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  margin: 12px 0;
  border-radius: 10px;
  border: 2px solid #ecf0f1;
  transition: all 0.3s ease;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  background-color: #f9fbfc;
}

input:focus, textarea:focus, select:focus {
  border-color: #1abc9c;
  outline: none;
  box-shadow: 0 0 12px rgba(26, 188, 156, 0.25);
  background-color: #ffffff;
}

button {
  padding: 14px 28px;
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 188, 156, 0.4);
  background: linear-gradient(135deg, #16a085 0%, #138d75 100%);
}

button:active {
  transform: translateY(-1px);
}

/* Estilos para radio buttons y checkboxes */
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
  cursor: pointer;
  accent-color: #1abc9c;
}

label {
  display: block;
  margin: 16px 0 8px 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

label.required-field::after {
  content: " *";
  color: #d32f2f;
  font-weight: 700;
}

label strong {
  color: #1abc9c;
  font-weight: 700;
}

label input[type="radio"],
label input[type="checkbox"] {
  margin-right: 10px;
  vertical-align: middle;
  cursor: pointer;
  width: auto;
  height: auto;
}

.form-content label,
.form-content legend,
.form-content p,
.form-content option,
.form-content input,
.form-content textarea,
.form-content select {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
}

.form-content h2,
.form-content h3,
.form-content h4,
.form-content h5 {
  font-family: 'Poppins', sans-serif;
  color: #1abc9c;
}

.form-content button {
  font-family: 'Poppins', sans-serif;
}

input[type="file"] {
  width: 100% !important;
  margin: 10px 0;
  padding: 10px;
}

/* Form Sections & Styling */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #ecf0f1;
}

.form-section:last-child {
  border-bottom: none;
}

.form-content h3,
.form-content h4,
.form-content h5 {
  color: #1abc9c;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.form-content h3::before,
.form-content h4::before,
.form-content h5::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #1abc9c, #16a085);
  border-radius: 2px;
  margin-right: 10px;
}

fieldset {
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f9fbfc 0%, #f5faf9 100%);
}

fieldset legend {
  padding: 0 10px;
  color: #2c3e50;
  font-weight: 700;
  font-size: 14px;
}

/* Language & Program Selector Buttons */
.language-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.lang-btn {
  flex: 1;
  min-width: 150px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ecf0f1, #dfe9f3);
  color: #2c3e50;
  border: 2px solid #1abc9c;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.lang-btn:hover {
  background: linear-gradient(135deg, #1abc9c, #16a085);
  color: white;
  box-shadow: 0 6px 16px rgba(26, 188, 156, 0.3);
  transform: translateY(-2px);
}

/* Estilos para textarea */
textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Poppins', sans-serif;
}

/* Estilos para listas */
ul {
  margin-left: 20px;
  list-style: none;
}

ul li {
  padding: 8px 0;
  color: #555;
  line-height: 1.7;
  position: relative;
  padding-left: 25px;
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1abc9c;
  font-weight: bold;
  font-size: 16px;
}

/* Estilos para enlaces */
a {
  color: #1abc9c;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

a:hover {
  color: #16a085;
  text-decoration: underline;
}

/* Línea separadora */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1abc9c, transparent);
  margin: 30px 0;
  border-radius: 1px;
}

/* Team/Staff Cards */
.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #ecf0f1;
}

.team-card {
  text-align: center;
  background: linear-gradient(135deg, #f9fbfc 0%, #f5faf9 100%);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 400px;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(26, 188, 156, 0.15);
}

.team-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 3px solid #1abc9c;
}

.team-card h4 {
  color: #2c3e50;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
}

.team-card .role {
  color: #1abc9c;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card .contact-info {
  text-align: left;
  background: white;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #ecf0f1;
  font-size: 12px;
}

.team-card .contact-info p {
  margin: 6px 0;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-card .contact-info a {
  color: #1abc9c;
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.mindara-logo-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f9fbfc 0%, #ffffff 100%);
  border: 3px solid #1abc9c;
  cursor: pointer;
  min-height: 400px;
}

.mindara-logo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(26, 188, 156, 0.3);
}

.mindara-logo-card a {
  text-decoration: none;
}

.mindara-logo-card .mindara-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: none;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 10px;
    width: 100%;
    justify-content: space-around;
  }

  .container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 14px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Estilos para la sección de inicio */
.inicio-content {
  margin-bottom: 40px;
}

.header-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: space-between;
}

.header-welcome h1 {
  margin: 0;
  flex: 1;
}

.welcome-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.intro-columns {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.intro-column {
  flex: 1;
  min-width: 0;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #1abc9c;
}

.intro-column.castellano {
  background: #f0f9ff;
  order: 1;
}

.intro-column.euskera {
  background: #f0fff0;
  order: 2;
}

.intro-column h2 {
  color: #1a3a52;
  margin-bottom: 10px;
  font-size: 18px;
}

.intro-column h3 {
  color: #1abc9c;
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

.intro-column p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 13px;
  text-align: justify;
}

.inicio-text {
  flex: 1;
}

.inicio-text h3 {
  color: #1abc9c;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 16px;
}

.inicio-image {
  flex: 0 0 350px;
  text-align: center;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border: 2px dashed #1abc9c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.mindara-foto {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  display: none;
}

.img-text {
  color: #999;
  font-style: italic;
  font-size: 14px;
}

.proyectos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.proyecto-comparativo {
  margin: 30px 0;
}

.proyecto-fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.proyecto {
  background: #f0faf8;
  padding: 20px;
  border-left: 4px solid #1abc9c;
  border-radius: 8px;
}

.proyecto h3 {
  color: #1abc9c;
  margin-bottom: 10px;
}

.proyecto ul {
  list-style-position: inside;
  color: #555;
}

.proyecto li {
  margin-bottom: 8px;
}

.valores-mision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.valor-item {
  background: linear-gradient(135deg, #f5f9ff 0%, #f0faf8 100%);
  padding: 20px;
  border-radius: 10px;
  border-top: 4px solid #1abc9c;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.valor-item h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.valor-item ul {
  list-style: none;
}

.valor-item li::before {
  content: none;
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.valores-section {
  background: linear-gradient(135deg, #f5f9ff 0%, #f0faf8 100%);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.valores-section h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 18px;
}

.valores-section ul {
  list-style: none;
}

.valores-section li {
  padding: 8px 0;
  color: #555;
  border-bottom: 1px solid rgba(26, 188, 156, 0.2);
}

.valores-section li::before {
  content: none;
}

.valores-section li:last-child {
  border-bottom: none;
}

.valores-mision.euskera .valor-item {
  background: linear-gradient(135deg, #f5f9ff 0%, #f0faf8 100%);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-top: 4px solid #1abc9c;
}

.valores-mision.euskera .valor-item h3 {
  color: #2c3e50;
}

/* Responsive para inicio */
@media (max-width: 768px) {
  header {
    align-items: center;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .container {
    padding: 20px 16px;
  }

  .header-welcome {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .welcome-logo {
    width: 100px;
    height: 100px;
  }

  .inicio-content {
    flex-direction: column;
  }

  .intro-columns {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .intro-column {
    width: 100%;
    padding: 18px;
    border-left: none;
    border-top: 4px solid #1abc9c;
    border-radius: 12px;
    background: #ffffff;
  }

  .intro-column:not(:last-child) {
    margin-bottom: 0;
  }

  .intro-column h2 {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .intro-column h3 {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 14px;
  }

  .intro-column p {
    font-size: 14px;
    text-align: left;
    line-height: 1.7;
  }

  .proyecto-fila,
  .proyectos,
  .valores-mision,
  .valores-grid {
    grid-template-columns: 1fr;
  }

  .proyecto {
    padding: 18px;
    border-left: none;
    border-top: 4px solid #1abc9c;
    border-radius: 12px;
  }

  .proyecto h3 {
    margin-bottom: 12px;
  }

  .proyecto ul {
    padding-left: 18px;
  }
}

@media (max-width: 480px) {
  nav {
    align-items: stretch;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .intro-columns {
    gap: 12px;
    padding: 10px;
  }

  .intro-column {
    padding: 14px;
  }

  .intro-column h2 {
    font-size: 16px;
  }

  .intro-column h3 {
    font-size: 14px;
  }

  .intro-column p {
    font-size: 13px;
  }

  .intro-column {
    border-top-width: 3px;
  }

  .proyecto {
    padding: 16px;
  }

  .container {
    padding: 16px 12px;
  }
}

/* Selector de idioma */
.language-selector {
  display: block !important;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  animation: fadeIn 0.4s ease;
}

.language-selector .container {
  text-align: center;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.language-selector h2 {
  color: white;
  margin-bottom: 30px;
  font-size: 24px;
}

.language-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-btn {
  padding: 15px 40px;
  background: white;
  color: #1abc9c;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s;
  min-width: 150px;
}

.lang-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: #f0faf8;
}

.lang-btn:active {
  transform: translateY(-1px);
}

.form-content {
  animation: fadeIn 0.4s ease;
}
