/* CSS RESET & VARIABLES */
:root {
  --primary: #f19023;
  --dark: #222;
  --light: #f4f4f4;
  --text: #333;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
html {
  scroll-behavior: smooth; /* Enables smooth scrolling */
}
body {
  color: var(--text);
  background-color: #fff;
  padding-bottom: 60px; /* Space for fixed top menu */
}
/* FIXED TOP MENU */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company-logo {
  width: 150px;
  height: 70px;
  margin-left: 20px;
}

#top-nav ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  margin: 0;
}
#top-nav li {
  flex: 1;
  text-align: center;
  margin: 0 15px;
  flex-basis: max-content;
}
#top-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
  border-radius: 50px;
}

.active-link {
  background-color: var(--primary);
  color: white;
  border: 20px;
}
#top-nav a:hover {
  transform: scale(1.1);
  background-color: var(--primary);
  color: white;
  border: 20px;
}
.lang-selector {
  display: flex;
  align-items: center;
  font-family: sans-serif;
  font-size: 14px;
}

.lang-selector a {
  color: var(--light); /* Color del enlace */
  text-decoration: none;
  text-transform: uppercase;
}

.lang-selector a:hover {
  color: var(--primary);
  font-weight: bold;
}

.lang-selector .active {
  color: var(--light); /* Color del idioma actual (desactivado) */
  font-weight: bold;
}

.lang-selector .separator {
  margin: 0 5px;
  color: #ccc;
}

/* SECTION PADDING */
section {
  padding: 5rem 10%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--dark);
}
/* 1. HERO SECTION */
#hero {
  /* Using a real image of Mikulov from Unsplash */
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/ideatorium.webp") center/cover no-repeat;
  color: white;
  text-align: center;
  align-items: center;
}
h1 {
  color: white;
  font-size: 14px;
  font-weight: normal;
}
#hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  margin-top: 20%;
}
#hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}
.cta-btn {
  background-color: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 30px;
  transition: 0.3s;
}
.cta-btn:hover {
  background-color: white;
  color: var(--primary);
}
/* 2. ABOUT US SECTION (2-Column Flexbox) */
#about {
  background-color: var(--light);
}
.about-container {
  display: flex;
  gap: 3rem;
  align-items: center;
}
.about-text {
  flex: 1;
}
.about-text p {
  text-align: justify;
  margin: 15px 0;
  font-size: 1.1rem;
}
.about-image {
  flex: 1;
  background: url("../img/ideatorium.webp") center/cover;
  height: 400px;
  border-radius: 10px;
}
/* 3. COURSES & EVENTS SECTION (CSS Grid) */
#events {
  background-color: #fff;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--light);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.card h3 {
  margin-bottom: 15px;
}
.card:hover {
  transform: translateY(-10px);
}
.card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
/* 4. PRICING SECTION (Highlighted Grid Layout) */
#pricing {
  background-color: var(--dark);
  color: white;
}
#pricing h2 {
  color: white;
}
.pricing-card {
  background: #333;
  padding: 3rem 2rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #444;
}
.pricing-card.popular {
  background: var(--primary);
  transform: scale(1.05);
  border: none;
}
.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}
.price-list {
  list-style-type: none;
  margin: 5px 0;
}
.price-list li:before {
  content: "\2713 ";
  text-align: left;
  margin-right: 3px;
  font-weight: bold;
}
.price-description {
  margin-bottom: 3px;
}
/* 5. CONTACT US SECTION ( Info Layout) */
#contact {
  background-color: var(--light);
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

iframe {
  width: 600px;
  height: 450px;
  margin: 1 auto;
}

/* FOOTER */
footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 3rem 1rem 5rem 1rem; /* Extra bottom padding so menu doesn't cover */
}
.social-icons {
  margin-top: 1rem;
}
.social-icons a {
  color: white;
  font-size: 2rem;
  margin: 0 1rem;
  transition: 0.3s;
}
.social-icons a:hover {
  color: var(--primary);
}

/* Responsive Design */

@media (max-width: 768px) {
  /* Styles for mobile phones */
  .about-container,
  .contact-container {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .pricing-card.popular {
    transform: scale(1);
  }

  input#menu {
    display: none;
  }

  #menu + ul {
    transition: transform 2s ease-in-out;
  }
  #menu:not(:checked) + ul {
    display: block;
  }

  /* Transición del botón a X */
  label:has(+ #menu:not(:checked) + ul) > span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -1px);
  }
  label:has(+ #menu:not(:checked) + ul) > span:nth-child(2) {
    width: 0%;
    opacity: 0;
  }
  label:has(+ #menu:not(:checked) + ul) > span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 1px);
  }

  #top-nav ul {
    display: none;
  }

  nav input[type="checkbox"],
  nav label {
    text-align: center;
    font-size: 32px;
    color: white;
    display: flow;
  }
  #top-nav input {
    opacity: 0;
  }

  header {
    /* display: flex; */
    align-content: space-around;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; /*30px;*/
    height: 24px; /*21px;*/
    cursor: pointer;
    margin-right: 10px;
    caret-color: transparent;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: left center;
    background-color: white;
  }
  iframe {
    width: 75%;
    height: 100%;
  }
  .about-container {
    display: grid;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Styles for tablets */
  nav input[type="checkbox"],
  nav label {
    display: none;
  }
}

@media (min-width: 1024px) {
  /* Styles for desktop screens */
  nav input[type="checkbox"],
  nav label {
    display: none;
  }
}
