/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  background: #fafafa;
  color: #1a1a1a;
  padding-top: 80px; /* espacio para header fijo */
}

/* Tipografía fluida con clamp */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1rem; }

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header fijo con menú hamburguesa */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  color: #1a1a1a;
}

/* Menú desktop */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #0066cc;
}

/* Botón hamburguesa (oculto en desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Responsive: móvil */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 2rem 0;
    gap: 1.5rem;
  }
  .nav-menu.active {
    left: 0;
  }
}

/* Tarjetas modernas */
.card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

/* Botones */
.btn {
  display: inline-block;
  background: #0066cc;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.3s, transform 0.1s;
}

.btn:hover {
  background: #004999;
  transform: scale(1.02);
}

/* Formulario moderno */
.form-group {
  margin-bottom: 1.2rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
  transition: border 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #0066cc;
}

/* Pie de página */
.main-footer {
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* Language switcher (versión botones) */
.language-switcher {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.language-switcher .lang-btn {
  background: none;
  border: none;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  color: #333;
  transition: 0.2s;
}
.language-switcher .lang-btn.active {
  font-weight: bold;
  color: #0066cc;
  text-decoration: underline;
}
.language-switcher .lang-sep {
  color: #999;
  margin: 0 0.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .language-switcher {
    margin: 1rem 0 0 0;
    text-align: center;
  }
}

.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.alert.success { background: #d4edda; color: #155724; }
.alert.error { background: #f8d7da; color: #721c24; }