/* ==========================================================================
   COMPTEXT 2026 — Base IC2S2 adaptada
   Referencia: styles.css de rcantillan/slides (IC2S2)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap");

.reveal {
  --r-background-color: #f7f9fc;
  --r-main-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-heading-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-main-color: #1f2937;
  --r-heading-color: #5431b2;
  --r-link-color: #315fbe;
  --r-link-color-hover: #24498f;
  --r-selection-background-color: #d8e4ff;
  --r-selection-color: #1e3a6d;
  --r-main-font-size: 30px;
  line-height: 1.2;
}

.reveal-viewport,
html,
body {
  background: #ffffff !important;
  background-image: none !important;
}

.reveal .slides {
  background: #ffffff !important;
}

.reveal .slides section {
  text-align: left;
  background: transparent !important;
  box-shadow: none !important;
}

/* Fuerza títulos arriba en slides normales */
.reveal .slides section:not(#title-slide) {
  padding-top: 0.15em;
}

.reveal .slides section:not(#title-slide) h2 {
  margin-top: 0 !important;
}

/* Evitar clipping de encabezados en slides normales */
.reveal .slides section:not(#title-slide) {
  overflow: visible !important;
}

/* Portada */
#title-slide.quarto-title-block {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #ffffff !important;
  border-top: 0;
  text-align: left !important;
}

#title-slide.quarto-title-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background-image: url("image/america-latam.jpg");
  background-size: contain;
  background-position: left center;
  background-color: #ffffff;
  background-repeat: no-repeat;
  z-index: 0;
}

#title-slide.quarto-title-block::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e3e9f2;
  z-index: 1;
}

#title-slide.quarto-title-block > * {
  position: relative;
  z-index: 2;
  margin-left: 50%;
  width: calc(50% - 2.25em);
  text-align: center !important;
  padding-left: 1.15em;
  padding-right: 1.1em;
  box-sizing: border-box;
}

#title-slide h1 {
  color: #2f2a85;
  font-size: 1.34em;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 3em;
  margin-bottom: 0.14em;
  font-weight: 700;
  text-shadow: none;
  text-align: center !important;
}

#title-slide .subtitle,
#title-slide h2 {
  font-family: var(--r-main-font);
  color: #475970;
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.1em;
  line-height: 1.25;
  text-align: center !important;
}

#title-slide .quarto-title-authors {
  position: absolute;
  left: 50%;
  bottom: 2.5em;
  width: 50%;
  margin: 0;
  padding-left: 1.15em;
  padding-right: 1.1em;
  text-align: center !important;
}

#title-slide .quarto-title-author-name {
  color: #5a6a82;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: block;
}

#title-slide .quarto-title-author-name::after {
  content: "PhD Computational Social Science (Accepted)\a London School of Economics";
  display: block;
  color: #1f2937;
  font-size: 0.75em;
  font-weight: 400;
  font-style: italic;
  margin-top: 0.3em;
  white-space: pre-line;
  line-height: 1.5;
}

#title-slide .quarto-title-authors::after {
  content: "8th Annual COMPTEXT Conference 2026";
  display: block;
  color: #ffffff;
  background: #5431b2;
  font-size: 0.38em;
  font-weight: 500;
  margin-top: 0.8em;
  padding: 0.4em 1em;
  border-radius: 3px;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#title-slide .date {
  display: none;
}

/* Jerarquía tipográfica compacta */
.reveal h2 {
  color: #5431b2;
  font-size: 1.12em;
  line-height: 1.16;
  margin: 0 0 0.36em 0;
  padding-bottom: 0.12em;
  border-bottom: 1px solid #d8deef;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reveal h3 {
  font-family: var(--r-main-font);
  font-size: 0.74em;
  color: #304866;
  font-weight: 600;
  margin: 0.24em 0 0.14em;
}

.reveal p,
.reveal li {
  color: var(--r-main-color);
  font-size: 0.78em;
  line-height: 1.28;
}

.reveal p {
  margin: 0.16em 0 0.26em;
}

.reveal ul,
.reveal ol {
  margin: 0.12em 0 0.18em 0.82em;
}

.reveal li {
  margin-bottom: 0.14em;
}

/* Código */
.reveal pre {
  background: #f8fbff !important;
  border: 1px solid #dde6f2;
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.52em;
  line-height: 1.22;
}

