/* =====================================================
   CONGRESO 2026 — MASTER STYLESHEET
   Asociación de Ecuatorianistas · UArtes
===================================================== */

/* ===============================
   RESET LOCAL
=============================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f7f9fa;
  color: #24323d;
  line-height: 1.5;
  max-width: none;
}

/* ===============================
   VARIABLES (UArtes)
=============================== */

:root {
  --ua-navy: #0f2d3f;
  --ua-teal: #0c707f;
  --ua-deep-teal: #2f6f73;
  --ua-gold: #c9a24d;
  --ua-dark: #1f2d36;
  --ua-light: #ffffff;
  --ua-muted: #6b7a86;
}

/* =====================================================
   LAYOUT
===================================================== */

.congreso-container {
  max-width: 1100px;
  padding: 1.75rem 1.5rem; /* was 3rem */
  margin: 1.5rem auto 2rem; /* was 2rem auto 3rem */
}
                                                                                                          ddcc
/* =====================================================
   CONTENT SECTIONS (texto editorial)
===================================================== */

.congreso-section {
  max-width: 800px;              /* ancho de lectura */
  background: var(--ua-light);
  border-radius: 14px;
   padding: 1.75rem;        /* was 2.5rem */
  margin: 0 auto 1.5rem;   /* was 2.5rem */
}

.congreso-section h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--ua-deep-teal);
}

.congreso-section p {
  margin-bottom: 1.1rem;
  line-height: 1.65;
}

.congreso-section:last-child {
  margin-bottom: 0.75rem;
}


/* =====================================================
   LISTS — CONGRESO 2026 (Decorative)
   Applies only inside editorial content blocks
===================================================== */

.congreso-section ul {
  list-style: none;
  padding-left: 22px;
  margin: 1.25rem 0;
}

.congreso-section li {
  position: relative;
  padding-left: 26px;
  margin: 0.65rem 0;
  line-height: 1.6;
}

/* Gold diamond marker */
.congreso-section li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--ua-gold);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Links inside lists */
.congreso-section li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ua-deep-teal);
}

.congreso-section li a:hover {
  text-decoration: underline;
  color: var(--ua-navy);
}


/* =====================================================
   PROPUESTAS / FORMULARIOS
===================================================== */

.congreso-form {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.congreso-form iframe {
  width: 100%;
  min-height: 1450px;
  border: none;
}

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

.congreso-header {
  background-color: var(--ua-navy);
  color: #fff;
}

.congreso-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.congreso-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.congreso-brand img {
  height: 42px;
}

.congreso-brand span {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.congreso-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
}

.congreso-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.congreso-nav a:hover,
.congreso-nav a.active {
  opacity: 1;
  border-bottom-color: var(--ua-gold);
}


.congreso-topbar {
  background: #0b2436;
  padding: 0.4rem 1.5rem;
  font-size: 0.85rem;
}

.congreso-topbar a {
  color: #c9a24d;
  text-decoration: none;
  font-weight: 500;
}



/* =====================================================
   HERO
===================================================== */
.congreso-hero {
  padding: 3rem 2rem;     /* was 4.5rem */
  margin: 1.5rem auto 2rem; /* was 2rem auto 3rem */
}

.congreso-hero {
  position: relative;
  background-image: url("/congreso_2026/images/convocatoria_congresos_2026.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  padding: 4.5rem 2rem;
  margin: 2rem auto 3rem;
  text-align: center;
  overflow: hidden;
}

.congreso-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}

.congreso-hero > * {
  position: relative;
  z-index: 1;
}

.congreso-hero h1 {
  font-size: 2.4rem;
  color: var(--ua-dark);
  margin-bottom: 0.75rem;
}

.congreso-hero h2 {
  font-size: 1.25rem;
  color: var(--ua-deep-teal);
  margin-bottom: 1rem;
}

.congreso-hero p {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

/* CTA principal */
.congreso-cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ua-gold);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
}

.congreso-cta:hover {
  background: var(--ua-deep-teal);
}


/* =====================================================
   CONVOCATORIA – BANNER (NO IMAGE)
   Visual language aligned with main hero
===================================================== */

.banner-convocatoria {
  position: relative;
  background: #f4f7f9;              /* light institutional */
  border-radius: 18px;
  padding: 3rem;
  margin: 2.5rem 0 3.5rem;

  border-left: 6px solid var(--ua-gold);
}


.banner-convocatoria {
  overflow: hidden; /* required for background layer */
}


.banner-convocatoria::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("/congreso_2026/images/convocatoria_uartes.jpg");
  background-size: cover;
  background-position: center;

  opacity: 0.15;              /* very dim */
  filter: grayscale(100%);
  z-index: 1;
}


.banner-convocatoria > * {
  position: relative;
  z-index: 2;
}


.banner-texto {
  max-width: 760px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ua-dark);
  line-height: 1.4;
}

.banner-texto span {
  display: block;
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  color: #2f3b45;
}

.banner-cta {
  margin-top: 1.6rem;
}

.btn-convocatoria {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ua-gold);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-convocatoria:hover {
  background: var(--ua-deep-teal);
  transform: translateY(-2px);
}


