/*
Theme Name: Exactas Eventos 2026
Theme URI: https://exactas.uba.ar/
Author: Irene Fernandez, Secretaría de Comunicación, Exactas UBA
Description: Tema institucional para eventos, con cabecera y datos globales por sitio de WordPress Multisite.
Version: 2.02
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: exactas-eventos-2026
*/


/* ------------------------------
   Variables y configuración
------------------------------ */

:root {
  --mint: #78d3c5;
  --turquoise: #42bba9;
  --dark: #1d1d1b;
  --paper: #fffef7;
  --nav-bg: #ededed;
  --orange: #ff8261;
  --text: #080808;
  --page-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--mint);
  color: var(--text);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------
   Estructura general
------------------------------ */

.site {
  width: calc(100% - 42px);
  max-width: var(--page-width);
  margin: 0 auto;
}

/* ------------------------------
   Identificación institucional
------------------------------ */

.institucion {
    width: 100%;
    text-align: center;
    position: relative;
}

.institucion img {
  width: 86px;
}
.institucion a{  
    padding: 3px 6px;
}
.institucion a:hover {
  background-color:var(--orange);
}

.institucion-top {
  margin-bottom: 0;
}

.institucion-bottom {
  align-items: center;
  height: 25px;
  margin-top: 0;
}
.derecha {
    right:0;
    background-color: #999;
    color: white;
    text-transform: uppercase;
    font-size: 0.8em;
    
    text-decoration: none;
    position: absolute;
}
a.derecha:hover {
    color: white;
    text-decoration: none;
}
.derecha .icon {
    vertical-align: text-bottom;
}
/* ------------------------------
   Banner principal
------------------------------ */

.cabecera {
    text-align: center;
    background: #000;
    height: 234px;
    background-image: var(--cabecera-fondo, none);
    background-size: cover;
}
.cabecera img {
    margin-top: 33px;
    width: 514px;
}

/* ------------------------------
   Navegación
------------------------------ */

.main-nav {
  display: flex;
  align-items: stretch;
  background: var(--nav-bg);
  min-height: 34px;
}