.reveal code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  background: #f1f6fd;
  color: #163d73;
  border-radius: 4px;
  padding: 0.1em 0.32em;
  font-size: 0.76em;
}

.reveal pre code {
  background: transparent;
  color: #334155;
  padding: 0;
}

/* Figuras */
.reveal figure img,
.reveal .slide-content .cell-output-display img {
  border: 1px solid #d6deea;
  border-radius: 6px;
  box-shadow: 0 3px 14px rgba(16, 35, 61, 0.08);
}

.reveal figcaption,
.reveal .figure-caption {
  color: #4d6078;
  font-size: 0.5em;
  margin-top: 0.25em;
}

/* Tablas */
.reveal table {
  border-collapse: collapse;
  font-size: 0.53em;
}

.reveal th {
  background: #ebeff8;
  color: #3d2b83;
  border: 1px solid #c9d6e8;
  font-weight: 600;
  padding: 0.26em 0.46em;
}

.reveal td {
  border: 1px solid #d4deec;
  color: #1f2a37;
  padding: 0.22em 0.44em;
}

.reveal tr:nth-child(even) {
  background: #f1f5fb;
}

/* Layout */
.reveal .columns .column {
  padding-right: 0.58em;
}

/* Footer y navegación */
.reveal .slide-number {
  color: #315d93 !important;
  font-size: 0.42em;
  opacity: 0.85;
}

.reveal .footer {
  color: #60748e;
  font-size: 0.42em;
}

.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(49, 95, 190, 0.35);
}

.reveal a:hover {
  color: var(--r-link-color-hover);
  border-bottom-color: rgba(36, 73, 143, 0.55);
}

/* --- Portada final limpia --- */
#title-slide h1 {
  margin-top: 5.2em !important;
  text-align: center !important;
  font-size: 1.14em;
}

#title-slide .subtitle,
#title-slide h2 {
  text-align: center !important;
}

#title-slide .date {
  display: none !important;
}

#title-slide .quarto-title-authors {
  position: absolute;
  left: 50%;
  bottom: 2em;
  width: 50%;
  padding-left: 1.15em;
  padding-right: 1.1em;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#title-slide .quarto-title-author-name::after {
  content: "PhD Computational Social Science (Accepted)\a London School of Economics";
  display: block;
  color: #1f2937;
  font-size: 0.75em;
  font-weight: 400;
  font-style: italic;
  margin-top: 0.3em;
  white-space: pre-line;
  line-height: 1.5;
}

#title-slide .quarto-title-authors::after {
  content: none;
}

/* Slides normales — reseteo explícito */
.reveal .slides section:not(#title-slide):not(#thank-you-slide) h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  text-align: left !important;
  font-size: 1.12em !important;
}

/* Thank You Slide - mirror of title slide */
#thank-you-slide {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
}

#thank-you-slide h2 {
  display: none !important;
}

/* Image on the RIGHT side via ::after */
#thank-you-slide::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 50% !important;
  background-image: url("image/america-latam.jpg") !important;
  background-size: contain !important;
  background-position: right center !important;
  background-color: #ffffff !important;
  background-repeat: no-repeat !important;
  z-index: 0 !important;
}

/* Vertical line separator */
#thank-you-slide::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 1px !important;
  background: #e3e9f2 !important;
  z-index: 1 !important;
}

#thank-you-slide .thank-you-content {
  position: relative !important;
  z-index: 2 !important;
  width: 50% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1em !important;
  box-sizing: border-box !important;
}

#thank-you-slide .thank-you-content h3 {
  color: #5431b2 !important;
  font-size: 1.6em !important;
  margin-bottom: 0.5em !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  border-bottom: none !important;
}

#thank-you-slide .thank-you-content p {
  font-size: 0.7em !important;
  margin: 0.15em 0 !important;
  text-align: center !important;
}

#thank-you-slide .thank-you-content p strong {
  color: #2f2a85 !important;
  font-size: 1.1em !important;
}

#thank-you-slide .thank-you-content p em {
  color: #1f2937 !important;
  font-style: italic !important;
}

#thank-you-slide .thank-you-content .email-link,
#thank-you-slide .thank-you-content .github-link {
  display: block !important;
  color: #315fbe !important;
  font-size: 0.6em !important;
  margin: 0.3em 0 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

#thank-you-slide .thank-you-content .github-link {
  margin-top: 0.2em !important;
}

