* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #000;
  background-color: #ffffff;
  scroll-behavior: smooth;
}

#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.3s, box-shadow 0.3s;
  background-color: transparent;
}

#main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
  transition: transform 0.3s;
}
.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

#main-header.scrolled nav a {
  color: #000000;
}

nav a:hover {
  color: #6c87a1;
}

.btn-header {
  background-color: #000000;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-header:hover {
  background-color: #6c87a1;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #f6f6e9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #6c87a1;
}

.btn-secondary {
  background-color: #ffffff;
  color: #000000;
}

.btn-secondary:hover {
  background-color: #6c87a1;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}


/* ===== FOOTER ===== */
.footer {
  background-color: #16181b;
  color: #f6f6e9;
  padding: 60px 40px 30px;
  font-family: 'Open Sans', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-column p {
  font-size: 0.95rem;
  color: #f6f6e9;
  margin-bottom: 15px;
}

.footer-link {
  color: #f6f6e9;
  text-decoration: underline;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #6c87a1;
}

.footer-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-icons img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}

.footer-icons img:hover {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #999999;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.storytelling-section {
  background-color: #ffffff;
  padding: 100px 0;
}

.storytelling-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.storytelling-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: nowrap; /* ✅ evita que se monten */
}

.storytelling-text {
  width: 50%;
  color: #333;
}

.storytelling-text h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 20px;
}

.storytelling-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 30px;
}

.btn-cta {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: #444;
}

.storytelling-video {
  width: 50%;
  position: relative;
  padding-bottom: 28.125%; /* 16:9 ajustado para 50% de ancho */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* 📱 Responsive */
@media (max-width: 900px) {
  .storytelling-content {
    flex-direction: column;
    gap: 40px;
  }

  .storytelling-text,
  .storytelling-video {
    width: 100%;
  }

  .storytelling-video {
    padding-bottom: 56.25%; /* normaliza 16:9 en móvil */
  }

  .storytelling-section .container {
    padding: 0 20px;
  }
}

.servicios-section {
  background-color: #ffffff;
  padding: 100px 0;
}

.servicios-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.servicios-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: nowrap;
}

.servicios-imagen {
  width: 45%;
}

.servicios-imagen img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.servicios-texto {
  width: 55%;
}

.servicios-texto h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 30px;
}

.servicios-lista {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.servicio-card {
  background-color: #f8f8f8; /* ✅ gris claro */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* ✅ sombra suave difusa */
  padding: 25px 30px;
  transition: all 0.3s ease;
  border: 1px solid #eaeaea; /* sutil borde gris */
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); /* sombra más intensa al pasar */
}

.servicio-card h3 {
  font-size: 1.3rem;
  color: #111;
  margin-bottom: 10px;
}

.servicio-card p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .servicios-content {
    flex-direction: column;
    gap: 40px;
  }

  .servicios-imagen,
  .servicios-texto {
    width: 100%;
  }

  .servicios-section .container {
    padding: 0 20px;
  }
}

.experiencia-section {
  background-color: #ffffff;
  padding: 100px 0;
}

.experiencia-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.experiencia-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 80px;
  position: relative;
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: #e0e0e0;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-content {
  background-color: #f8f8f8;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  border: 1px solid #eaeaea;
}

.timeline-item.left .timeline-content {
  margin-right: 30px;
}

.timeline-item.right .timeline-content {
  margin-left: 30px;
}

.timeline-content h3 {
  color: #111;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-content p,
.timeline-content ul {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

/* Nodos circulares en la línea */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 25px;
  right: -10px;
  width: 20px;
  height: 20px;
  background-color: #999;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::before {
  left: -10px;
  right: auto;
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    margin-bottom: 40px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    margin: 0;
  }
}


/* ===========================
   META FINAL (fin de curso)
=========================== */
.meta-final {
  text-align: center;
  margin-top: 100px;
  position: relative;
}

.meta-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.meta-titulo {
  font-size: 1.8rem;
  color: #111;
  margin-bottom: 50px;
}

.meta-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
}

.meta-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  width: 400px;
  padding: 30px 25px;
  text-align: left;
  transition: all 0.3s ease;
}

.meta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.meta-card h4 {
  font-size: 1.3rem;
  color: #000;
  margin-bottom: 10px;
}

.meta-card p {
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .meta-cards {
    flex-direction: column;
    gap: 25px;
  }

  .meta-card {
    width: 100%;
  }
}

.cta-section {
  background: radial-gradient(circle at center, rgba(0,0,0,0.25) 0%, #ffffff 80%);
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid #eaeaea;
}

.cta-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.cta-section h2 {
  font-size: 2.2rem;
  color: #111;
  margin-bottom: 15px;
}

.cta-subtitle {
  color: #555;
  font-size: 1.15rem;
  margin-bottom: 60px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.btn-cta {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 16px 36px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: #444;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .cta-section .container {
    padding: 0 20px;
  }

  .btn-cta {
    width: 100%;
    padding: 14px;
  }
}

