/* Castillo de Ilusiones - CSS Styles */
/* Theme: Optical illusions, Spanish castle architecture, mystery and depth */

:root {
  /* Color Palette - Optical Illusions Theme */
  --primary-dark: #1a0f0a; /* Deep burgundy-black */
  --primary-gold: #d4af37; /* Antique gold */
  --secondary-purple: #4a0e4e; /* Deep purple */
  --accent-blue: #2c5282; /* Mystical blue */
  --illusion-pink: #c53030; /* Illusion red */
  --shadow-gray: #2d3748; /* Stone gray */
  --light-bg: #f7fafc; /* Mist white */
  --text-dark: #1a202c; /* Castle stone */
  --text-light: #e2e8f0; /* Moonlight */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--secondary-purple) 50%,
    var(--accent-blue) 100%
  );
  --gradient-gold: linear-gradient(45deg, var(--primary-gold) 0%, #ffd700 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --blur-effect: blur(10px);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--gradient-primary);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--illusion-pink);
  text-shadow: 0 0 10px rgba(197, 48, 48, 0.5);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 15, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary-gold);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-gold);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-gold);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  }
  to {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 20px var(--primary-gold);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  margin: 3rem 0;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.image-placeholder {
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
  background: var(--gradient-primary);
  border: 2px solid var(--primary-gold);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--primary-gold),
    transparent
  );
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.image-placeholder p {
  position: relative;
  z-index: 2;
  font-weight: 600;
}

.image-placeholder small {
  position: relative;
  z-index: 2;
  opacity: 0.8;
  font-size: 0.9rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.primary {
  background: var(--gradient-gold);
  color: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.secondary {
  background: var(--glass-bg);
  color: var(--text-light);
  border: 2px solid var(--primary-gold);
  backdrop-filter: blur(10px);
}

.secondary:hover {
  background: var(--primary-gold);
  color: var(--primary-dark);
}

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Game Concept Section */
.game-concept {
  background: linear-gradient(
    135deg,
    var(--secondary-purple) 0%,
    var(--accent-blue) 100%
  );
  color: var(--text-light);
}

.game-concept h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--primary-gold);
}

.concept-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.concept-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: var(--glass-bg);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-gold);
}

.concept-image img,
.audience-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.stat-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Mechanics Section */
.mechanics {
  background: var(--light-bg);
}

.mechanics h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mechanic-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.mechanic-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-gold);
}

.mechanic-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mechanic-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Audience Section */
.audience {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.audience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.audience-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.audience-list li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Features Section */
.features {
  background: var(--light-bg);
}

.features h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-gold);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

/* Screenshots Section */
.screenshots {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.screenshots h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--primary-gold);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.screenshot-item {
  background: var(--glass-bg);
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

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

.screenshot-caption {
  padding: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  background: var(--light-bg);
}

.testimonials h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
  color: var(--primary-gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.testimonial-author strong {
  color: var(--accent-blue);
  display: block;
}

.testimonial-author span {
  color: var(--shadow-gray);
  font-size: 0.9rem;
}

/* FAQ Section */
.faq {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.faq h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--primary-gold);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  background: var(--glass-bg);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(212, 175, 55, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--text-light);
  opacity: 0.9;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Subscription Section */
.subscription {
  background: linear-gradient(
    135deg,
    var(--illusion-pink) 0%,
    var(--secondary-purple) 100%
  );
  color: var(--text-light);
  text-align: center;
}

.subscription-content {
  max-width: 600px;
  margin: 0 auto;
}

.subscription h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-gold);
}

.subscription p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.subscription-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  text-align: left;
}

.form-group input[type="email"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--primary-gold);
  border-radius: 8px;
  background: var(--glass-bg);
  color: var(--text-light);
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.form-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  transform: scale(1.2);
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.subscription-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-section h4 {
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--shadow-gray);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 1rem;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 2px solid var(--primary-gold);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.accept {
  background: var(--primary-gold);
  color: var(--primary-dark);
}

.decline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.cookie-link {
  color: var(--primary-gold);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .concept-grid,
  .audience-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mechanics-grid,
  .features-grid,
  .testimonials-grid,
  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .subscription-form {
    align-items: stretch;
  }

  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .cookie-banner,
  .hamburger {
    display: none !important;
  }
}
