* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #f4f4f4;
  --accent-color: #d4af37;
  --text-dark: #2c2c2c;
  --text-light: #ffffff;
  --board-dark: #769656;
  --board-light: #eeeed2;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);

  background-color: var(--secondary-color);

  background-image: url("img/fondoDeAjedrezTablero.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 500px;

  background-blend-mode: soft-light;
  background-color: rgba(255, 255, 255, 0.9);
}

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
  color: var(--text-light);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
}
.foto {
  width: 55px;
  border-radius: 30px;
  margin: 0px 20px 0px 0px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  height: 80vh;
}

.hero-content h1 {
  font-size: 2.5rem;
}

.hero-content p {
  font-size: 1.3rem;
}
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("img/fondoDeAjedrez.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(212, 175, 55, 0.03) 50px,
    rgba(212, 175, 55, 0.03) 100px
  );
  pointer-events: none;
}
.hero::after {
  content: "♔ CLUB PHILIDOR ♕ APRENDÉ ♔ CLUB PHILIDOR ♔ ";
  position: absolute;
  top: 51%;
  left: 0;
  transform: translateY(-40%);
  font-size: 12rem;
  font-weight: 700;
  color: rgba(242, 255, 0, 0.08);
  white-space: nowrap;
  animation: scrollText 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes scrollText {
  0% {
    transform: translateX(0) translateY(-50%);
  }
  100% {
    transform: translateX(-50%) translateY(-50%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease-out;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
  font-weight: 900;
  letter-spacing: 3px;
  animation: slideIn 1.5s ease-out;
}

.hero-content p {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  font-weight: 300;
  animation: slideIn 1.8s ease-out;
}

.animated-text {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
  background-color: #f4d03f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Secciones */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
section.hero {
  padding: 0;
  max-width: 100%;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Horarios Generales - Diseño de Tablero de Ajedrez */
.schedule-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.1);
  max-width: 800px;
  margin: 0 auto;
  border: 3px solid var(--accent-color);
  position: relative;
  overflow: hidden;
}

.schedule-card::before {
  content: "♔";
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 150px;
  color: rgba(212, 175, 55, 0.1);
  transform: rotate(15deg);
}

.schedule-card::after {
  content: "♜";
  position: absolute;
  bottom: -30px;
  left: -30px;
  font-size: 150px;
  color: rgba(212, 175, 55, 0.1);
  transform: rotate(-15deg);
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  transition: all 0.4s;
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(118, 150, 86, 0.2) 0%,
    rgba(238, 238, 210, 0.2) 50%,
    rgba(118, 150, 86, 0.2) 100%
  );
}

.schedule-item::before {
  content: "♟";
  position: absolute;
  left: 10px;
  font-size: 1.5rem;
  color: var(--accent-color);
  opacity: 0;
  transition: all 0.4s;
}

.schedule-item:hover::before {
  opacity: 1;
  left: 15px;
}

.schedule-item:last-child {
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.schedule-item:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  padding-left: 3rem;
  border-color: var(--accent-color);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
  transform: translateX(10px);
}

.schedule-day {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-time {
  color: #eeeed2;
  font-weight: 600;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.class-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.1);
  transition: all 0.4s;
  border: 3px solid var(--accent-color);
  position: relative;
  overflow: hidden;
}

.class-card::before {
  content: "♚";
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 180px;
  color: rgba(212, 175, 55, 0.1);
  transform: rotate(15deg);
}

.class-card::after {
  content: "♞";
  position: absolute;
  bottom: -40px;
  left: -30px;
  font-size: 150px;
  color: rgba(212, 175, 55, 0.08);
  transform: rotate(-20deg);
}

.class-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4);
  border-color: #f4d03f;
}

.class-card h3 {
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.class-card h3 i {
  color: var(--accent-color);
  font-size: 2rem;
}

.class-level {
  background: linear-gradient(
    90deg,
    rgba(118, 150, 86, 0.3) 0%,
    rgba(238, 238, 210, 0.2) 50%,
    rgba(118, 150, 86, 0.3) 100%
  );
  padding: 1.8rem;
  margin: 1.2rem 0;
  border-radius: 15px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.class-level::before {
  content: "♟";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent-color);
  opacity: 0;
  transition: all 0.4s;
}

.class-level:hover::before {
  opacity: 1;
  left: 15px;
}

.class-level:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
  border-color: var(--accent-color);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  padding-left: 3rem;
}

.class-level h4 {
  color: var(--accent-color);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.class-level p {
  color: #eeeed2;
  font-weight: 600;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  display: inline-block;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Contacto - Diseño Oscuro */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.contact-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.1);
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--accent-color);
}

.contact-card::before {
  content: "♕";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  color: rgba(212, 175, 55, 0.08);
  transform: rotate(15deg);
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 45px rgba(212, 175, 55, 0.4);
  border-color: #f4d03f;
}

.contact-card i {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  background: rgba(212, 175, 55, 0.1);
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  transition: all 0.4s;
  position: relative;
  z-index: 1;
}

.contact-card:hover i {
  transform: rotate(360deg) scale(1.1);
  background: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
}

.contact-card h3 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-card a {
  color: #eeeed2;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.3);
  margin: 0.3rem 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-card a:hover {
  color: var(--primary-color);
  background: var(--accent-color);
  transform: scale(1.05);
  border-color: var(--accent-color);
}

.contact-card p {
  color: #eeeed2;
  font-weight: 500;
  line-height: 1.8;
}

/* Mapa */
.map-container {
  margin-top: 3rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  height: 450px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 3px solid var(--accent-color);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.map-placeholder::before {
  content: "♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜";
  position: absolute;
  top: 20px;
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.2);
  letter-spacing: 20px;
}

.map-placeholder i {
  font-size: 4rem;
  color: var(--accent-color);
  background: rgba(212, 175, 55, 0.1);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.map-placeholder h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  text-align: center;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .schedule-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .schedule-item:hover {
    padding-left: 2rem;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

footer::before {
  content: "♔ ♕ ♖ ♗ ♘ ♙";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.1);
  letter-spacing: 30px;
}

footer p {
  color: #eeeed2;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-branding {
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.social-links a {
  color: var(--accent-color);
  font-size: 2rem;
  transition: all 0.4s;
  background: rgba(212, 175, 55, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.social-links a:hover {
  color: var(--primary-color);
  background: var(--accent-color);
  transform: translateY(-10px) rotate(360deg) scale(1.2);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
  border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .schedule-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .schedule-item:hover {
    padding-left: 2rem;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .social-links {
    gap: 1.5rem;
  }

  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }

    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--primary-color);
      flex-direction: column;
      padding: 1rem;
      gap: 1rem;
      transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s;
    }

    .nav-links.active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
    }

    .hero-content h1 {
      font-size: 2.5rem;
    }

    .hero-content p {
      font-size: 1rem;
    }

    section h2 {
      font-size: 2rem;
    }

    .schedule-item {
      flex-direction: column;
      gap: 0.5rem;
    }
  }
}