.main-nav a {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  padding: 10px auto 8px;
  border-right: 1px solid white;
  color: #000;
  font-size: 0.9em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a:last-child {
  border-right: 0;
}

.main-nav a.inicio {
  color: white;
  background: #999;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: var(--orange);
  text-decoration: none;
}

/* ------------------------------
   Layout de contenido y sidebar
------------------------------ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas: "main sidebar";
  gap: 42px;
  align-items: start;
  padding: 56px 0 32px;
  background: var(--paper);
}

.main-content {
  grid-area: main;
  min-width: 0;
  padding-left: 50px;
}

.sidebar {
  grid-area: sidebar;
  min-width: 0;
}


/* ------------------------------
   Introducción
------------------------------ */

.intro {
  margin-bottom: 82px;
    padding: 0 20px;
}

.intro p {
  margin: 0 0 38px;
  font-size: 18px;
  line-height: 2;
}

.intro p:last-child {
  margin-bottom: 0;
  padding-left: 4px;
}

/* ------------------------------
   Información lateral
------------------------------ */

.event-data {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 5px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 8px;
  background: var(--orange);
  font-size: 1em;
  line-height: 1.4;
}
.event-txt {
    color: var(--paper);
}
.event-icon {
  
  font-size: 17px;
  font-weight: bold;
}

.organizers {
  padding: 17px 24px 16px 38px;
  border: 1px solid var(--orange);
  font-size: 14px;
  line-height: 1.25;
}

.organizers h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.organizers p {
  margin: 0 0 8px;
}

.organizers p:last-child {
  margin-bottom: 0;
}
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
/* ------------------------------
   Jerarquía tipográfica
------------------------------ */

.typography-demo h1,
.typography-demo h2,
.typography-demo h3,
.typography-demo h4,
.typography-demo h5,
.typography-demo h6,
.contenido h1,
.contenido h2,
.contenido h3,
.contenido h4,
.contenido h5,
.contenido h6{
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.typography-demo h1, .contenido h1 {
  color: var(--turquoise);
  font-size: 23px;
}

.typography-demo h2, .contenido h2 {
  color: var(--turquoise);
  font-size: 18px;
}

.typography-demo h3,
.typography-demo h4,
.contenido h3, .contenido h4{
  color: #080808;
  font-size: 17px;
}

.typography-demo h5,
.typography-demo h6, 
.contenido h5, .contenido h6 {
  color: #999;
  font-size: 15px;
}

.typography-demo p, .contenido p {
  margin: 5px 0 14px;
  font-size: 1em;
  line-height: 1.5;
    font-weight: normal;
}

.typography-demo blockquote, .contenido blockquote {
  margin: 16px 0 22px 32px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* ------------------------------
   Responsive: tablet y móvil
------------------------------ */

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    padding-top: 38px;
  }

  .main-content {
    padding-left: 28px;
  }

  .intro p {
    font-size: 16px;
    line-height: 1.8;
  }

  .organizers {
    padding: 15px;
  }
}

@media (max-width: 650px) {
  .site {
    width: calc(100% - 20px);
  }

  /*.hero {
    min-height: 205px;
  }

  .hero-content {
    padding: 26px 12px;
    gap: 18px;
  }

  .brand-name {
    font-size: 45px;
  }

  .brand-subtitle {
    font-size: 17px;
  }

  .brand-symbol {
    transform: scale(0.85);
    transform-origin: right center;
    margin-right: -5px;
  }

  .hero-description {
    max-width: 320px;
  }*/

  /* Menú en varias columnas para evitar scroll horizontal */
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav a {
    min-height: 40px;
    padding: 9px 4px;
    white-space: normal;
    font-size: 10px;
    border-bottom: 1px solid white;
  }

  /*
   * El orden en móvil es:
   * 1. Menú
   * 2. Sidebar
   * 3. Contenido principal
   */
  .page-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 18px 30px;
  }

  .sidebar {
    order: 1;
    width: 100%;
    margin-top: 0;
  }

  .main-content {
    order: 2;
    width: 100%;
    padding-left: 0;
  }

  .event-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .event-item {
    min-height: 48px;
    padding: 8px;
    font-size: 12px;
  }

  .organizers {
    padding: 16px;
  }

  .intro {
    margin-bottom: 42px;
  }

  .intro p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
  }

  .typography-demo h1 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .site {
    width: calc(100% - 12px);
  }

  .page-layout {
    padding-right: 12px;
    padding-left: 12px;
  }

  .event-data {
    grid-template-columns: 1fr;
  }

}
/* WordPress */
#site-title, #site-description, .home h2.entry-title { display: none; }
.cabecera { background-position: center; background-repeat: no-repeat; }
.cabecera img { max-height: 190px; object-fit: contain; }
.site-logo { display: inline-block; }
.event-txt { display: inline; }
.event-item .event-icon { flex: 0 0 auto; }
.organizers h2 { margin-top: 0; }
.organizers p:last-child { margin-bottom: 0; }
.main-content .intro { margin-bottom: 42px; }
.main-content .intro p:last-child { margin-bottom: 0; }
.event-content { padding: 0 20px; }
.event-content > :first-child { margin-top: 0; }
.event-content > :last-child { margin-bottom: 0; }
.institucion img { height: auto; }
@media (max-width: 650px) { .cabecera { height: auto; min-height: 150px; display:flex; align-items:center; justify-content:center; padding: 20px; } .cabecera img { margin-top: 0; width: min(100%, 514px); } }
/* Elementos del menú generados por WordPress */
.main-nav > li { display: flex; flex: 1 1 0; min-width: 0; }
.main-nav > li > a { width: 100%; }
@media (max-width: 650px) { .main-nav > li { min-width: 0; } .main-nav > li > a { min-height: 40px; padding: 9px 4px; white-space: normal; font-size: 10px; border-bottom: 1px solid white; } }


/* Logo institucional fijo y auspiciantes de portada */
.institucion-top img, .institucion-bottom img { width: 86px; height: auto; }
.sponsors { margin: 48px 20px 0; text-align: center; }
.sponsors h2 { margin: 0 0 22px; font-size: 18px; color: var(--turquoise); }
.sponsors-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.sponsors-logos img { display: block; width: auto; max-width: min(180px, 100%); max-height: 90px; object-fit: contain; }
@media (max-width: 650px) { .sponsors { margin: 36px 0 0; } .sponsors-logos { gap: 16px; } .sponsors-logos img { max-width: 42%; max-height: 72px; } }
