/* =================================
   VARIABLES GENERALES
================================= */
/* Opening quote */
.opening-quote {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: right;
}

.opening-quote p {
    font-family: "Caveat", cursive;
    color: #b47a25;
    font-weight: 500;
    font-style: normal;
}

.opening-quote p:first-child {
    font-size: 1.7rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.opening-quote p:last-child {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 0.6rem;
}

:root {
  --navy: #062f50;
  --gold: #b47b2c;
  --cream: #f5f1e8;
  --light-blue: #eef5f7;
  --white: #ffffff;
  --text: #092f50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

/* =================================
   HEADER
================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  padding: 1.2rem 4%;
}

.header-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo superior izquierdo */

.logo {
  display: inline-block;
  color: var(--navy);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--navy);
}

.logo strong {
  color: var(--gold);
  font-weight: 500;
}

/* Menú de navegación */

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover {
  color: var(--gold);
}

/* =================================
   IMAGEN PRINCIPAL / HERO
================================= */

.hero {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--cream);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* =================================
   CONTENIDO PRINCIPAL
================================= */

main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.intro,
.section {
  width: 90%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 4rem 0;
}

.intro {
  max-width: 1000px;
  text-align: center;
}

.intro h1 {
  color: var(--navy);
  font-size: 2.5rem;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.intro p {
  font-size: 1.15rem;
  line-height: 1.8;
}

/* =================================
   TÍTULOS
================================= */

.section-label {
  color: var(--gold);
  font-size: 1.6rem !important;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.2;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 2rem;
}

h2 {
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 2rem;
}

h3 {
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* =================================
   SECCIONES EN DOS COLUMNAS
================================= */

.two-columns {
  width: 100%;

  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Columna izquierda más ancha */

.two-columns > div:first-child {
  min-width: 0;
  padding-right: 1rem;
}

/* Columna derecha */

.two-columns > div:last-child {
  min-width: 0;
}

/* =================================
   LISTAS
================================= */

ul {
  padding-left: 1.6rem;
}

li {
  margin-bottom: 0.8rem;
  line-height: 1.65;
}

/* Lista de tipos de contribuciones */

.two-columns > div:first-child ul {
  padding-left: 1.6rem;
}

.two-columns > div:first-child li {
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.two-columns strong {
  color: var(--navy);
  font-weight: 700;
}

.paper-limit {
  font-weight: normal;
}

/* Lista de topics */

.two-columns > div:last-child ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.two-columns > div:last-child li {
  margin-bottom: 0.8rem;
  line-height: 1.65;
}

/* =================================
   PANEL DERECHO: TOPICS OF INTEREST
================================= */

.topic-panel {
  background: var(--cream);
  border-top: 6px solid var(--gold);
  padding: 2.5rem 2.5rem 2rem;
}

.topic-panel h3 {
  margin-bottom: 1.8rem;
}

.topic-panel ul {
  margin: 0;
  padding-left: 1.5rem;
}

/*
   Si el div derecho no tiene la clase
   topic-panel, también se le aplica
   este estilo automáticamente.
*/

.two-columns > div:last-child {
  background: var(--cream);
  border-top: 6px solid var(--gold);
  padding: 2.5rem 2.5rem 2rem;
}

.two-columns > div:last-child h3 {
  margin-bottom: 1.8rem;
}

/* =================================
   TARJETAS
================================= */

.topic-card {
  background: var(--cream);
  border-top: 5px solid var(--gold);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.topic-card h3 {
  margin-top: 0;
}

.topic-card p {
  margin-bottom: 0;
}

/* =================================
   FECHAS IMPORTANTES
================================= */

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.date-card {
  background: var(--cream);
  border-top: 5px solid var(--gold);
  padding: 1.5rem;
}

.date-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.date-card p {
  margin-bottom: 0;
}

/* =================================
   SECCIÓN DE CONTACTO
================================= */

.contact-section {
  background: var(--light-blue);
  padding: 4rem 5%;
}

.contact-section .section {
  padding-top: 0;
  padding-bottom: 0;
}

/* =================================
   BOTONES
================================= */

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.button:hover {
  background: var(--navy);
  color: var(--white);
}

/* =================================
   FOOTER
================================= */

footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem 5%;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

/* =================================
   TABLETS
================================= */

@media (max-width: 1100px) {
  .header-container {
    gap: 1.5rem;
  }

  .logo {
    font-size: 2rem;
  }

  nav {
    gap: 1rem;
  }

  .two-columns {
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
  }

  .two-columns > div:last-child {
    padding: 2rem;
  }
}

/* =================================
   PANTALLAS PEQUEÑAS
================================= */

@media (max-width: 850px) {
  header {
    position: static;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
    gap: 0.8rem 1.2rem;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .two-columns > div:first-child {
    padding-right: 0;
  }

  .two-columns > div:last-child {
    padding: 2rem;
  }

  .date-grid {
    grid-template-columns: 1fr;
  }

  .intro,
  .section {
    width: 88%;
    padding: 3rem 0;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.35rem;
  }
}

/* =================================
   TELÉFONOS
================================= */

@media (max-width: 768px) {

     .opening-quote {
        margin: 1rem auto;
        padding: 1.5rem 1rem;
    }

    .opening-quote p:first-child {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .opening-quote p:last-child {
        font-size: 0.7rem;
        line-height: 1.4;
    }
   body {
    font-size: 14px;
  }

  header {
    padding: 1rem 6%;
  }

  .logo {
    font-size: 1.9rem;
  }

  .intro,
  .section {
    width: 86%;
  }

  .intro h1 {
    font-size: 1.8rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .topic-panel,
  .two-columns > div:last-child {
    padding: 1.5rem;
  }
}


.language-selector {
  display: inline-flex;
  gap: 8px;
  margin-left: 15px;
}

.language-selector a {
  text-decoration: none;
  font-size: 1.2rem;
}


.committee-list {
  padding-left: 1.5rem;
}

.committee-member {
  margin-bottom: 2rem;
  padding-left: 0.5rem;
}

.committee-member h3 {
  margin-bottom: 0.5rem;
}

.committee-member p {
  margin-bottom: 0.4rem;
}



.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-title {
    font-family: Arial, sans-serif;
    font-size: 50px;
    font-weight: 400;
    color: #003b68;
    line-height: 1.1;
}

.brand-title .year {
    color: #b57b2a;
}

.co-located {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #003b68;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.co-located strong {
    color: #b57b2a;
    font-weight: 600;
}
/* Botón hamburguesa: oculto en escritorio */
.menu-toggle {
    display: none;
}

/* Versión móvil */
@media (max-width: 768px) {
 .site-header {
        position: relative;
    }

        .menu-toggle {
        display: block !important;
        position: fixed !important;
        top: 10px !important;
        right: 30px !important;
        z-index: 999999 !important;

        background: white !important;
        border: none !important;
        color: #12395b !important;
        font-size: 50px !important;
        line-height: 1 !important;
        padding: 5px 10px !important;
        cursor: pointer !important;
    }

.nav {
    display: none;
    position: fixed;
    top: 180px;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 40px;
    box-sizing: border-box;
    background: white;
    z-index: 999998;
}

.nav.open {
    display: flex !important;
}

.nav a {
    margin: 5px 0;
    font-size: 18px;
}

    .language-selector {
        display: flex;
        gap: 15px;
        margin-top: 10px;
    }
}

/* Reducir espacio entre el banner y la cita */
.opening-quote {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

@media (max-width: 768px) {
    button#menuToggle {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
    }
}

/* Ocultar menú hamburguesa en laptop/desktop */
#menuToggle {
    display: none !important;
}

/* Mostrar menú hamburguesa solo en móvil */
@media (max-width: 768px) {
    #menuToggle {
        display: block !important;
        font-size: 50px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 768px) {
    #menuToggle {
        font-size: 32px !important;
        width: auto !important;
        height: auto !important;
        padding: 5px 10px !important;
        line-height: 1 !important;
    }
}

.nav-submit {
  padding: 0.6rem 1rem;
  border: 1px solid #b47a25;
  border-radius: 4px;
  color: #b47a25;
  font-weight: 700;
  text-decoration: none;
  margin-left: auto;
  margin-top: 1rem;
  position: relative;
  top: 8px;
}

.nav-submit:hover {
  text-decoration: none;
}
