/* CFP5 - Estética escuela técnica moderna */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --cfp-bg: #0b0f14;
  --cfp-bg-grid: #0d1219;
  --cfp-surface: #131a22;
  --cfp-surface-2: #1a2332;
  --cfp-text: #e8edf4;
  --cfp-text-muted: #7d8fa3;
  --cfp-accent: #f97316;
  --cfp-accent-hover: #fb923c;
  --cfp-tech: #22d3ee;
  --cfp-border: #2a3647;
  --cfp-radius: 6px;
  --cfp-radius-lg: 10px;
  --cfp-font-title: 'Space Grotesk', system-ui, sans-serif;
  --cfp-font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --cfp-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cfp-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cfp-text);
  background: var(--cfp-bg);
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0;
  -webkit-font-smoothing: antialiased;
}

.cfp-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 900px) {
  .cfp-wrap { padding: 0 2rem; }
}

/* Nav - barra técnica */
.cfp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--cfp-border);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.06);
}

.cfp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.cfp-nav-logo {
  height: 2.5rem;
  display: block;
}

.cfp-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfp-nav-links a {
  color: var(--cfp-text-muted);
  text-decoration: none;
  font-family: var(--cfp-font-title);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cfp-nav-links a:hover {
  color: var(--cfp-tech);
  border-bottom-color: var(--cfp-tech);
}

.cfp-nav-social {
  display: flex;
  gap: 0.5rem;
}

.cfp-nav-social a {
  color: var(--cfp-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.cfp-nav-social a:hover {
  color: var(--cfp-accent);
}

/* Hero - bloque tipo placa técnica */
.cfp-hero {
  padding: 4.5rem 0 4rem;
  text-align: center;
  position: relative;
}

.cfp-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cfp-tech), transparent);
  opacity: 0.8;
}

.cfp-hero-badge {
  display: inline-block;
  font-family: var(--cfp-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cfp-tech);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: var(--cfp-radius);
}

.cfp-hero h1 {
  font-family: var(--cfp-font-title);
  font-size: clamp(1.85rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--cfp-text);
  letter-spacing: -0.02em;
}

.cfp-hero p {
  font-size: 1.0625rem;
  color: var(--cfp-text-muted);
  margin: 0 0 2rem;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

.cfp-btn {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  font-family: var(--cfp-font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cfp-bg);
  background: var(--cfp-accent);
  border: 2px solid var(--cfp-accent);
  border-radius: var(--cfp-radius);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cfp-btn:hover {
  background: var(--cfp-accent-hover);
  border-color: var(--cfp-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
}

.cfp-btn-outline {
  background: transparent;
  color: var(--cfp-accent);
  border: 2px solid var(--cfp-accent);
}

.cfp-btn-outline:hover {
  background: rgba(249, 115, 22, 0.12);
  color: var(--cfp-accent-hover);
  border-color: var(--cfp-accent-hover);
}

/* Contact cards */
.cfp-contact {
  padding: 2.5rem 0 4rem;
}

.cfp-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 540px) {
  .cfp-contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cfp-contact-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.cfp-card {
  background: var(--cfp-surface);
  border: 1px solid var(--cfp-border);
  border-left: 3px solid var(--cfp-tech);
  border-radius: var(--cfp-radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cfp-card:hover {
  border-left-color: var(--cfp-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cfp-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cfp-tech);
}

.cfp-card-label {
  font-family: var(--cfp-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cfp-text-muted);
  margin-bottom: 0.35rem;
}

.cfp-card-value {
  font-size: 1rem;
  font-weight: 500;
}

.cfp-card-value a {
  color: var(--cfp-text);
  text-decoration: none;
}

.cfp-card-value a:hover {
  color: var(--cfp-accent);
}

/* Section titles - estilo ficha técnica */
.cfp-section {
  padding: 3.5rem 0 4rem;
}

.cfp-section-title {
  font-family: var(--cfp-font-title);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--cfp-text);
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cfp-border);
  display: inline-block;
}

.cfp-section-title::before {
  content: '// ';
  color: var(--cfp-tech);
  font-weight: 500;
  opacity: 0.8;
}

.cfp-section-subtitle {
  font-size: 0.875rem;
  font-family: var(--cfp-font-mono);
  letter-spacing: 0.04em;
  color: var(--cfp-text-muted);
  margin: 0.75rem 0 2rem;
}

/* Cursos */
.cfp-cursos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .cfp-cursos-grid { grid-template-columns: 1fr 1fr; }
}

.cfp-curso-banner {
  position: relative;
  border-radius: var(--cfp-radius-lg);
  overflow: hidden;
  background: var(--cfp-surface-2);
  min-height: 280px;
}

.cfp-curso-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cfp-curso-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 23, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.cfp-curso-banner-overlay .cfp-btn {
  align-self: flex-start;
  margin-top: 0.75rem;
}

.cfp-curso-list {
  background: var(--cfp-surface);
  border: 1px solid var(--cfp-border);
  border-radius: var(--cfp-radius-lg);
  padding: 1.5rem 1.75rem;
}

.cfp-curso-list p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--cfp-text-muted);
}

