/* Paleta y fuentes */
:root {
  --main-purple: #5d4bb3;
  --secondary-pink: #9a2373;
  --soft-lilac: #8078d9;
  --white: #ffffff;
  --font: 'Segoe UI', sans-serif;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: #333;
  margin: 0;
  /* Nuevo margen general */
  padding: 0 5vw;
  /* Puedes ajustar 5vw según el espacio deseado */
}

/* HEADER moderno */
.main-header {
  background: #fff;
  color: var(--main-purple);
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(93, 75, 179, 0.07);
  border-radius: 0 0 1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 48px;
  transition: transform 0.2s;
}

.logo img:hover {
  transform: scale(1.06) rotate(-2deg);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--main-purple);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.07rem;
  position: relative;
  transition: color 0.3s;
  padding: 0.2rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--secondary-pink);
  transition: width 0.3s;
  border-radius: 2px;
}

nav a:hover,
nav a.active {
  color: var(--secondary-pink);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* HERO / BANNER */
.hero {
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--main-purple);
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.hero-btn {
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  margin-top: 2em;
}

.hero-image {
  flex: 1 1 400px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(93, 75, 179, 0.15);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
}

/* Badge gratis */
.free-badge {
  display: inline-block;
  background-color: var(--secondary-pink);
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin: 0.5rem 0 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Secciones generales */
section {
  padding: 2rem;
  margin-bottom: 2rem;
}

section h2 {
  color: var(--main-purple);
  margin-bottom: 1rem;
}

/* Tabla Temario */
.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

table th {
  background-color: var(--soft-lilac);
  color: white;
  font-weight: 600;
}

.highlight-row {
  background-color: #f6efff;
  font-weight: 600;
  color: var(--main-purple);
}

.table-section {
  background: #f6efff;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(93, 75, 179, 0.07);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}

.table-title {
  color: var(--main-purple);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.syllabus-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(93, 75, 179, 0.06);
}

.syllabus-table th {
  background: linear-gradient(90deg, var(--main-purple), var(--soft-lilac));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.1rem 1rem;
  border: none;
  text-align: left;
  letter-spacing: 0.5px;
}

.syllabus-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #ede7fa;
  color: #3f3b3e;
  font-size: 1rem;
  background: #fff;
}

.syllabus-table tr:nth-child(even) td {
  background: #f6f3fd;
}

.syllabus-table tr:last-child td {
  border-bottom: none;
}

.syllabus-table tr:hover td {
  background: #ede7fa;
  transition: background 0.2s;
}

/* Conferencias */
.speakers-section {
  background: #f6efff;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(93, 75, 179, 0.07);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}

.section-title {
  color: var(--main-purple);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.section-estudiantes {
  color: var(--main-purple);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.speaker-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(93, 75, 179, 0.06);
  padding: 1.5rem 1rem;
  max-width: 260px;
  text-align: center;
  transition: transform 0.3s;
  flex: 1 1 220px;
}

.speaker-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.speaker-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--soft-lilac);
}

.speaker-card h3 {
  color: var(--main-purple);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.speaker-card p {
  color: #444;
  font-size: 0.98rem;
  margin-bottom: 0.8rem;
}

.speaker-date {
  display: inline-block;
  background: var(--secondary-pink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* Botones */
.btn {
  display: inline-block;
  background: var(--main-purple);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.3s;
  margin-top: 2em;
}

.btn:hover {
  background: var(--soft-lilac);
}

.btn-llamativo {
  background: linear-gradient(90deg, var(--secondary-pink), var(--main-purple));
  box-shadow: 0 4px 16px rgba(154,35,115,0.15);
  font-size: 1.08rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  border: none;
  outline: none;
  animation: pulse 1.5s infinite;
  color: #fff;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(154,35,115,0.25);}
  70% { box-shadow: 0 0 0 10px rgba(154,35,115,0);}
  100% { box-shadow: 0 0 0 0 rgba(154,35,115,0);}
}

/* Footer */
footer {
  background: #fff;
  color: var(--main-purple);
  padding: 2.5rem 1rem 1.2rem 1rem;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -2px 12px rgba(93, 75, 179, 0.08);
  margin-top: 3rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-direction: row;
}

.footer-logo img {
  height: 48px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--main-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--secondary-pink);
}

.social {
  display: flex;
  gap: 1.2rem;
}

.social a {
  color: var(--main-purple);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.social a:hover {
  color: var(--secondary-pink);
  text-decoration: underline;
}

.social a img {
  width: 28px;
  height: 28px;
  filter: none;
  transition: filter 0.2s;
}

.social a:hover img {
  filter: brightness(0.7) sepia(1) hue-rotate(-30deg) saturate(3);
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.98rem;
  opacity: 0.85;
  color: #8078d9;
}

/* Sección dividida */
.split-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin: 3rem 0;
}

.split-card {
  background: #fff;
  border: 2px solid var(--soft-lilac);
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(93, 75, 179, 0.08);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  flex: 1 1 320px;
  max-width: 380px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.split-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(154,35,115,0.10);
  border-color: var(--main-purple);
}

.split-card img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1.2rem;
}

.split-title {
  color: var(--main-purple);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.split-desc {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Agrega esto a tu styles.css para mejorar la presentación */
.info-highlight {
  font-size: 1.13rem;
  /*font-weight: 600;*/
  margin-bottom: 1em;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.info-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.2em;
  font-size: 1.13rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.info-label {
  color: #9a2373;
  font-weight: 700;
  margin-bottom: 1.2em;
  font-size: 1.13rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.info-strong {
  color: #9a2373;
  font-weight: 700;
}

.info-highlighted {
  background: #f6efff;
  color: #5d4bb3;
  border-radius: 1em;
  padding: 0.8em 1.2em;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.rules-list {
  padding-left: 1.2em;
  margin-bottom: 0;
}
.rules-list > li {
  margin-bottom: 1em;
}


/* RESPONSIVE DESIGN */


@media (max-width: 1100px), (max-width: 800px), (max-width: 600px), (max-width: 400px) {
  body,
  .course-info-block,
  .split-card,
  .table-section,
  .speakers-section,
  .footer-copy,
  .hero-subtitle,
  .hero-invite,
  h1, .hero-title,
  h2, .split-title, .section-title, .table-title,
  h3, h4, h5, h6,
  nav a,
  .btn,
  .highlight-text,
  .info-label,
  .info-strong,
  .speaker-date,
  .syllabus-table th,
  .syllabus-table td,
  ul, ol, li,
  p, span, a {
    font-size: 0.8rem !important;
  }

  section,
  .course-info-section,
  .split-section,
  .table-section,
  .speakers-section {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
    margin-bottom: 0.7rem !important;
  }

.footer-links {
    display: none !important;
  }

  .main-header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 0.7rem 0.5rem !important;
  }

  .logo {
    margin-right: 0.6rem;
  }

  nav {
    flex-direction: row !important;
    gap: 1rem !important;
    width: auto !important;
    justify-content: flex-end !important;
  }
  .logo img {
    height: 28px !important;
    max-width: 90px !important;
  }

  .split-section {
    margin: 0 !important;
  }

}

@media (max-width: 1100px) {
  .hero-content,
  .speakers,
  .split-section,
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .hero-content {
    padding: 0;
  }

  .hero-image,
  .hero-text {
    flex: unset;
    width: 100%;
    max-width: 600px;
  }

  .split-card {
    max-width: 90vw;
    width: 100%;
  }

  .speakers {
    gap: 1.5rem;
  }

   h1, .hero-title {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .hero-text h1 {
  font-size: 1.5rem;
  color: var(--main-purple);
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 1.5rem;
}

}

@media (max-width: 800px) {
  body {
    padding: 0 2vw;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1vw;
    gap: 1rem;
  }

  nav {
    gap: 1.2rem;
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 2.5rem 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .table-section,
  .speakers-section {
    padding: 1.5rem 0.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

   h1, .hero-title {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .hero-text h1 {
  font-size: 1.5rem;
  color: var(--main-purple);
  margin-bottom: 0.5rem;
}

  .hero-text p {
    font-size: 0.8rem;
    color: #444;
    margin-bottom: 1.5rem;
}
}

@media (max-width: 600px) {
  body,
  .course-info-block,
  .split-card,
  .table-section,
  .speakers-section,
  .footer-copy,
  .hero-subtitle,
  .hero-invite,
  h1, .hero-title,
  h2, .split-title, .section-title, .table-title,
  h3, h4, h5, h6,
  nav a,
  .btn,
  .highlight-text,
  .info-label,
  .info-strong,
  .speaker-date,
  .syllabus-table th,
  .syllabus-table td,
  ul, ol, li,
  p, span, a {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.1rem;
  }
  .hero-subtitle,
  .hero-invite {
    font-size: 0.9rem;
  }
  .footer-copy {
    font-size: 0.8rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
    color: var(--main-purple);
    margin-bottom: 0.5rem;
  }
}

.quienes-somos {
  width: 700px;
}

navbar {
  position: relative;
}
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  position: absolute;
  top: 18px; /* Ajusta según tu header */
  right: 18px;
  height: 36px;
  width: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  background: #fff; /* Opcional: mejora contraste */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(154,35,115,0.08);
}
.nav-toggle-label span {
  display: block;
  height: 4px;
  width: 24px;
  background: #9a2373;
  border-radius: 2px;
  margin: 3px 0;
  transition: all 0.3s;
}
.nav-links {
  display: flex;
  gap: 1em;
}
@media (max-width: 800px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 40px;
    right: 0;
    width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1em;
    z-index: 1;
  }
  .nav-toggle:checked + .nav-toggle-label + .nav-links {
    display: flex;
  }
  .nav-toggle-label {
    display: flex;
  }
}

@media (max-width: 768px) {
    .hero-image img {
      max-width: 70%;
    }
  }

  @media (max-width: 480px) {
    .hero-image img {
      max-width: 80%;
    }
  }