/* -----------------------------------
   ACADEMIA BDSM - ESTILOS PRINCIPALES
----------------------------------- */

/* Tipografía principal */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #FAF8F4;
  color: #1A1A1A;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* -----------------------------------
   HEADER
----------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(250, 248, 244, 0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}

header.scrolled {
  background-color: #737F7A; /* Gris helado  */
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}



header img {
  height: 48px;
}

nav a {
  text-decoration: none;
  color: #1A1A1A;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #A52424;
}

/* -----------------------------------
   HERO SECTION
----------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  padding: 0 1rem;
  background: linear-gradient(rgba(26,26,26,0.6), rgba(26,26,26,0.6)),
              url('https://images.unsplash.com/photo-1556888397-a581ab7c6506?auto=format&fit=crop&w=1200&q=80') 
              center/cover no-repeat;
  color: #FAF8F4;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: #E9E4DE;
}

.btn {
  background-color: #A52424;
  color: #FAF8F4;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #8E1F1F; /* más oscuro, mejor contraste */
  transform: scale(1.03);
}

/* -----------------------------------
   SECCIONES
----------------------------------- */
section {
  padding: 5rem 2rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #A52424;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* -----------------------------------
   BENEFICIOS
----------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.benefit:hover {
  transform: translateY(-5px);
  background-color: #7F7F7F;
}

.benefit h3 {
  color: #4E2E67;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
  background: #1A1A1A;
  color: #E8E5E0;
  text-align: center;
  padding: 2rem 1rem;
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  nav a {
    margin-left: 1rem;
  }

  header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

    /* -----------------------------------
       🌙 MODO OSCURO AUTOMÁTICO
    ----------------------------------- */
    @media (prefers-color-scheme: dark) {
      body {
        background-color: #1A1A1A;
        color: #FAF8F4;
      }

      header {
        background-color: #121212;
        box-shadow: 0 2px 6px rgba(255,255,255,0.05);
      }

      nav a {
        color: #FAF8F4;
      }

      nav a:hover {
        color: #C9B298;
      }

      .benefit {
        background-color: #2A2A2A;
        color: #FAF8F4;
      }

      footer {
        background-color: #0E0E0E;
        color: #C9B298;
      }

    .btn {
      background-color: #A52424;
      color: #FAF8F4;
      padding: 0.8rem 1.8rem;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn:hover {
      background-color: #7e1f1f;
      transform: scale(1.05);
    }

}