.banner-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.banner-topic {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.banner-date {
  font-size: 1.05rem;
  font-weight: 500;
  color: #34424d;
}



/* ===============================
   PULL QUOTE – CONVOCATORIA
=============================== */

.pull-quote {
  max-width: 820px;
  margin: 1.5rem auto 2.5rem;
  padding-left: 1.25rem;

  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;

  color: var(--ua-dark);

  border-left: 4px solid var(--ua-gold);
}

@media (max-width: 768px) {
  .pull-quote {
    font-size: 1.05rem;
    margin: 1.25rem 1rem 2rem;
  }
}



/* =====================================================
   LINKS — CONGRESO 2026 (Subtle, no blue/underline)
   Scope: only inside Congreso pages
===================================================== */

/* Base link (editorial/content links only) */
.congreso-container a:not(.congreso-cta):not(.btn-convocatoria):not(.btn-propuestas):not(.btn-propuestas-secondary){
  color: var(--ua-deep-teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(201, 162, 77, 0.45); /* ua-gold */
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

/* Hover: slightly stronger marker (still not an underline) */
.congreso-container a:not(.congreso-cta):not(.btn-convocatoria):not(.btn-propuestas):not(.btn-propuestas-secondary):hover{
  color: var(--ua-navy);
  border-bottom-color: rgba(201, 162, 77, 0.9);
  background-color: rgba(201, 162, 77, 0.10);
  border-radius: 6px;
}

/* Visited should not turn purple */
.congreso-container a:not(.congreso-cta):not(.btn-convocatoria):not(.btn-propuestas):not(.btn-propuestas-secondary):visited{
  color: var(--ua-deep-teal);
}

/* Accessible focus */
.congreso-container a:not(.congreso-cta):not(.btn-convocatoria):not(.btn-propuestas):not(.btn-propuestas-secondary):focus-visible{
  outline: 3px solid rgba(201, 162, 77, 0.45);
  outline-offset: 3px;
  border-bottom-color: rgba(201, 162, 77, 0.9);
}

/* Nav links also excluded */
.congreso-header a,
.congreso-topbar a,
.congreso-nav a{
  border-bottom: none;
  padding-bottom: 0;
}
/* =====================================================
   FOOTER
===================================================== */

.congreso-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ua-muted);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
  .congreso-header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .congreso-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .banner-convocatoria {
    flex-direction: column;
    text-align: center;
  }
}



/* =====================================================
   ENVÍO DE PROPUESTAS
===================================================== */

.congreso-section h1 {
  font-size: 2rem;
  color: var(--ua-dark);
  margin-bottom: 1.25rem;
}

/* texto introductorio */
.congreso-section p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #2e3a44;
}

/* ===============================
   CTA – ENVÍO DE PROPUESTAS
=============================== */

.cta-propuestas {
  margin: 1.5rem 0 1.75rem; /* was 2.5rem 0 4rem */
  text-align: center;
}

.btn-propuestas {
  display: inline-block;
  padding: 14px 34px;
  background-color: var(--ua-gold);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 14px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-propuestas:hover {
  background-color: var(--ua-deep-teal);
  transform: translateY(-2px);
}


/* CTA secundario – dentro del contenido */
.btn-propuestas-secondary {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 12px 26px;
  background-color: var(--ua-deep-teal);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-propuestas-secondary:hover {
  background-color: var(--ua-navy);
  transform: translateY(-2px);
}

.cta-propuestas {
  margin: 2.5rem 0 4rem;
}


/* ===============================
   LOGO STRIP — XL, clickable
=============================== */

.logo-strip--xl{
  margin: 3rem 0 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,.12);
}

.logo-strip--xl .logo-strip__inner{
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap; /* en pantallas chicas baja a 2 por fila */
}

/* Tarjeta clickeable */
.logo-card{
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;

  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;

  width: min(280px, 100%);
  min-height: 160px;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.logo-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.18);
}

.logo-card:focus{
  outline: 3px solid rgba(4,110,178,.35);
  outline-offset: 3px;
}

/* Imagen */
.logo-card__img{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.logo-card__img img{
  height: 58px;      /* tamaño base grande */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Jerarquía: AE y UArtes más grandes */
.logo-card.is-primary .logo-card__img img{ height: 72px; }
.logo-card.is-secondary .logo-card__img img{ height: 66px; }

/* Etiqueta inferior */
.logo-card__label{
  font-size: .95rem;
  line-height: 1.15;
  text-align: center;
  opacity: .85;
}

/* Responsive */
@media (max-width: 900px){
  .logo-card{ width: min(320px, 100%); }
}

@media (max-width: 520px){
  .logo-card{
    width: 100%;
    min-height: 150px;
  }
  .logo-card__img img{ height: 52px; }
  .logo-card.is-primary .logo-card__img img{ height: 64px; }
  .logo-card.is-secondary .logo-card__img img{ height: 60px; }
}


/* =====================================================
   FORMULARIO (Google Forms)
===================================================== */

.congreso-form {
  max-width: 900px;
  margin: 0 auto 4rem;
  background: var(--ua-light);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.congreso-form iframe {
  width: 100%;
  min-height: 1450px;
  border: none;
  border-radius: 10px;
}


/* ===============================
   GOOGLE FORM EMBED
=============================== */

.congreso-form {
  width: 100%;
  margin: 2.5rem auto 0;
}

.congreso-form iframe {
  width: 100%;
  min-height: 1500px;
  border: none;
  display: block;
}

/* Optional: slightly wider layout for form pages only */
.page-envio-propuestas .congreso-container {
  max-width: 1200px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
  .congreso-section {
    padding: 2rem 1.5rem;
  }

  .congreso-section h1 {
    font-size: 1.7rem;
  }

  .congreso-form {
    padding: 1rem;
  }
}