.cfp-curso-list p:last-child {
  margin-bottom: 0;
}

.cfp-curso-list a {
  color: var(--cfp-accent);
}

.cfp-curso-list a:hover {
  color: var(--cfp-accent-hover);
}

/* Cursos 2026 1C - fichas tipo placa técnica */
.cfp-cursos-2026 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cfp-cursos-2026 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.cfp-curso-card {
  position: relative;
  background: var(--cfp-surface);
  border: 2px solid var(--cfp-border);
  border-left: 4px solid var(--cfp-tech);
  border-radius: var(--cfp-radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.cfp-curso-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--cfp-border);
  border-right: 2px solid var(--cfp-border);
  border-radius: 0 var(--cfp-radius-lg) 0 0;
}

.cfp-curso-card:hover {
  border-left-color: var(--cfp-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.cfp-curso-card--nuevo {
  border-left-color: var(--cfp-accent);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, var(--cfp-surface) 100%);
}

.cfp-curso-card--nuevo::before {
  border-top-color: var(--cfp-accent);
  border-right-color: var(--cfp-accent);
}

.cfp-curso-card--nuevo:hover {
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.2);
}

.cfp-curso-badge {
  display: inline-block;
  font-family: var(--cfp-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cfp-bg);
  background: var(--cfp-accent);
  padding: 0.35rem 0.7rem;
  border-radius: var(--cfp-radius);
  margin-bottom: 1rem;
}

.cfp-curso-hc {
  display: block;
  font-family: var(--cfp-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cfp-tech);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.cfp-curso-card--nuevo .cfp-curso-hc {
  color: var(--cfp-accent);
}

.cfp-curso-nombre {
  font-family: var(--cfp-font-title);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cfp-text);
  margin: 0;
}

@media (min-width: 640px) {
  .cfp-curso-nombre {
    font-size: 1.25rem;
  }
}

.cfp-cursos-cta-wrap {
  text-align: center;
  margin: 0;
}

.cfp-btn--big {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.4);
}

.cfp-btn--big:hover {
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.5);
}

.cfp-curso-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--cfp-border);
}

.cfp-curso-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.cfp-curso-item strong {
  color: var(--cfp-text);
  font-size: 1rem;
}

.cfp-curso-item .lap {
  font-size: 0.875rem;
  color: var(--cfp-accent);
}

/* Quiénes somos - ficha técnica */
.cfp-about {
  background: var(--cfp-surface);
  border: 2px solid var(--cfp-border);
  border-left: 4px solid var(--cfp-tech);
  border-radius: var(--cfp-radius-lg);
  padding: 2rem 1.75rem;
}

.cfp-about p {
  margin: 0 0 1.25rem;
  color: var(--cfp-text-muted);
  max-width: 72ch;
}

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

.cfp-about strong {
  color: var(--cfp-text);
  font-family: var(--cfp-font-title);
}

/* Map - marco tipo plano */
.cfp-map-wrap {
  border-radius: var(--cfp-radius-lg);
  overflow: hidden;
  border: 2px solid var(--cfp-border);
  border-left: 4px solid var(--cfp-tech);
  background: var(--cfp-surface);
}

.cfp-map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.cfp-map-address {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--cfp-text-muted);
  border-top: 1px solid var(--cfp-border);
}

/* Staff */
.cfp-staff {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 700px) {
  .cfp-staff { grid-template-columns: 280px 1fr; align-items: start; }
}

.cfp-staff-director {
  text-align: center;
}

.cfp-staff-director img {
  width: 100%;
  max-width: 240px;
  border-radius: var(--cfp-radius);
  border: 2px solid var(--cfp-border);
  border-left: 4px solid var(--cfp-tech);
  display: block;
  margin: 0 auto 1rem;
}

.cfp-staff-director strong {
  display: block;
  font-family: var(--cfp-font-title);
  font-size: 1.125rem;
  color: var(--cfp-text);
}

.cfp-staff-director span {
  font-size: 0.75rem;
  font-family: var(--cfp-font-mono);
  color: var(--cfp-tech);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cfp-staff-list {
  font-size: 0.9375rem;
  color: var(--cfp-text-muted);
  line-height: 1.8;
}

.cfp-staff-list strong {
  color: var(--cfp-text);
  font-family: var(--cfp-font-title);
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.cfp-staff-list strong:first-child {
  margin-top: 0;
}

/* Footer - línea técnica */
.cfp-footer {
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 2px solid var(--cfp-border);
  text-align: center;
  font-size: 0.8125rem;
  font-family: var(--cfp-font-mono);
  letter-spacing: 0.03em;
  color: var(--cfp-text-muted);
}

.cfp-footer p {
  margin: 0;
}

/* Util */
.cfp-anchor {
  scroll-margin-top: 5rem;
}
