@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&family=Nunito:wght@400;600;700&display=swap');

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

:root {
  --charcoal: #2f3437;
  --purple: #6a1b9a;
  --ochre: #e67e22;
  --mint: #98c1a9;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #1a1a1a;
}

html, body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--white);
  color: var(--charcoal);
  line-height: 1.72;
  font-size: 16px;
}

h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 5rem;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

p {
  font-size: 1.0625rem;
  line-height: 1.72;
  margin-bottom: 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: var(--charcoal);
  color: var(--white);
}

header.scrolled a, header.scrolled .nav-link {
  color: var(--white) !important;
}

header.scrolled .brand {
  color: var(--white);
}

.navbar {
  padding: 1rem 120px;
}

.brand {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand:hover {
  color: var(--purple);
}

.nav-link {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ochre);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

section {
  padding: 160px 120px;
  animation: fadeInSection 0.5s ease-in-out;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--purple) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/hero-maca.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section h1 {
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
  font-size: 1.5rem;
  color: var(--mint);
  font-weight: 300;
}

.content-section {
  background-color: var(--white);
}

.content-section:nth-child(even) {
  background: linear-gradient(135deg, var(--charcoal) 0%, rgba(106, 27, 154, 0.1) 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--mint);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 32px rgba(106, 27, 154, 0.2);
  background: linear-gradient(135deg, var(--purple) 0%, rgba(230, 126, 34, 0.1) 100%);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  list-style: none;
}

.card-text li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.card-text li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--ochre);
  font-weight: bold;
}

.image-section {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.image-section img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.image-section-text {
  flex: 1;
}

.disclaimer-block {
  background-color: rgba(106, 27, 154, 0.08);
  border-left: 4px solid var(--purple);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 4px;
}

.disclaimer-block h3 {
  color: var(--purple);
  margin-bottom: 1rem;
}

.disclaimer-block p {
  font-size: 1rem;
  line-height: 1.8;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  border: 1px solid var(--mint);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--purple);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--ochre);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: -1;
}

.btn:hover {
  transform: scale(1.05);
}

.btn:hover:before {
  width: 300px;
  height: 300px;
}

.btn-secondary {
  background-color: var(--ochre);
}

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

.btn-text {
  color: var(--purple);
  background-color: transparent;
  border-bottom: 2px solid var(--purple);
  padding: 0.5rem 0;
}

.btn-text:hover {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}

footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 3rem 120px;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--mint);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid var(--mint);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.educational-message {
  background-color: var(--mint);
  color: var(--charcoal);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--charcoal);
  color: var(--white);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
}

.cookie-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.cookie-btn-accept {
  background-color: var(--purple);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: #7d259c;
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-btn-reject:hover {
  background-color: var(--white);
  color: var(--charcoal);
}

.cookie-btn-learn {
  background-color: var(--ochre);
  color: var(--white);
}

.cookie-btn-learn:hover {
  background-color: #d66a0a;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  section {
    padding: 80px 2rem;
  }

  .navbar {
    padding: 1rem;
  }

  .nav-link {
    margin-left: 0.5rem;
    font-size: 0.85rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .image-section {
    flex-direction: column;
  }

  .image-section img {
    max-width: 100%;
  }

  footer {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cookie-banner.show {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}
