/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

* { padding: 0px; margin: 0px; border: none; outline: none;}


body 
{
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:15.5px;
  font-weight: 450;
  text-align: left;
  margin: 0;
  width: 100%;
  max-width: 1024px;
  border-style:1em  solid #FFFFFF; /*none;*/
  /*border:0;*/  /* solid #FFFFFF;*/
  height: 100%;
  /* font-family:Arial, Helvetica, sans-serif;
  font-size:14px;
  background-color: /*#CCCCCC;*/
  text-align:center;
  margin:0px;
  border-style:none;
  border:0;  /* solid #FFFFFF;*/
  height: 100%;
}


h1 { font-size:20px; color:#000000; margin-bottom:0.6em; }
h2 { font-size:18px; color:#000000; margin-bottom:0.4em; }
h3 { font-size:16px; color:#000000; margin-bottom:0.4em; }
h4 { font-size:14px; color:#000000; margin-bottom:0.4em; }
h5 { font-size:12px; color:#000000; margin-bottom:0.6em; }


.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 1000;          /* por encima de la cabecera fija (950) */
  display: flex;          /* centra el recuadro en la pantalla */
  align-items: center;
  justify-content: center;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  position: relative;
  margin: 0;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: min(800px, 92vw);        /* nunca mas ancho que la pantalla */
  height: min(600px, 85vh);       /* nunca mas alto que la pantalla */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
  position: absolute;
  top: 10px;
  right: 17px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .pcontent {
  margin: 10px 0 0 0;
  flex: 1;                        /* ocupa todo el alto que queda */
  min-height: 0;
  overflow: auto;
}

.popup .pcontent object,
.popup .pcontent iframe {
  width: 100%;
  height: 100%;                   /* manda sobre el height="350" del cfg */
  display: block;
}

.pcontent ol
{
	margin-left:30px;
}



a:link, a:visited, a:active, a:hover
{ 
text-decoration:underline;
font-weight:normal;
color:navyblue;     
/*font-size:14px;*/
}

a:active, a:hover
{ 
color:#680000;
}


ul li
{
  margin-bottom: 20px;
  list-style-type:disc;
}


/* content area */	
#content 
{
background-color:#FFFFFF;
border: none;
width: 100%;
max-width: 1024px;
margin: 0;
margin-top: 20px;   /* solo un respiro, ya no depende del tamano del logo */
padding: 0 20px;
box-sizing: border-box;
text-align:left;
}

#content img,
div.content img		/* cualquier imagen del texto (sponsors, etc.) se adapta a la pantalla, nunca se desborda */
{
  max-width: 100%;
  height: auto;
}

a.anchor{display: block; position: relative; top: -110px; visibility: hidden;}


div.author
{
  font-size: 0.8em;
  margin-left: 1em;
  margin-top: 0.1em;
  margin-bottom: 0.2em;
}

/* Boxes */
div.title
{
  display:block;
  font-weight: 700;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  padding: 0.7em 1em 0.85em 1em;
  font-size: 1.4em;
  position: relative;
}

div.maintitle
{
  color: #000000;
  display:block;
  padding: 0.5em 0.8em 0.5em 0.8em; 
  font-size: 1.5em;
}

div.content
{
  color: #1a1a1a;
  display:block;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 450;
  padding: 1em 1.1em;
  line-height: 1.55;
  font-size: 15px;
}

div.content ul
{
  margin: 0.85em 0 0 1.1em;
  padding: 0;
}

div.content li
{
  margin-bottom: 7px;
}

/* Horizontal boxes: cabecera propia por color, franja corta a la izquierda, sombra suave */

div.bbox /*blue*/  
{
  color:#000000;
  background-color: #FFFFFF;
  margin:0px;
  border: 0.5px solid #eeeeee;
  clear:both;
  margin-bottom: 1.5em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20,20,30,0.05), 0 6px 18px rgba(20,20,30,0.07);
  overflow: hidden;
}

div.bbox div.title
{
  background-color: #eef2f6;
  color: #143a6b;
}

div.bbox div.title::after
{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 25%; height: 3px;
  background: #143a6b;
}

div.bbox div.content li::marker { color: #143a6b; }

div.mbox /* magenta */ 
{
  color:#000000;
  background-color: #FFFFFF;
  margin:0px;
  border: 0.5px solid #eeeeee;
  clear:both;
  margin-bottom: 1.5em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20,20,30,0.05), 0 6px 18px rgba(20,20,30,0.07);
  overflow: hidden;
}

div.mbox div.title
{
  background-color: #f8eef1;
  color: #6e2a44;
}

div.mbox div.title::after
{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 25%; height: 3px;
  background: #6e2a44;
}

div.mbox div.content li::marker { color: #6e2a44; }

div.obox /* orange */ 
{
  color:#000000;
  background-color: #FFFFFF;
  margin:0px;
  border: 0.5px solid #eeeeee;
  clear:both;
  margin-bottom: 1.5em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20,20,30,0.05), 0 6px 18px rgba(20,20,30,0.07);
  overflow: hidden;
}

div.obox div.title
{
  background-color: #fbf1e4;
  color: #8a5316;
}

div.obox div.title::after
{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 25%; height: 3px;
  background: #8a5316;
}

div.obox div.content li::marker { color: #8a5316; }

/* Vertical Boxes: mismo espiritu, franja de color a la izquierda en vez de bloque solido */

div.bboxv /* blue */ 
{
  color:#000000;
  background-color: #FFFFFF;
  margin:0px;
  border: 0.5px solid #eeeeee;
  border-left: 4px solid #143a6b;
  clear:both;
  margin-bottom: 1.5em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20,20,30,0.05), 0 6px 18px rgba(20,20,30,0.07);
}

div.bboxv div.title
{
  color: #143a6b;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

div.bboxv div.content
{
  padding-top: 0em; 
}

div.bboxv div.content li::marker { color: #143a6b; }


div.mboxv /* magenta */ 
{
  color:#000000;
  background-color: #FFFFFF;
  margin:0px;
  border: 0.5px solid #eeeeee;
  border-left: 4px solid #6e2a44;
  clear:both;
  margin-bottom: 1.5em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20,20,30,0.05), 0 6px 18px rgba(20,20,30,0.07);
}

div.mboxv div.title
{
  color: #6e2a44;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

div.mboxv div.content
{
  padding-top: 0em; 
}

div.mboxv div.content li::marker { color: #6e2a44; }

div.oboxv /* orange */ 
{
  color:#000000;
  background-color: #FFFFFF;
  margin:0px;
  border: 0.5px solid #eeeeee;
  border-left: 4px solid #8a5316;
  clear:both;
  margin-bottom: 1.5em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20,20,30,0.05), 0 6px 18px rgba(20,20,30,0.07);
}

div.oboxv div.title
{
  color: #8a5316;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

div.oboxv div.content
{
  padding-top: 0em; 
}

div.oboxv div.content li::marker { color: #8a5316; }

div.narrow
{
	font-family:"Arial Narrow","Helvetica Narrow",Tahoma;
}


						/* top area */

#title 
{
  position: static;
  width: 100%;
  background-color:#FFFFFF;
  color:#000066;
  border-bottom:  0px solid #000000;
  box-sizing: border-box;
  overflow: hidden;   /* por si la imagen es mas alta de lo esperado */
}

.site-header
{
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5em 1.8em 1.4em 1.8em;
  box-shadow: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
}

.site-header::before
{
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 25%; height: 4px;
  background: #143a6b;
}

.site-header-text
{
  text-align: left;
  flex: 0 1 auto;
}

.site-header-text h1
{
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.55em;
  color: #143a6b;
  margin: 0 0 0.3em 0;
  line-height: 1.3;
  text-align: left;
}

.site-header-text p
{
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #143a6b;
  margin: 0;
  text-align: left;
}

.site-header-logos
{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
  padding-bottom: 0.9em;
}

.site-header-logos::after
{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: #adbbcc;
}

.site-header-logos img
{
  height: 44px;
  width: auto;
  display: block;
}

p.small {line-height: 90%}
p.big {line-height: 150%}


/* message area */	
#message
{
background-color:#FFFFFF;
border: none;
width: 100%;
max-width: 1024px;
margin: 0;
padding: 0 20px;
box-sizing: border-box;
position:static;
text-align:left;
font-size:12px;
line-height: 1.3;
}


/* footer */
#footer
{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 1024px;
  height: 30px;
  padding: 0 20px;
  background-color:#FFFFFF;
  color:#000066;
  border-top: 10px solid #FFFFFF;
  z-index: 900;
  box-sizing: border-box;
}






/* -------------------------------------- */
/* Menu: boton + panel de pantalla completa */
/* Sustituye el menu lateral fijo de siempre. */
/* No requiere JavaScript: un checkbox invisible */
/* controla si el panel se ve o no. */

#menu-toggle
{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#site-topbar		/* sticky en vez de fixed: el contenido fluye justo detras, sin numeros fijos que mantener */
{
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 1024px;
  padding: 0 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  z-index: 950;
  box-sizing: border-box;
}

.site-topbar-card		/* el contenedor visual real: cabecera + Full menu, una sola tarjeta */
{
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(20,30,50,0.10), 0 18px 44px rgba(20,30,50,0.13);
  overflow: hidden;
}

/* Nota: el tamano de los logos individuales lo fija .site-header-logos img,
   mas abajo. No hace falta ninguna regla generica aqui. */

.menu-btn		/* franja inferior de la misma tarjeta que el logo, ya no una caja aparte */
{
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 24px;
  background-color: #fff8ef;
  border: none;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
  animation: menu-btn-pulse 1.6s ease-in-out 2;
}

.menu-btn::before
{
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 25%; height: 3px;
  background: #143a6b;
}

@keyframes menu-btn-pulse
{
  0%   { transform: scale(1); }
  50%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.menu-bars
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
}

.menu-bars span
{
  display: block;
  height: 4px;
  background-color: #0f3d7a;
  border-radius: 2px;
}

.menu-btn-label
{
  color: #0f3d7a;
  font-size: 24px;
  font-weight: 700;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  white-space: nowrap;
}

#menuv		/* el panel completo: oculto por defecto */
{
  position: fixed;
  inset: 0;
  background-color: #eef2f6;
  z-index: 999;
  overflow-y: auto;
  padding: 50px 30px 40px 30px;
  box-sizing: border-box;
  text-align: left;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Cuando el boton esta activado, el panel se muestra */
#menu-toggle:checked ~ #menuv
{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-close		/* boton de cerrar, arriba a la derecha del panel */
{
  position: fixed;
  top: 12px;
  right: 24px;
  font-size: 36px;
  line-height: 1;
  color: #000000;
  cursor: pointer;
  z-index: 1001;
}

#menuv ul
{
  max-width: 1000px;
  margin: 0 auto;
  columns: 3 260px;    /* tres columnas, menos scroll vertical */
  column-gap: 30px;
}

#menuv ul li
{
  color: #000000;
  list-style-type: none;
  padding: 3px 0;
  break-inside: avoid;   /* la seccion Y sus subsecciones, siempre juntas en la misma columna */
}

#menuv a
{
  text-decoration: underline;
  display: block;
  color: #0f60bd;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
}

#menuv a:hover,
#menuv a:focus
{
  text-decoration: underline;
}

#menuv li.selected a
{
  color: #0f60bd;      /* la pagina actual, resaltada */
}

#menuv ul ul
{
  columns: 1;           /* los subenlaces no vuelven a partirse en columnas */
  margin: 6px 0 8px 0;
}

#menuv ul ul li
{
  padding-left: 18px;
  padding-top: 1px;
  padding-bottom: 1px;
}

#menuv ul ul li a
{
  font-size: 16px;
  font-weight: normal;
  color: #333333;
}


/* -------------------------------------- */
/* Pantallas estrechas: el logo se encoge, no ocupa media pantalla */

@media screen and (max-width: 600px), screen and (max-height: 500px) {

  #site-topbar
  {
    position: static;   /* poca anchura O poca altura: no se queda pegada arriba */
  }

  .site-header
  {
    padding: 1em 1.1em 0.9em 1.1em;
    gap: 14px;
  }

  .site-header-text h1
  {
    font-size: 1em;
    line-height: 1.25;
  }

  .site-header-text p
  {
    font-size: 13px;
  }

  .site-header-logos img
  {
    height: 26px;
  }

  .site-header-logos
  {
    gap: 10px;
    padding-bottom: 0.6em;
  }

  .menu-btn-label
  {
    font-size: 18px;
  }

  .menu-btn
  {
    height: 46px;
  }

}


/* -------------------------------------- */
/* Sponsors: todos los logos en cajas iguales, maximo 3 por fila.
   Cada logo se reduce hasta caber en su caja, sin deformarse.
   Para hacer un logo mas pequeno dentro de su caja, ponga en su enlace
   style="--s:0.6" (0.6 = 60 % de la caja). Sin --s ocupa la caja entera.
   "div.content" delante para ganar a la regla general "div.content img". */

div.content .sponsor-logos
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;     /* la ultima fila queda centrada */
  align-items: center;
  gap: 24px 4%;
  padding: 0.6em 0;
}

div.content .sponsor-logos a
{
  flex: 0 0 30%;               /* 3 x 30% + 2 huecos de 4% = 98% */
  height: 110px;               /* altura de la caja, igual para todos */
  display: flex;
  align-items: center;
  justify-content: center;
}

div.content .sponsor-logos img
{
  width: auto;
  height: auto;
  max-width: calc(100% * var(--s, 1));
  max-height: calc(100% * var(--s, 1));
  object-fit: contain;
  display: block;
}

@media screen and (max-width: 600px), screen and (max-height: 500px) {

  div.content .sponsor-logos
  {
    gap: 16px 4%;
  }

  div.content .sponsor-logos a
  {
    height: 70px;
  }

}


/* -------------------------------------- */
/* CSS right announcement container */



/* -------------------------------------- */
/* Page centred on wide screens; the header touches the top, as the footer touches the bottom (15 Nov 2026) */

body
{
  margin-left: auto;
  margin-right: auto;
}

#site-topbar
{
  margin-top: 0;
}

#footer
{
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------- */
/* Workshop only (24 Nov 2026): the Full menu band in the light magenta of the boxes (div.mbox) */

.menu-btn { background-color: #f8eef1; }
.menu-btn::before { background: #6e2a44; }
.menu-bars span { background-color: #6e2a44; }
.menu-btn-label { color: #6e2a44; }


/* FOOTER_FOLLOW_2026_11_28: footer of the CFE websites (contact left, Follow us right), colour of this website */
/* Pie fijo: contacto a la izquierda, "Follow us" a la derecha */

#footer .footer-bar
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 0.6em;
  margin: 0;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  font-size: 14px;
  line-height: 18px;
}

#footer .footer-follow a
{
  display: inline-block;
  padding: 0 0.6em;
  margin-left: 0.3em;
  border: 1px solid #6e2a44;
  border-radius: 3px;
  color: #6e2a44;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 15px;
}

#footer .footer-follow a:hover
{
  background: #6e2a44;
  color: #ffffff;
}

#footer .footer-tag
{
  color: #6e2a44;
  font-weight: 600;
  margin-left: 0.4em;
}

@media screen and (max-width: 600px), screen and (max-height: 500px) {

  #footer .footer-copy,
  #footer .footer-lbl,
  #footer .footer-tag
  {
    display: none;     /* en el movil solo quedan el contacto y los dos botones */
  }

  #footer
  {
    padding: 0 6px;
  }

  #footer .footer-bar
  {
    font-size: 12.5px;
    gap: 6px;
    padding: 0 0.3em;
  }

  #footer .footer-follow a
  {
    padding: 0 0.4em;
    margin-left: 0.2em;
    font-size: 12px;
  }

}


/* the name of the Workshop is longer: a little smaller, so that the hashtag fits */
#footer .footer-bar { font-size: 13px; gap: 8px; }
#footer .footer-follow a { padding: 0 0.45em; margin-left: 0.2em; }
