body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
  }
  
  .container {
    max-width: 100%;
    padding: 2rem;
    margin: 0 auto;
  }
  
  /* Teléfonos pequeños */
@media (max-width: 768px) {
    .container {
      padding: 1rem;
    }
  
    h1 {
      font-size: 1.4rem;
    }
  
    nav a {
      display: block;
      margin-bottom: 0.5rem;
    }
  }
  
  /* Tablets */
  @media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
      width: 200px;
    }
  }

  .table-wrapper {
    overflow-x: auto;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
  }

  .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  #mySidebar{
    z-index: 10000;
  }


/* Contenedor principal del sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh; /* altura total de la pantalla */
  background-color: #8e44ad; /* violeta oscuro */
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* scroll si es necesario */
  z-index: 10000;
  padding: 20px 10px;
  box-sizing: border-box;
}


/* Estilo general de los links del sidebar */
/* Links del menú */
.sidebar a {
  display: block;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

/* Hover sobre links */
.sidebar a:hover {
  background-color: #6c3483; /* un poco más oscuro */
}

/* Botón para abrir/cerrar menú */
.openbtn {
  position: fixed;
  top: 16px;
  left: 16px;
  background-color: #8e44ad;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
}

/* Para pantallas chicas, el sidebar puede ocultarse */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }
}




/* === Paleta de colores extendida === */
:root {
  --violeta-claro: #d1c4e9;
  --violeta-suave: #b39ddb;
  --violeta: #7e57c2;
  --violeta-medio: #6a1b9a;
  --violeta-oscuro: #4a148c;
  --violeta-texto: #311b92;

  --blanco: #fdfbff;
  --texto-oscuro: #1a1a1a;
  --fondo: #f3e5f5;
}

/* === Reset básico === */
body {
  font-family: 'Roboto', sans-serif;
  background: var(--fondo);
  color: var(--texto-oscuro);
  margin: 0;
}

header {
  background-color: var(--violeta-medio);
  color: white;
  padding: 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* === Sidebar === */
.sidebar {
  height: 100%;
  width: 260px;
  position: fixed;
  top: 0;
  left: -260px;
  background-color: var(--violeta-medio);
  overflow-x: hidden;
  transition: 0.4s;
  padding-top: 60px;
  z-index: 1000;
}

.sidebar a {
  padding: 12px 24px;
  text-decoration: none;
  font-size: 1rem;
  color: white;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  background-color: var(--violeta-oscuro);
}

.sidebar .closebtn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

#openSidebarBtn {
  position: fixed;
  top: 16px;
  left: 16px;
  background-color: var(--violeta);
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  z-index: 1100;
  cursor: pointer;
}

/* === Main === */
main {
  padding: 1rem;
  max-width: 960px;
  margin: auto;
}

.section {
  background: white;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section:nth-child(even) {
  background-color: var(--violeta-claro);
}

.section h2 {
  color: var(--violeta-texto);
  margin-top: 0;
}

/* === CTA === */
.cta-button {
  background-color: var(--violeta);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  margin-top: 1rem;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--violeta-oscuro);
}

/* === Galería === */
.carousel-container {
  overflow: hidden;
  border-radius: 12px;
  margin-top: 1rem;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* === Contacto === */
social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-buttons a {
  background-color: var(--violeta);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-buttons a:hover {
  background-color: var(--violeta-oscuro);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: white;
  background-color: var(--violeta);
}

/* === Responsive === */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.2rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}

      /* Teléfonos pequeños */
@media (max-width: 768px) {
    .container {
      padding: 1rem;
    }
  
    h1 {
      font-size: 1.4rem;
    }
  
    nav a {
      display: block;
      margin-bottom: 0.5rem;
    }
  }
  
  /* Tablets */
  @media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
      width: 200px;
    }
  }