/* ===== GLOBAL ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: row;
  background-color: #fff;
  overflow-x: hidden;
}

/* ===== SIDEBAR IZQUIERDO ===== */
.sidebar {
  width: 500px;
  background-color: #f8f8f8;
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #ddd;
  position: sticky;
  top: 0;
  flex-shrink: 0;
}

.sidebar h3 {
  font-size: 16px;
  margin: 20px 0 10px;
  color: #000;
}

.sidebar ul {
  list-style-type: none;
  padding-left: 15px;
  margin: 0;
}

.sidebar ul li {
  margin: 6px 0;
}

.sidebar ul li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar ul li a:hover {
  color: #007BFF;
}

/* ===== CONTENIDO CENTRAL ===== */
.content {
  flex-grow: 1;
  padding: 40px;
  max-width: 100%;
  
}

.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 24px;
  color: #222;
  margin-top: 50px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.section h3 {
  font-size: 18px;
  color: #444;
  margin-top: 30px;
}

.section p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* ===== FOOTER DERECHO (ESCRITORIO) ===== */
.footermch-container {
  width: 250px;
  background-color: #0f0f14;
  color: #ccc;
  padding: 60px 20px;
  font-family: 'Arial', sans-serif;
  flex-shrink: 0;
}

.footermch-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footermch-column {
  flex: 1 1 200px;
}

.footermch-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--main_color-primary);
  display: inline-block;
  padding-bottom: 5px;
}

.footermch-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footermch-list li {
  margin: 10px 0;
}

.footermch-list a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footermch-list a:hover {
  color: #fff;
}

.footermch-socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footermch-socials a {
  display: inline-block;
  background-color: #2a2a2f;
  border-radius: 50%;
  padding: 10px;
  transition: background 0.3s ease;
}

.footermch-socials img {
  width: 20px;
  height: 20px;
  display: block;
}

/* ===== BOTONES FLOTANTES (OCULTOS POR DEFECTO) ===== */
.menu-mobile-toggle,
.footer-menu-toggle {
  display: none;
}

/* ===== CONTENEDORES MÓVILES ===== */
.menu-mobile,
.footer-mobile {
  display: none;
  flex-direction: column;
  background-color: #fff;
  position: fixed;
  z-index: 1099;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.menu-mobile {
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
}

.footer-mobile {
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 80%;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.menu-mobile.active,
.footer-mobile.active {
  display: flex;
}

.menu-mobile h3,
.footer-mobile h3 {
  margin-top: 15px;
  font-size: 16px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.menu-mobile ul,
.footer-mobile ul {
  list-style-type: none;
  padding-left: 10px;
  margin: 0;
}

.menu-mobile ul li,
.footer-mobile ul li {
  margin: 6px 0;
}

.menu-mobile ul li a,
.footer-mobile ul li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.menu-mobile ul li a:hover,
.footer-mobile ul li a:hover {
  color: #007BFF;
}

.footer-mobile .footermch-socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer-mobile .footermch-socials a {
  display: inline-block;
  background-color: #2a2a2f;
  border-radius: 50%;
  padding: 10px;
}

.footer-mobile .footermch-socials img {
  width: 20px;
  height: 20px;
  display: block;
}

.mobile-buttons {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1100;
  gap: 10px;
}

/* Botones en línea */
.mobile-buttons button {
  margin-right: 10px;
}


/* ===== RESPONSIVE: MÓVILES ===== */
@media screen and (max-width: 768px) {

  /* Ocultar sidebar y footer clásico */
  .sidebar,
  .footermch-container {
    display: none !important;
  }
  

  /* Mostrar los botones flotantes */
  .menu-mobile-toggle,
  .footer-menu-toggle {
    display: block;
    position: fixed;
    background-color: #111;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    z-index: 1100;
    cursor: pointer;
  }

  .menu-mobile-toggle {
    top: 10px;
    left: 10px;
  }

  .footer-menu-toggle {
    bottom: 80px;
    left: 10px;
  }

  /* Ajuste de contenido */
  .content {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin-top: 50px;
  }
  .mobile-buttons {
    display: flex;
    flex-direction: row;
  }

  .menu-mobile-toggle,
  .footer-menu-toggle {
    position: static; /* reset para no flotar */
  }
}
