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

:root {
  --acm-bg: #ffffff;
  --acm-bg-alt: #f7f4f3;
  --acm-surface: #faf7f6;
  --acm-text: #1c1614;
  --acm-text-2: #453d38;
  --acm-text-2-lo: #574e48;
  --acm-text-3: #7a716b;
  --acm-text-3-lo: #8f8681;
  --acm-amber: #d92b2b;
  --acm-amber-hover: #b91c1c;
  --acm-border: rgba(0,0,0,0.09);
  --acm-border-soft: rgba(0,0,0,0.07);
  --acm-font-display: 'Oswald', sans-serif;
  --acm-font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--acm-bg);
  color: var(--acm-text);
  font-family: var(--acm-font-body);
  overflow-x: hidden;
}

img { max-width: 100%; }
.acm-grid-2, .acm-grid-3 { min-width: 0; }
.acm-grid-2 > *, .acm-grid-3 > * { min-width: 0; }

a { color: var(--acm-amber); text-decoration: none; }
a:hover { color: var(--acm-amber-hover); }
::selection { background: var(--acm-amber); color: var(--acm-bg); }

.acm-container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }

/* ---------- Header ---------- */
.acm-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5vw;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--acm-border);
}
.acm-nav { display: flex; align-items: center; gap: 28px; }
.acm-nav a.acm-navlink { color: #3a332e; font-size: 14px; font-weight: 600; }
.acm-btn-amber {
  background: var(--acm-amber); color: var(--acm-bg) !important;
  padding: 10px 20px; border-radius: 4px; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; display: inline-block;
}
.acm-btn-amber:hover { background: var(--acm-amber-hover); color: var(--acm-bg) !important; }
.acm-btn-outline {
  border: 1px solid rgba(0,0,0,0.25); color: var(--acm-text) !important;
  padding: 14px 24px; border-radius: 4px; font-weight: 700; font-size: 14px;
  text-transform: uppercase; display: inline-block;
}

/* ---------- Tipografía de secciones ---------- */
.acm-eyebrow {
  color: var(--acm-amber); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.acm-h1 {
  font-family: var(--acm-font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin: 0 0 20px;
}
.acm-h2 {
  font-family: var(--acm-font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin: 0 0 20px;
}
.acm-body-lg { font-size: 18px; line-height: 1.6; color: var(--acm-text-2); }
.acm-body { font-size: 14.5px; line-height: 1.7; color: var(--acm-text-2-lo); }

/* ---------- Tarjetas ---------- */
.acm-card {
  background: var(--acm-surface); border: 1px solid var(--acm-border-soft);
  border-radius: 10px; padding: 28px;
}
.acm-pill {
  display: inline-block; background: rgba(217,43,43,0.08);
  border: 1px solid rgba(217,43,43,0.35); color: #b91c1c;
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}

/* ---------- Carrusel ---------- */
.acm-carousel-track { display: flex; transition: transform 0.5s ease; }
.acm-carousel-img { flex: 0 0 100%; width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; }
.acm-dot { width: 8px; height: 8px; border-radius: 50%; cursor: pointer; }

/* ---------- Página interior genérica (Temario, Fotos, Formulario) ---------- */
.acm-page-hero {
  padding: 72px 5vw 40px; max-width: 900px; margin: 0 auto; text-align: center;
}
.acm-modulo {
  background: var(--acm-surface); border: 1px solid var(--acm-border-soft);
  border-radius: 8px; padding: 22px; margin-bottom: 16px;
}
.acm-modulo h3 {
  font-family: var(--acm-font-display); font-size: 15px; font-weight: 600;
  color: var(--acm-text); margin: 0 0 8px;
}
.acm-modulo ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; color: var(--acm-text-3); }

/* ---------- Galería de fotos ---------- */
.acm-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 40px 5vw 80px;
}
.acm-gallery img {
  width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--acm-border-soft);
}

/* ---------- Franjas de foto entre secciones ---------- */
.acm-photo-band { width: 100%; height: 260px; object-fit: cover; display: block; }
@media (max-width: 640px) { .acm-photo-band { height: 180px; } #acm-asc-band { aspect-ratio: 16/9; } }

/* ---------- Tarjetas de curso (home) ---------- */
.acm-course-card {
  background: var(--acm-surface); border: 1px solid var(--acm-border-soft);
  border-radius: 10px; padding: 28px; display: flex; flex-direction: column;
}
.acm-course-card h3 {
  font-family: var(--acm-font-display); font-size: 19px; font-weight: 700;
  text-transform: uppercase; margin: 0 0 10px; color: var(--acm-text);
}

/* ---------- Videos ---------- */
.acm-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.acm-video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #000; }
.acm-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.acm-video-caption { font-size: 13.5px; color: var(--acm-text-3); margin-top: 8px; text-align: center; font-style: italic; }
@media (max-width: 700px) { .acm-video-grid { grid-template-columns: 1fr; } }

/* ---------- Documentos ---------- */
.acm-doc-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--acm-surface); border: 1px solid var(--acm-border-soft);
  border-radius: 8px; padding: 16px 20px; margin-bottom: 12px;
}
.acm-doc-item span { font-family: var(--acm-font-display); font-weight: 600; font-size: 14.5px; }

/* ---------- Footer ---------- */
.acm-footer {
  text-align: center; padding: 28px; font-size: 12.5px; color: #6b6259;
  border-top: 1px solid var(--acm-border-soft); background: var(--acm-bg-alt);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .acm-grid-2 { grid-template-columns: 1fr !important; }
  .acm-grid-3 { grid-template-columns: 1fr !important; }
  .acm-gallery { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .acm-nav-links { display: none !important; }
  .acm-gallery { grid-template-columns: 1fr !important; }
}
