/* =========================================
   Asociación de Ecuatorianistas (Institutional)
   Palette: Navy + Gold
========================================= */

/* =====================================================
   Asociación de Ecuatorianistas
   Main Stylesheet — v1.4
   Last updated: 2026-01-29
===================================================== */

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

:root {
  --navy: #0F2E4C;
  --teal: #1F6F8B;
  --gold: #C6A04A;
  --bg: #F7F8FA;
  --text: #222222;
  --soft-gray: #E6E8EC;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 20px;
}

a {
  color: #0b5fa5;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  background-color: #0e2a47; /* navy */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 48px;
  width: auto;
}

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

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.main-nav li.active a,
.main-nav a:hover {
  color: #d4af37; /* gold */
}

/* =============================== 
     Header - clearance
=============================== */

.page-content {
  margin-top: 3rem;
}

.page-content {
  padding-bottom: 4rem;
}

.page-content h3 {
  margin-bottom: 1.5rem;
}

.about-section p {
  margin-bottom: 1.5rem;
}

.section-intro {
  margin-bottom: 2rem;
}

/* =============================== 
      BANNER
=============================== */

.banner-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.banner-topic {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  opacity: 0.95;
}

.banner-date {
  font-size: 0.95rem;
  opacity: 0.85;
}




/* ==============================
   Decorative Lists (Content Pages)
   ============================== */

.page-content ul {
  list-style: none;          /* remove default bullets */
  padding-left: 22px;        /* breathing room from edge */
  margin: 18px 0;
}

.page-content li {
  position: relative;
  padding-left: 26px;        /* space for marker */
  margin: 10px 0;
  line-height: 1.6;
}

/* Decorative marker */
.page-content li::before {
  content: "✦";              /* or "›" if preferred */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-gold);
  font-weight: 700;
}

/* Links inside lists */
.page-content li a {
  text-decoration: none;
  font-weight: 500;
}

.page-content li a:hover {
  text-decoration: underline;
}




/* =============================== 
     Comite ejecutivo - clearance
=============================== */

.committee-list li {
  margin-bottom: 1.75rem;
}

.committee-list li {
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

.committee-list a {
  color: #0b5fa5;
  text-decoration: none;
  font-weight: 500;
}

.committee-list a:hover {
  text-decoration: underline;
}

.committee-list a::before {
  content: "✉ ";
  font-size: 0.9em;
  color: #666;
}

/* ===============================
     DRAFT BOX
=============================== */

.draft-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #fff3cd;
  border: 1px solid #f1c40f;
  font-size: 0.95rem;
  line-height: 1.4;
}




/* ===============================
     SECTION
=============================== */

.section-title::before {
  content: "▸";
  color: #caa24d;
  margin-right: 0.5rem;
}

/* ===============================
     FAVICON
=============================== */
<!-- Favicon -->
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="48x48" href="images/favicon/favicon-48x48.png">
<link rel="icon" type="image/png" sizes="64x64" href="images/favicon/favicon-64x64.png">
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="128x128" href="images/favicon/favicon-128x128.png">
<link rel="icon" type="image/png" sizes="192x192" href="images/favicon/favicon-192x192.png">
<link rel="icon" type="image/png" sizes="256x256" href="images/favicon/favicon-256x256.png">
<link rel="icon" type="image/png" sizes="512x512" href="images/favicon/favicon-512x512.png">

<link rel="shortcut icon" href="images/favicon/favicon.ico">

<!-- Web App Manifest -->
<link rel="manifest" href="images/favicon/site.webmanifest">

/* ===============================
   NAVBAR
=============================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  background: var(--navy);
  border-radius: 14px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  height: 52px;
  width: auto;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  color: white;
  font-weight: 500;
  text-decoration: none;
}

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

/* ===============================
   MAIN NAV — GOLD LINE ON HOVER
   (top-level + dropdown trigger)
=============================== */

