/* ═══════════════════════════════════════════
   ROTEX Distrito 4340 — Estilos de Páginas Interiores
   css/pages.css
   ═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. PÁGINA: SOBRE ROTEX
   ───────────────────────────────────────── */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.sobre-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 69, 143, 0.08);
}

.sobre-img img {
  width: 100%; height: auto;
  display: block;
  object-fit: cover;
}

/* Timeline */
.timeline      { margin-top: 48px; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 28px; }

.timeline-dot {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}

.timeline-dot-circle {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--gold-light);
  box-shadow: 0 0 0 3px rgba(247, 168, 27, 0.1);
}

.timeline-dot-line {
  width: 2px;
  flex-grow: 1;
  background: rgba(23, 69, 143, 0.08);
  margin-top: 6px;
}

.timeline-item:last-child .timeline-dot-line { display: none; }

.timeline-year       { font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: 1px; margin-bottom: 4px; text-transform: uppercase; }
.timeline-content h4 { font-size: 15px; font-weight: 500; color: var(--blue); margin-bottom: 4px; }
.timeline-content p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

/* ─────────────────────────────────────────
   2. PÁGINA: EQUIPO
   ───────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }

.team-card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(23, 69, 143, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(23, 69, 143, 0.1);
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 17px; font-weight: 500; color: var(--blue); margin-bottom: 4px; }
.team-role { font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.team-country { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; font-weight: 300; }
.team-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; font-weight: 300; }

/* ─────────────────────────────────────────
   3. PÁGINA: VALORES (OBJETIVOS & NORMAS)
   ───────────────────────────────────────── */
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }

.valor-card {
  padding: 36px 28px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(23, 69, 143, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.valor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.valor-icon { width: 32px; height: 32px; color: var(--gold); margin-bottom: 16px; display: inline-block; }
.valor-icon .icon { width: 100%; height: 100%; }
.valor-title { font-size: 17px; font-weight: 500; color: var(--blue); margin-bottom: 8px; }
.valor-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

/* ─────────────────────────────────────────
   4. PÁGINA: FAQ
   ───────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 52px auto 0; }

.faq-item {
  background: var(--off-white);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(23, 69, 143, 0.03);
  transition: background 0.2s;
}

.faq-item.open { background: var(--white); border-color: rgba(23, 69, 143, 0.08); box-shadow: var(--shadow); }

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  color: var(--blue);
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(23, 69, 143, 0.06);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 16px;
  transition: all 0.25s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold-light); color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ─────────────────────────────────────────
   5. PÁGINA: MAPA MUNDIAL
   ───────────────────────────────────────── */
.mapa-section {
  padding-top: 40px; /* Reducir padding superior según el PDF */
}

.mapa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }

.mapa-stat {
  background: var(--off-white);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  border: 1px solid rgba(23, 69, 143, 0.04);
  transition: transform 0.2s ease;
}

.mapa-stat:hover { transform: translateY(-3px); }

.mapa-stat-num {
  font-family: var(--sans); /* Usar DM Sans (font más bonita / unificada) */
  font-size: 36px;
  font-weight: 700;
  color: var(--blue);
}

.mapa-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.mapa-placeholder {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  border-radius: 24px;
  padding: 64px 24px;
  text-align: center;
  color: #fff;
  margin-top: 28px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}

.mapa-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(247, 168, 27, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}

.mapa-globe { width: 64px; height: 64px; color: var(--gold); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.mapa-globe .icon { width: 100%; height: 100%; }

.mapa-placeholder h3 { font-family: var(--serif); font-size: 24px; color: #fff; margin-bottom: 10px; position: relative; }
.mapa-placeholder p  { font-size: 15px; color: rgba(255, 255, 255, 0.55); max-width: 480px; margin: 0 auto; line-height: 1.6; position: relative; font-weight: 300; }

.mapa-countries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; justify-content: center; }

.mapa-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 40px;
  background: var(--white);
  border: 1.5px solid rgba(23, 69, 143, 0.08);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.mapa-country:hover { border-color: var(--gold); background: var(--gold-light); color: var(--blue); }
.mapa-country .fi   { font-size: 24px; }

/* ─────────────────────────────────────────
   6. PÁGINA: CONTACTO
   ───────────────────────────────────────── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 48px; }

.contacto-info-item { display: flex; gap: 18px; margin-bottom: 24px; }

.contacto-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  border: 1px solid rgba(247, 168, 27, 0.25);
}

.contacto-icon .icon { width: 20px; height: 20px; }
.contacto-info-item h4 { font-size: 14px; font-weight: 500; color: var(--blue); margin-bottom: 3px; }
.contacto-info-item p  { font-size: 14px; color: var(--text-muted); font-weight: 300; }

.contacto-form    { background: var(--off-white); border-radius: 24px; padding: 36px; }
.contacto-form h3 { font-size: 20px; font-weight: 500; color: var(--blue); margin-bottom: 24px; }

/* ─────────────────────────────────────────
   7. PÁGINA: INSCRÍBETE
   ───────────────────────────────────────── */
.inscribete-hero {
  background: linear-gradient(160deg, var(--blue-deep), var(--blue-dark));
  padding: 100px 24px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}

.inscribete-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(247, 168, 27, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
}

.inscribete-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }

.inscribete-step-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(23, 69, 143, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.inscribete-step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.inscribete-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}

.inscribete-step-card h3 { font-size: 17px; font-weight: 500; color: var(--blue); margin-bottom: 8px; }
.inscribete-step-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-weight: 300; }

