body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fdfaf6;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lang-switcher button {
  background-color: #ffffff20;
  border: 1px solid #fff;
  color: white;
  margin-left: 0.5rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.lang-switcher button:hover {
  background-color: #ffffff40;
}

nav {
  background-color: #34495e;
  text-align: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0.5rem 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

main {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 3rem;
}

h2 {
  color: #2c3e50;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
}

.proyecto-img {
  margin-top: 1rem;
  padding: 1rem;
  border: 2px dashed #aaa;
  text-align: center;
  color: #666;
  background-color: #fffbe6;
}

footer {
  background-color: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* IA Generativa */
.ai-demo {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-demo input {
  padding: 0.5rem;
  font-size: 1rem;
}

.ai-demo button {
  padding: 0.5rem;
  background-color: #2c3e50;
  color: white;
  border: none;
  cursor: pointer;
}

.ai-demo button:hover {
  background-color: #34495e;
}

.output-box {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f2f2f2;
  border: 1px dashed #aaa;
  min-height: 60px;
  font-style: italic;
  color: #333;
}


.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tiktok-btn {
  display: inline-block;
  background-color: #010101;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 0.5rem;
  transition: background 0.3s;
}

.tiktok-btn:hover {
  background-color: #111;
}

.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #25d366;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
}

.whatsapp-btn svg {
  pointer-events: none;
}