/* enlaces de primer nivel */
.main-nav > ul > li > a {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

/* hover normal */
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  border-bottom-color: #d4af37; /* dorado */
}

/* cuando el dropdown está abierto / en hover */
.main-nav > ul > li.has-dropdown:hover > a {
  border-bottom-color: #d4af37;
}

/* -------------------------------
   limpiar submenú (dropdown)
-------------------------------- */

.main-nav .dropdown a {
  border-bottom: none !important;
  padding-bottom: 0;
}

/* ===============================
  DROPDOWNS
=============================== */

.main-nav ul {
  position: relative;
}

.has-dropdown {
  position: relative;
}

/* Hide dropdown by default */
.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0e2a47;
  min-width: 200px;
  padding: 0.5rem 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 999;
}

/* Show ONLY the hovered item’s dropdown */
.has-dropdown:hover > .dropdown {
  display: block;
}

/* Ensure dropdown items stack cleanly */
.dropdown li {
  white-space: nowrap;
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: #ffffff;
}

.dropdown a:hover {
  background-color: rgba(255,255,255,0.08);
  color: #d4af37;
}

/* Mission section spacing */
.mission-section {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.mission-section h4 {
  margin-bottom: 1.25rem;
}

/* List spacing */
.mission-list {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}

.mission-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Mission note (footnote-like) */
.mission-note {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  max-width: 900px;
}

.about-block {
  margin-bottom: 3rem;
}

.about-block h4 {
  margin-bottom: 1rem;
}

.mission-note {
  font-size: 0.95rem;
  color: #555;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.highlight-block {
  background-color: #f5f7f9;
  padding: 1.5rem;
  border-left: 4px solid #0e2a47;
}

/* ===============================
   HERO SECTION
=============================== */

.hero {
  margin: 0 0 60px;
  padding: 90px 30px;
  text-align: center;

  background-image: url("images/trasfondo_hero_2026_AE.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;
}

/* overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 0;
}

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

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.15rem;
  color: #333;
  max-width: 720px;
  margin: 0 auto 25px;
  line-height: 1.5;
}

.hero {
  margin-bottom: 1.5rem;
}

.hero .cta {
  display: inline-block;
  padding: 14px 26px;
  background: var(--gold);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero .cta:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

/* ===============================
   HERO WITH BACKGROUND IMAGE
=============================== */

.hero.has-bg {
  position: relative;
  background-image: url("/images/trasfondo_hero_2026_AE.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

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

/* ===============================
   SECTION VISUAL (Publicaciones)
=============================== */

.section-visual {
  margin: 30px 0 25px;
  text-align: center;
}

.section-image {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ===== Page hero (internal pages) ===== */

.page-hero.has-bg{
  position: relative;
  margin: 22px 0 34px;
  border-radius: 18px;
  overflow: hidden;

  min-height: 320px;          /* ajusta 260–420 según te guste */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero.has-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,0.35);  /* ajusta 0.25–0.55 */
}

.page-hero-inner{
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 320px;
}

/* ===============================
   HERO – CONGRESOS
=============================== */

.hero-congresos {
  background-image: url("images/congreso_ecuatorianistas.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 40px 0 60px;
  padding: 90px 30px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

/* soft overlay for readability */
.hero-congresos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 0;
}

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

.hero-congresos h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.hero-congresos p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
}



/* ===============================
   BUTTON
=============================== */
.btn-primary:hover {
  background-color: #b08d3c;
  transform: translateY(-1px);
}

/* ===============================
   CONGRESOS
=============================== */
.congreso-list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ===============================
   PUBLICATIONS
=============================== */

.pub-list {
  margin-top: 1.5rem;
}

.pub-list li {
  margin-bottom: 2rem;
}

.pub-list li a {
  display: inline-block;
  margin-bottom: 0.4rem;
}

.publication-block {
  margin-top: 3rem;
}

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

footer {
  margin-top: 60px;
  padding: 25px;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
}

/* ===== Header base ===== */
.site-header {
  background: var(--navy);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.site-logo img {
  height: 46px;
}

/* ===== Nav desktop ===== */
.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Dropdown desktop */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  background: #0e2a47;
  top: 100%;
  left: 0;
  min-width: 200px;
}

.has-dropdown:hover .dropdown {
  display: block;
}

/* ===== ACTIVE LINK ===== */
.nav-menu a.active {
  border-bottom: 2px solid #c9a24d;
  padding-bottom: 4px;
}

/* ===== ACTIVE DROPDOWN PARENT ===== */
.has-dropdown.active-parent > a {
  border-bottom: 2px solid #c9a24d;
  padding-bottom: 4px;
}

/* Optional: subtle emphasis */
.has-dropdown.active-parent > a,
.nav-menu a.active {
  font-weight: 600;
}

/* ===============================
   MOBILE NAV
=============================== */

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--navy);
    margin-top: 1rem;
    padding: 1rem 0;
    border-radius: 12px;
  }

  .main-nav ul.open {
    display: flex;
  }

  .main-nav li {
    padding: 0.6rem 1.2rem;
  }

  /* Dropdowns on mobile */
  .has-dropdown > .dropdown {
    display: none;
    position: static;
    background: none;
    padding-left: 1rem;
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--navy);
    padding: 10px 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    padding: 10px 20px;
  }

  /* Disable hover dropdowns */
  .dropdown {
    position: static;
    background: #0b2436;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }
}




/* =====================================================
   ACCORDION CARDS — CLEAN BASE
===================================================== */

.accordion-wrapper {
  margin-top: 40px;
}

.accordion-item {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ---------- Top color strip ---------- */
.accordion-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 12px;
  width: 100%;
  background: #e5e7eb; /* fallback */
}

/* Strip colors per card */
.accordion-item:has(.card-quienes)::before {
  background: #1f6f8b; /* teal */
}

.accordion-item:has(.card-congresos)::before {
  background: linear-gradient(to right, #c6a04a, #e1c27a);
}



.accordion-item:has(.card-publicaciones)::before {
  background: linear-gradient(
    to right,
    #0f2e4c,
    #244a6d
  );
}


.accordion-item:has(.card-comunicados)::before {
  background: #6b7280; /* slate */
}

/* ---------- Accordion title ---------- */
.accordion-title {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.75rem 2rem;
  background: #ffffff;
  border: none;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2e4c;
}

.accordion-title span {
  font-size: 1.4rem;
  color: #c6a04a;
}

/* ---------- Accordion content ---------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  transition: max-height 0.3s ease;
}

.accordion-content ul,
.accordion-content p {
  padding: 1.25rem 0 1.75rem;
}

/* =====================================================
   ACCORDION — TOP COLOR STRIP (FINAL)
===================================================== */

.accordion-item {
  position: relative;
  overflow: hidden;
  padding-top: 12px; /* SPACE for the strip */
}

/* the strip itself */
.accordion-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 12px;

  background: #e5e7eb; /* fallback */
  z-index: 2;
}

/* card content sits below the strip */
.accordion-item > * {
  position: relative;
  z-index: 3;
}


/* =====================================================
   ACCORDION — LEFT ICONS (SAFE, NON-DESTRUCTIVE)
===================================================== */

.accordion-title {
  position: relative;
  padding-left: 5.5rem; /* space for icon */
}

/* base icon slot */
.accordion-title::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

  background-size: cover;
  background-position: center;
  border-radius: 10px;

  opacity: 0.9;
}

/* === ICONS BY SECTION === */

.card-quienes::before {
  background-image: url("/images/cards/quienes.jpg");
}

.card-congresos::before {
  background-image: url("/images/cards/congresos.jpg");
}

.card-publicaciones::before {
  background-image: url("/images/cards/publicaciones.jpg");
}

.card-comunicados::before {
  background-image: url("/images/cards/comunicados.jpg");
}