.inscribete-form-section { background: var(--off-white); padding: 72px 24px; }

.inscribete-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.inscribete-form-wrap h2   { font-family: var(--serif); font-size: 28px; color: var(--blue); margin-bottom: 6px; }
.inscribete-form-wrap .sub { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; font-weight: 300; }

/* ─────────────────────────────────────────
   8. RESPONSIVE (PÁGINAS) & ESTILOS DE EVENTOS Y VALORES
   ───────────────────────────────────────── */
.valores-conducta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 52px auto 0;
  gap: 24px;
}

/* Eventos Estilos Unificados */
.eventos-featured-inner {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  padding: 48px;
  border-radius: 24px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(247, 168, 27, 0.15);
  box-shadow: var(--shadow);
}
.eventos-featured-meta {
  text-align: right;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 36px;
}
.eventos-meta-date {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--sans);
  line-height: 1;
}
.eventos-meta-month {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.evento-card {
  background: var(--off-white);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(23, 69, 143, 0.05);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.evento-card:hover {
  transform: translateY(-3px);
}
.event-card-tag {
  display: inline-block;
  background: rgba(23, 69, 143, 0.06);
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 40px;
  margin-bottom: 16px;
}
.event-card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 10px;
}
.event-card-footer {
  margin-top: 24px;
  border-top: 1px solid rgba(23, 69, 143, 0.08);
  padding-top: 14px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}
.event-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 8px;
  z-index: 1;
}
.event-desc.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 100px;
}
.event-more-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  display: inline-block;
  font-family: var(--sans);
  text-align: left;
  outline: none;
  transition: color 0.15s;
}
.event-more-btn:hover {
  color: #ffc03a;
}

@media (max-width: 900px) {
  .sobre-grid,
  .contacto-grid { grid-template-columns: 1fr; gap: 36px; }

  .valores-grid,
  .valores-conducta-grid,
  .team-grid,
  .eventos-grid { grid-template-columns: repeat(2, 1fr); }

  .inscribete-steps { grid-template-columns: 1fr; }
  .mapa-stats  { grid-template-columns: repeat(2, 1fr); }

  .eventos-featured-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }
  .eventos-featured-meta {
    text-align: center;
    margin-top: 12px;
  }
}

@media (max-width: 600px) {
  .valores-grid,
  .valores-conducta-grid,
  .team-grid,
  .eventos-grid,
  .mapa-stats { grid-template-columns: 1fr; }

  .inscribete-form-wrap { padding: 28px 20px; }
}
