/* ===================================================================
   VII Congreso Patagónico de EF – Bariloche 2026
   Stylesheet
   =================================================================== */

/* ── Reset & Base ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  background: #f0f4f8;
  line-height: 1.75;
}

a {
  color: #1a5276;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul {
  list-style: disc;
  padding-left: 1.4rem;
}

/* ── Photo Placeholders ──────────────────────────────────────────── */
.photo-placeholder {
  background: #cfd9e3;
  border: 2px dashed #8fa3b3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #607d8b;
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

.logo-ph   { width: 110px; height: 110px; flex-shrink: 0; object-fit: contain; border-radius: 12px; }
.crub-ph   { width: 100%; height: 200px; margin-bottom: 0.75rem; object-fit: cover; object-position: top; border-radius: 8px; display: block; }
.efei-ph   { width: 130px; height: 130px; flex-shrink: 0; object-fit: contain; }

/* ── Card ────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  margin-bottom: 1.75rem;
}

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #14375a 0%, #1f5f8b 100%);
  color: #fff;
  padding: 2rem 1rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-text { flex: 1; }

.header-org {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8d4f0;
  margin-bottom: 0.6rem;
}

.site-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.header-subtitle {
  font-style: italic;
  color: #cce4f6;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.header-date {
  font-size: 1rem;
  font-weight: 700;
  color: #f0b429;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.main-nav {
  background: #14375a;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-tabs {
  list-style: none;
  padding: 0;
  display: flex;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #a8d4f0;
  padding: 1rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: #f0b429;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Tab Panels ──────────────────────────────────────────────────── */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Container ───────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Section title ───────────────────────────────────────────────── */
.section-title,
.tab-panel > .container > h2:first-child {
  color: #14375a;
  font-size: 1.75rem;
  border-bottom: 3px solid #f0b429;
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}

.tab-panel h3 {
  color: #14375a;
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

/* ── INICIO: organiza block ──────────────────────────────────────── */
.organiza-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.organiza-block h2 {
  color: #14375a;
  font-size: 1.5rem;
  border-bottom: 3px solid #f0b429;
  padding-bottom: 0.35rem;
  margin-bottom: 0.85rem;
}

.organiza-text p {
  margin-bottom: 0.65rem;
}

.locacion-line {
  font-size: 0.95rem;
}

.links-block {
  margin-top: 1rem;
}

.btn-primary {
  display: inline-block;
  background: #14375a;
  color: #fff;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  background: #1f5f8b;
  text-decoration: none;
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cdd8e1;
}

/* ── INICIO: fundamentación ──────────────────────────────────────── */
.fundamentacion h2 {
  color: #14375a;
  font-size: 1.5rem;
  border-bottom: 3px solid #f0b429;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.fundamentacion p {
  margin-bottom: 1rem;
}

.fundamentacion p:last-child {
  margin-bottom: 0;
}

/* ── INICIO: validaciones ────────────────────────────────────────── */
.validaciones {
  border-left: 4px solid #1f5f8b;
  background: #e8f3fb;
  border-radius: 0 8px 8px 0;
}

.validaciones h3 {
  margin-bottom: 0.5rem;
}

.validaciones li {
  margin-bottom: 0.35rem;
}

/* ── CONGRESO: format grid ───────────────────────────────────────── */
.intro-text {
  font-size: 1.02rem;
  color: #4a5568;
  margin-bottom: 2rem;
}

.formato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.formato-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border-top: 4px solid #f0b429;
}

.formato-icon {
  font-size: 1.9rem;
  margin-bottom: 0.55rem;
}

.formato-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.formato-card p {
  font-size: 0.93rem;
  color: #4a5568;
}

/* ── CONGRESO: info blocks ───────────────────────────────────────── */
.info-block p,
.info-block li {
  color: #4a5568;
}

.info-warning {
  border-left: 4px solid #f0b429;
  background: #fefbe9;
}

/* ── CONGRESO: circulares ────────────────────────────────────────── */
.circulares-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}

.circulares-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eef0f2;
}

.circulares-list li:last-child {
  border-bottom: none;
}

.circular-icon { font-size: 1rem; }

.circular-link {
  font-weight: 600;
  color: #14375a;
  font-size: 0.97rem;
}

.circular-past-text {
  color: #b0b8c1;
  font-size: 0.93rem;
  text-decoration: line-through;
}

/* ── INSCRIPCIONES: table ────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.75rem;
}

.aranceles-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.91rem;
}

.aranceles-table thead th {
  background: #14375a;
  color: #fff;
  padding: 1rem 1.1rem;
  text-align: left;
  font-weight: 600;
  vertical-align: top;
}

.th-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: #a8d4f0;
}

.aranceles-table td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid #eef0f2;
  vertical-align: middle;
}

.aranceles-table tr:last-child td {
  border-bottom: none;
}

.aranceles-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.aranceles-table tbody tr:hover {
  background: #eaf3fb;
}

.aranceles-table .row-free {
  background: #eafaf1 !important;
}

.aranceles-table .amount {
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.93rem;
}

.aranceles-table .free {
  color: #1a7a40;
}

/* ── INSCRIPCIONES: formularios ──────────────────────────────────── */
.formularios-block p {
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.formularios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
}

.formulario-btn {
  display: inline-block;
  background: #1a7a40;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.formulario-btn:hover {
  background: #14612e;
  text-decoration: none;
  transform: translateY(-2px);
}

.form-expired {
  font-weight: 400;
  font-style: italic;
  opacity: 0.85;
}

/* ── CONTACTO ────────────────────────────────────────────────────── */
.contacto-box p {
  color: #4a5568;
}

.email-link {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #14375a;
  word-break: break-all;
  margin: 0.9rem 0;
}

.email-link:hover {
  color: #1f5f8b;
}

.contacto-nota {
  font-size: 0.92rem;
  color: #657080;
  margin-top: 0.75rem;
}

.comision-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.comision-list li {
  background: #f1f6fb;
  border-left: 3px solid #14375a;
  border-radius: 0 5px 5px 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
}

/* ── CONEXIONES ──────────────────────────────────────────────────── */
.conexion-block h2 {
  font-size: 1.5rem;
  color: #14375a;
  border-bottom: 3px solid #f0b429;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.conexion-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1rem;
}

.conexion-inner p {
  margin-bottom: 0.55rem;
  color: #4a5568;
}

.congresos-ant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.congreso-ant-group h4 {
  font-size: 0.96rem;
  color: #14375a;
  margin-bottom: 0.55rem;
}

.congreso-ant-group ul {
  list-style: none;
  padding: 0;
}

.congreso-ant-group li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #e5eaee;
  color: #4a5568;
  font-size: 0.93rem;
}

.congreso-ant-group li:last-child {
  border-bottom: none;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: #0e2840;
  color: #8fb8d6;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.83rem;
}

.footer-inner p {
  margin-bottom: 0.3rem;
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 780px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .site-header h1 {
    font-size: 1.15rem;
  }

  .organiza-block {
    grid-template-columns: 1fr;
  }

  .conexion-inner {
    flex-direction: column;
    align-items: center;
  }

  .efei-ph {
    margin-bottom: 1rem;
  }

  .formularios-grid {
    flex-direction: column;
  }

  .tab-btn {
    padding: 0.75rem 0.9rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .site-header h1 {
    font-size: 1.05rem;
  }

  .header-date {
    font-size: 0.9rem;
  }
}
