:root {
  --primary: #a67c00;
  --secondary: #ffc107;
  --light: #faf3e0;
  --dark: #333;
  --natural: #8b6b3d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

header {
  background-color: var(--secondary);
  color: var(--dark);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

header img {
  height: 50px;
  width: auto;
}

header h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 3px 0;
  transition: 0.3s;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/img/tablas/Tabla_Cortes_Ajedrez_Sur_Side.png") no-repeat center center/cover;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 60px;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  text-align: center;
}

h3 {
  color: var(--natural);
  text-align: center;
}

section > p {
  text-align: center;
  max-width: 800px;
  margin: 20px auto;
}

.button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  margin-top: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}

.feature-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 400px;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card ul {
  text-align: left;
  padding-left: 20px;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.testimonials-section {
  margin-bottom: 60px;
}

.testimonials {
  background-color: var(--secondary);
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.testimonial-card img {
  border-radius: 8px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  text-align: center;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary);
  text-align: center;
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: var(--secondary);
  margin-top: 0;
  font-size: 1.3rem;
}

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

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary);
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  font-size: 24px;
  margin-right: 10px;
}

.whatsapp-text {
  font-family: "Inter", sans-serif;
}

/* MEDIA QUERIES PARA RESPONSIVIDAD */

@media (max-width: 768px) {
  /* Menú hamburguesa visible en móvil */
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }

  nav li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  nav a {
    display: block;
    width: 100%;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 10px;
  }

  section {
    padding: 20px 15px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    max-width: 100%;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    max-width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .whatsapp-contact {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-link {
    padding: 10px 15px;
  }

  .whatsapp-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  header img {
    height: 40px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .button {
    padding: 10px 20px;
    font-size: 14px;
  }
}