/*
 * FC WebFactory - Foundation v1.0
 * Usar con Enfold y clases CSS personalizadas en elementos Avia.
 * Primero este archivo; después un archivo de identidad visual del cliente.
 * No sobreescribe globalmente estilos del tema. Valores visuales por defecto.
 */
:root {
  --fc-navy: #071b36;
  --fc-blue: #1c65a9;
  --fc-green: #87b933;
  --fc-ink: #142641;
  --fc-muted: #66778a;
  --fc-surface: #ffffff;
  --fc-surface-alt: #f3f6fa;
  --fc-border: #e2e8ef;
  --fc-radius: 8px;
  --fc-radius-lg: 12px;
  --fc-shadow: 0 5px 22px rgba(8, 29, 58, .09);
  --fc-shadow-hover: 0 14px 28px rgba(8, 29, 58, .15);
  --fc-space-section: clamp(54px, 6vw, 88px);
}

/* Layout: aplica clases a Color Section, nunca a todos los sections */
#top .fc-section .container {
  padding-top: var(--fc-space-section);
  padding-bottom: var(--fc-space-section);
}
#top .fc-hero {
  background-position: center;
  background-size: cover;
}
#top .fc-hero .container {
  padding-top: clamp(76px, 10vw, 145px);
  padding-bottom: clamp(76px, 10vw, 145px);
}
#top .fc-hero h1,
#top .fc-hero h2,
#top .fc-hero p { color: #fff; }
#top .fc-hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.08; letter-spacing: -.025em; }
#top .fc-lead p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; }

/* Buttons: clase asignada al elemento Button en Avia */
#top .fc-button-primary a.avia-button,
#top a.avia-button.fc-button-primary,
#top .fc-button-primary.avia-button {
  background: var(--fc-green);
  border-color: var(--fc-green);
  color: var(--fc-navy);
  border-radius: 5px;
  font-weight: 700;
  padding: 13px 22px;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
#top .fc-button-secondary a.avia-button,
#top a.avia-button.fc-button-secondary,
#top .fc-button-secondary.avia-button {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 13px 22px;
  font-weight: 700;
}
#top .fc-button-primary a.avia-button:hover,
#top a.avia-button.fc-button-primary:hover { transform: translateY(-2px); box-shadow: var(--fc-shadow); }

/* Simple reusable card. Apply to an Avia Column. */
#top .fc-card,
#top .fc-profile,
#top .fc-resource,
#top .fc-committee {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
#top .fc-card:hover,
#top .fc-profile:hover,
#top .fc-resource:hover,
#top .fc-committee:hover { transform: translateY(-3px); box-shadow: var(--fc-shadow-hover); }
#top .fc-card { padding: 24px; }
#top .fc-card h3,
#top .fc-profile h3,
#top .fc-committee h3 { color: var(--fc-navy); }

/* Committee card: column with an Image and a Text Block */
#top .fc-committee { overflow: hidden; }
#top .fc-committee .avia-image-container { margin: 0; }
#top .fc-committee .avia-image-container img { display: block; width: 100%; height: 190px; object-fit: cover; }
#top .fc-committee .av_textblock_section {
  position: relative;
  padding: 46px 18px 26px;
  text-align: center;
  margin: 0;
}
#top .fc-committee .av_textblock_section h3 { margin: 0 0 9px; font-size: 19px; }
#top .fc-committee .av_textblock_section p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fc-muted); }
#top .fc-committee-icon {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fc-blue);
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  border: 3px solid #fff;
}
#top .fc-committee-icon img { display: block; max-width: 43px; max-height: 43px; width: auto; height: auto; object-fit: contain; }

/* Student profile: image and native text content */
#top .fc-profile { overflow: hidden; }
#top .fc-profile .avia-image-container { margin: 0; }
#top .fc-profile .avia-image-container img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
#top .fc-profile .av_textblock_section { padding: 20px 22px 24px; }
#top .fc-profile .av_textblock_section h3 { font-size: 20px; margin: 0 0 5px; }
#top .fc-profile .av_textblock_section p { margin: 0 0 10px; line-height: 1.55; }

/* Resource / icon box card */
#top .fc-resource { padding: 24px 20px; }
#top .fc-resource h3,
#top .fc-resource h4 { color: var(--fc-navy); }

/* Process steps */
#top .fc-step { text-align: center; }
#top .fc-step .fc-step-number {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: var(--fc-green); color: var(--fc-navy);
  border-radius: 50%; font-weight: 700; margin-bottom: 12px;
}
#top .fc-step h3 { font-size: 17px; margin-top: 8px; }

/* Final CTA Color Section */
#top .fc-cta { background-color: var(--fc-navy); }
#top .fc-cta .container { padding-top: 54px; padding-bottom: 54px; }
#top .fc-cta h2, #top .fc-cta p { color: #fff; }

/* Accessibility & mobile */
#top .fc-committee a:focus-visible,
#top .fc-profile a:focus-visible,
#top .fc-card a:focus-visible,
#top .fc-resource a:focus-visible { outline: 3px solid var(--fc-green); outline-offset: 3px; }
@media (max-width: 767px) {
  #top .fc-hero .container { padding-top: 66px; padding-bottom: 66px; }
  #top .fc-committee .avia-image-container img { height: 205px; }
  #top .fc-card, #top .fc-resource { padding: 20px; }
  #top .fc-profile .av_textblock_section { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #top .fc-card, #top .fc-profile, #top .fc-resource, #top .fc-committee,
  #top .fc-button-primary a.avia-button { transition: none; }
  #top .fc-card:hover, #top .fc-profile:hover,
  #top .fc-resource:hover, #top .fc-committee:hover,
  #top .fc-button-primary a.avia-button:hover { transform: none; }
}
