/* ============================================================
   PictogramAgenda – CSS estático
   Fuente: Roboto (Google Fonts, cargada en HTML)
   Iconos: Font Awesome 5 (CDN)
   ============================================================ */

/* --- Reset básico --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #000;
  background: #fff;
}
a { color: inherit; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.4em; }
li { margin-bottom: 0.3em; }

/* --- Layout contenedor --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

/* Logo */
.site-logo a { display: block; }
.site-logo img { height: 48px; width: auto; }

/* Navegación */
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #000;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .current-page { font-weight: 700; text-decoration: underline; }

/* Selector de idioma */
.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.lang-switcher a:hover { border-color: #ccc; }
.lang-switcher a.active {
  border-color: #000;
  color: #000;
  font-weight: 700;
}
.lang-switcher img { width: 18px; height: auto; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: all 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SKIP LINK (accesibilidad)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 200;
}
.skip-link:focus { top: 0; }

/* ============================================================
   SECCIONES PRINCIPALES
   ============================================================ */
main { min-height: 60vh; }

/* Sección: barra de botones de descarga */
.section-downloads {
  background: #eee;
  padding: 20px;
}
.section-downloads .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Botones de descarga */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-shadow: 0 0 4px rgba(0,0,0,0.3);
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { background: #333; opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn i { font-size: 1.1em; }

/* Sección: imagen de dispositivos (fondo degradado verde) */
.section-hero {
  background: linear-gradient(180deg, #0B4E10 0%, #729F75 100%);
  padding: 22px 0;
  text-align: center;
}
.section-hero img {
  margin: 0 auto;
  max-width: 80%;
}

/* Sección: contenido estándar */
.section-content {
  padding: 50px 0;
}
.section-content h3 {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Sección: fondo gris */
.section-content.bg-gray {
  background: #eee;
}

/* Video responsive */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   SECCIÓN LEGAL (integrada en la onepage)
   ============================================================ */
.section-legal {
  border-top: 3px solid #000;
  background: #f4f4f4;
}
.section-legal h2 {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-legal h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}
.section-legal p { margin-bottom: 10px; font-size: 0.95em; }
.section-legal a { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 24px 0;
  text-align: center;
  font-size: 15px;
  color: #444;
}
.site-footer b {
  display: block;
  font-size: 1.1em;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}
.site-footer a {
  color: #000;
  text-decoration: underline;
}
.site-footer a:hover { opacity: 0.7; }
.site-footer .footer-email { font-size: 0.85em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Header móvil */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 20px;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lang-switcher { margin-top: 4px; }

  /* Botones en columna en móvil pequeño */
  .section-downloads .container { flex-direction: column; }
  .btn { font-size: 17px; padding: 10px 20px; }

  /* Imagen hero más grande en móvil */
  .section-hero img { max-width: 100%; padding: 0 10px; }

}
