/*
Theme Name: Revista Más Genios
Theme URI: https://masgenios.com
Author: Ariel Cárdenas
Author URI: https://masgenios.com/equipo
Description: Tema modular para Revista Más Genios con prerroll, bloques editoriales, multimedia, botones sociales y banner de cookies responsivo.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masgenios
Tags: editorial, magazine, responsive, modular, multimedia
*/

/* ======================================
   Reset y base tipográfica
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.7;
  }
  
  /* Enlaces */
  a {
    color: #002b5c;
    text-decoration: none;
  }
  a:hover {
    color: #e67e22;
    text-decoration: underline;
  }
  
  /* Imágenes responsivas */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Contenedores */
  main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* ======================================
     Cabecera y navegación
  ====================================== */
  #site-header {
    background-color: #002b5c;
    color: #fff;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 9000;
  }
  
  #site-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  #site-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
  }
  
  #site-header p {
    font-size: 0.95rem;
    opacity: 0.85;
  }
  
  #main-navigation {
    margin-top: 12px;
  }
  
  #main-navigation .nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }
  
  #main-navigation .nav-menu li a {
    color: #fff;
    font-weight: 500;
    padding: 8px 6px;
    border-radius: 4px;
  }
  #main-navigation .nav-menu li a:hover {
    background: rgba(255,255,255,0.12);
  }
  
  /* ======================================
     Prerroll
  ====================================== */
  #preroll-container {
    width: 100%;
    background-color: #000;
    text-align: center;
  }
  #preroll-container video {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* ======================================
     Secciones editoriales
  ====================================== */
  section {
    padding: 32px 0;
    border-bottom: 1px solid #e5e5e5;
  }
  
  section h2 {
    font-size: 1.8rem;
    color: #002b5c;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
  }
  
  /* Artículos */
  article {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  article .thumb,
  article img {
    border-bottom: 1px solid #f0f0f0;
  }
  
  article h3 {
    font-size: 1.3rem;
    color: #e67e22;
    padding: 14px 16px 0 16px;
  }
  
  article p,
  article .entry-summary,
  article .entry-content {
    font-size: 1rem;
    color: #555;
    padding: 10px 16px 16px 16px;
  }
  
  /* Asides (columnas de datos) */
  aside {
    background-color: #f3f5f7;
    padding: 20px;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    margin-bottom: 24px;
  }
  aside h2, aside h4 {
    color: #002b5c;
    margin-bottom: 12px;
  }
  
  /* Grid simple para secciones */
  .fabrica-de-ideas,
  .genios-trabajando,
  .genios-del-deporte,
  .campus-mas-genios,
  .cartelera-mas-genios,
  .agenda-genial {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  @media (max-width: 900px) {
    .fabrica-de-ideas,
    .genios-trabajando,
    .genios-del-deporte,
    .campus-mas-genios,
    .cartelera-mas-genios,
    .agenda-genial {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 600px) {
    .fabrica-de-ideas,
    .genios-trabajando,
    .genios-del-deporte,
    .campus-mas-genios,
    .cartelera-mas-genios,
    .agenda-genial {
      grid-template-columns: 1fr;
    }
  }
  
  /* ======================================
     Video embebido
  ====================================== */
  .video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    margin: 12px 0 16px 0;
    border-top: 1px solid #f0f0f0;
  }
  .video-container iframe,
  .video-container video,
  .video-container embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
  }
  
  /* ======================================
     Botones sociales
  ====================================== */
  .social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 16px 16px;
  }
  
  .social-share span {
    font-weight: 600;
    color: #002b5c;
  }
  
  .social-share a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #002b5c;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.25s ease, transform 0.1s ease;
  }
  .social-share a:hover {
    background-color: #e67e22;
    transform: translateY(-1px);
  }
  
  /* Clases específicas por red (opcional para iconografía futura) */
  .btn-facebook { background-color: #1877f2; }
  .btn-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); }
  .btn-linkedin { background-color: #0a66c2; }
  .social-share .btn-facebook:hover,
  .social-share .btn-instagram:hover,
  .social-share .btn-linkedin:hover {
    filter: brightness(1.05);
  }
  
  /* ======================================
     Footer
  ====================================== */
  #site-footer {
    background-color: #333;
    color: #fff;
    padding: 28px 20px;
    margin-top: 32px;
  }
  
  #site-footer a {
    color: #f39c12;
  }
  
  .footer-legal ul,
  .footer-partners ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .footer-credits {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 8px;
  }
  
  /* ======================================
     Banner de Cookies (visual)
  ====================================== */
  #cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #002b5c;
    color: #fff;
    padding: 14px 16px;
    text-align: center;
    z-index: 9999; /* bajo el header sticky */
    font-size: 0.95rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.25);
  }
  
  #cookie-banner p {
    margin: 0;
    display: inline-block;
  }
  
  #cookie-banner a {
    color: #f39c12;
    text-decoration: underline;
    margin-left: 6px;
  }
  
  #cookie-banner button {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 8px 14px;
    margin-left: 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.1s ease;
  }
  #cookie-banner button:hover {
    background: #d35400;
    transform: translateY(-1px);
  }
  
  /* Evitar que el banner tape contenido muy pegado al bottom */
  body.has-cookie-banner-padding {
    padding-bottom: 64px;
  }
  
  /* Responsive del banner */
  @media (max-width: 600px) {
    #cookie-banner {
      font-size: 0.85rem;
      padding: 10px;
    }
    #cookie-banner p {
      display: block;
      margin-bottom: 8px;
    }
    #cookie-banner button {
      display: inline-block;
      width: auto;
      margin-left: 0;
    }
  }
  
  /* ======================================
     Utilidades
  ====================================== */
  .hidden {
    display: none !important;
  }
  .mt-0 { margin-top: 0 !important; }
  .mb-0 { margin-bottom: 0 !important; }
  .mt-16 { margin-top: 16px !important; }
  .mb-16 { margin-bottom: 16px !important; }
  