/* PROPIEDADES POR DEFECTO */
* {
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	box-sizing: border-box;
	transition: ease 0.3s;
}
a {text-decoration: none;}
div {
	width: 100%;
	/*overflow: hidden;
	position: relative;
	z-index: 4000;*/
}
h1, h2, h3 {
	font-family: "Cal Sans";
}
html {
	scroll-behavior: smooth;
}

/* FUENTES */
.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}
.cal-sans-regular {
  font-family: "Cal Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ICONOS */
.material-symbols-outlined {
	font-variation-settings:
	'FILL' 0,
	'wght' 400,
	'GRAD' 0,
	'opsz' 24
}

/* ====== Variables / tema ====== */
    :root{
      --apf-bg:#ffffff; --apf-fg:#0f172a; --apf-accent:#0a6cf1;
      --apf-muted:#475569; --apf-ring:#93c5fd; --apf-card:#f1f5f9;
    }
    html[data-theme="dark"]{
      --apf-bg:#0a1b2e; --apf-fg:#fff; --apf-accent:#00b3ff;
      --apf-muted:#c7d2fe; --apf-ring:#7dd3fc; --apf-card:#0f243d;
    }

/* PROPIEDADES DE LA PÁGINA */
body {
	cursor: default;
	font-family: "Poppins";
  background:var(--apf-bg); color:var(--apf-fg);
}

/* PORTADA */
.hero {
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: url(img/portada.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}
.hero .overlay {
	max-width: 1600px;
	text-align: center;
	color: white;
	background: rgba(255, 255, 255, 0.5);
	padding: 30px;
	text-shadow: 0px 3px 5px #000;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}
.hero img {
  width: 90%;
  max-width: 500px;
}
.hero h1 {
	font-size: 60px;
	margin-bottom: 0.3em;
}
.hero h2 {
	font-size: 96px;
}
.hero h3 {
	font-size: 36px;
	margin-bottom: 0.3em;
}
.hero h3.bienvenidos {
	font-size: 54px;
	margin-bottom: 0.3em;
}
.hero a {
	display: flex;
	flex-flow: column;
	color: white;
	font-weight: 500;
	font-size: 32px;
}
.hero a:hover {
	transform: scale(1.1);
}

@media screen and (max-width: 480px) {
  .hero .overlay {height: 100vh;}
}

    /* ====== Topbar (opcional) ====== */
    .apf-topbar{ position:sticky; top:0; z-index:20; display:flex; gap:12px; align-items:center; justify-content:center; padding:10px 20px; background:var(--apf-accent); color:#fff; font-size: 20px; }
    .apf-topbar__cta{ background:#fff; color:var(--apf-accent); padding:6px 10px; border-radius:999px; font-weight:600; text-decoration:none; }

    /* ====== Slider ====== */
    .apf-carousel{
      --slide-w: min(1100px, 92vw);
      --slide-h: clamp(240px, 36vw, 380px);
      margin: 24px auto; width: var(--slide-w); position: relative;
      border-radius: 16px; overflow: clip; background: var(--apf-card);
      box-shadow: 0 8px 24px rgba(0,0,0,.12);
    }
    .apf-viewport{ width:100%; height:var(--slide-h); position:relative; overflow:hidden; padding: 20px;}
    .apf-track{ display:flex; height:100%; transition: transform 500ms ease; will-change: transform; touch-action: pan-y; }
    .apf-slide{ min-width:100%; padding: clamp(16px, 2.6vw, 28px); display:grid; grid-template-columns: 1.2fr .8fr; gap: clamp(12px, 2vw, 24px); align-items:center; }
    .apf-media{ height:100%; border-radius:12px; overflow:hidden; background:#0003; }
    .apf-media img{ width:100%; height:100%; object-fit:cover; display:block; }
    .apf-content h3{ margin:0 0 8px; font-family:"Cal Sans", Poppins, system-ui; font-size: clamp(20px, 3.2vw, 28px); }
    .apf-content p{ margin:0 0 12px; color: var(--apf-muted); line-height:1.45; font-size: clamp(14px, 2.2vw, 16px); }
    .apf-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }
    .apf-btn{ appearance:none; border:0; border-radius:999px; padding:10px 14px; font-weight:700; cursor:pointer; background: var(--apf-accent); color:#fff; text-decoration:none; }
    .apf-btn--ghost{ background:transparent; color:var(--apf-accent); outline:2px solid var(--apf-accent); }
    .apf-btn:focus-visible{ outline: 3px solid var(--apf-ring); outline-offset:2px; }
    .apf-prev,.apf-next{ position:absolute; inset: 50% auto auto; transform: translateY(-50%); z-index:2; background: color-mix(in oklab, var(--apf-card), black 12%); border:0; width:42px; height:42px; border-radius:50%; display:grid; place-items:center; cursor:pointer; color: var(--apf-fg); }
    .apf-prev{ left:8px } .apf-next{ right:8px }
    .apf-dots{ position:absolute; left:0; right:0; bottom:8px; display:flex; gap:8px; justify-content:center; z-index:2; }
    .apf-dot{ width:9px; height:9px; border-radius:50%; border:0; cursor:pointer; background:#ffffff55; }
    .apf-dot[aria-current="true"]{ background: var(--apf-accent); }
    .apf-status{position:absolute; top:10px; right:12px; z-index:3; font-size:13px; font-weight:600; color:#fff; border-radius: 999px; padding: 4px 10px; line-height: 1; backdrop-filter: blur(2px);}
    @media (max-width: 760px){
      .apf-slide{ grid-template-columns: 1fr; }
      .apf-media{ order:-1; height: 44vw; }
    }
    @media (prefers-reduced-motion: reduce){
      .apf-track{ transition:none }
    }

    /* ====== Portal del buzón ====== */
    .apf-portal{ max-width:1100px; margin:24px auto; padding:0 16px; }
    .apf-portal__card{ background:var(--apf-card); color:var(--apf-fg); border-radius:16px; padding:20px; box-shadow:0 8px 24px rgba(0,0,0,.08); }
    .apf-portal header{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
    .apf-badge{ font-size:12px; padding:4px 10px; border-radius:999px; background:#22c55e; color:#fff; }
    .apf-portal__actions{ display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 16px; }
    .apf-portal__qr{ display:flex; flex-direction:column; align-items:center; gap:6px; margin:6px 0 0; }
    .apf-portal__qr img{ width:140px; height:140px; object-fit:contain; }
    .apf-portal__notes{ margin:12px 0 0; padding-left:18px; color:var(--apf-muted); }
    /* Loader pantalla completa */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}
#loader img {
  width: 75%; /* ajusta tamaño del GIF */
  max-width: 450px;
  height: auto;
}
#loader.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Equipo / Mesa directiva */
.apf-team{ max-width:1100px; margin:28px auto; padding:0 16px; }
.apf-team__header{ text-align:center; margin-bottom:12px; }
.apf-team__header h2{ margin:0 0 6px; font-family:"Cal Sans","Poppins",sans-serif; font-size:clamp(22px,3.4vw,30px); }
.apf-team__subtitle{ margin:0; color:var(--apf-muted); }

.apf-team__grid{
  list-style:none; margin:18px 0 0; padding:0;
  display:grid; gap:16px;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
}
.apf-team__card{
  background:var(--apf-card); color:var(--apf-fg);
  border-radius:14px; padding:14px;
  display:flex; flex-direction:column; align-items:center;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  text-align:center;
}
.apf-team__avatar{
  width:96px; height:96px; border-radius:50%; overflow:hidden; background:#e5e7eb; margin-bottom:10px;
}
.apf-team__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.apf-team__name{ margin:0 0 6px; font-size:16px; font-weight:600; }
.apf-team__role{
  display:inline-block; font-size:12px; font-weight:600; letter-spacing:.3px;
  color:var(--apf-accent); background:color-mix(in oklab, var(--apf-accent), white 85%);
  padding:4px 10px; border-radius:999px;
}
/* Placeholder para miembros sin foto */
.apf-team__avatar--ph {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--apf-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 28px;
  text-transform: uppercase;
}
