/* =========================================
   MetodoFP — Estilos principales
   ========================================= */

:root {
  --ink: #0f1117;
  --ink-soft: #3a3d4a;
  --ink-muted: #6b6e7e;
  --bg: #f7f6f2;
  --bg-alt: #eeecea;
  --surface: #ffffff;
  --accent: #e05c2a;
  --accent-light: #f5845a;
  --accent-bg: #fef0ea;
  --green: #2a9d6e;
  --blue: #2a6ae0;
  --purple: #6b2ae0;
  --gold: #d4a017;
  --border: rgba(15,17,23,0.1);
  --shadow-sm: 0 2px 8px rgba(15,17,23,0.07);
  --shadow-md: 0 8px 32px rgba(15,17,23,0.11);
  --shadow-lg: 0 24px 64px rgba(15,17,23,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,246,242,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.blob-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -100px; animation: drift 12s ease-in-out infinite alternate; }
.blob-2 { width: 400px; height: 400px; background: var(--blue); bottom: -100px; left: -100px; animation: drift 16s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 300px; height: 300px; background: var(--green); top: 40%; left: 40%; animation: drift 10s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.1); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,17,23,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,17,23,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  flex: 1;
  max-width: 660px;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(224,92,42,0.2);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-content h1 em::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px; right: 0;
  height: 4px;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(224,92,42,0.3);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(224,92,42,0.4);
}
.btn-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 48px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.stat span {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.hero-visual {
  flex: 0 0 360px;
  position: relative;
  height: 360px;
  display: none;
}
@media (min-width: 900px) { .hero-visual { display: block; } }

.card-float {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}
.cf-icon { font-size: 1.4rem; }
.card-float-1 { top: 20px; left: 40px; animation-delay: 0s; }
.card-float-2 { top: 100px; right: 20px; animation-delay: 1.5s; }
.card-float-3 { bottom: 120px; left: 20px; animation-delay: 3s; }
.card-float-4 { bottom: 40px; right: 60px; animation-delay: 4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ===== INTRO ===== */
.intro {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 768px) { .intro-grid { grid-template-columns: 1fr; gap: 48px; } }

.intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.intro-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.8;
}
.intro-text strong { color: var(--ink); }

.intro-cards { display: flex; flex-direction: column; gap: 20px; }

.intro-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.intro-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.ic-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  flex-shrink: 0;
  line-height: 1;
}
.intro-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.intro-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header.light h2, .section-header.light p { color: inherit; }

.section-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(224,92,42,0.2);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--ink);
}
.section-header p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== METODOLOGÍAS ===== */
.metodologias {
  padding: 100px 0;
  background: var(--bg);
}

.metodo-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink-soft);
}
.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(224,92,42,0.25);
}

.metodo-content {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.metodo-panel { display: none; padding: 48px; animation: fadeIn 0.3s ease; }
.metodo-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.metodo-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.metodo-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.metodo-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.metodo-tagline {
  color: var(--ink-muted);
  font-size: 1rem;
  font-weight: 300;
}

.metodo-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .metodo-body { grid-template-columns: 1fr; } }

.metodo-info { display: flex; flex-direction: column; gap: 28px; }

.info-block h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}
.info-block p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.fase-list, .ventajas-list, .dificultades-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fase-list li, .ventajas-list li, .dificultades-list li {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}
.fase-list li strong, .ventajas-list li strong { color: var(--ink); }

.metodo-aside { display: flex; flex-direction: column; gap: 16px; }

.metodo-badge {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border: 1px solid var(--border);
}
.badge-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.badge-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.metodo-quote {
  background: linear-gradient(135deg, var(--accent-bg), #fff8f5);
  border-radius: var(--radius-sm);
  padding: 20px;
  border-left: 4px solid var(--accent);
  margin-top: 8px;
}
.metodo-quote p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}
.metodo-quote cite {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 600;
}

/* ===== EJEMPLOS ===== */
.ejemplos {
  padding: 100px 0;
  background: var(--ink);
  color: white;
}
.ejemplos .section-tag {
  background: rgba(224,92,42,0.15);
  border-color: rgba(224,92,42,0.3);
}
.ejemplos .section-header h2 { color: white; }
.ejemplos .section-header p { color: rgba(255,255,255,0.5); }

.ejemplos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.ejemplo-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.ejemplo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.ejemplo-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.ejemplo-card:hover::before { transform: scaleX(1); }

.ej-familia {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.ej-metodo {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent);
  color: white;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.ejemplo-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.3;
}
.ejemplo-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ej-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ej-tags span {
  padding: 3px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== RECURSOS ===== */
.recursos {
  padding: 100px 0;
  background: var(--bg);
}

.recursos-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recurso-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.2s;
}
.recurso-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--accent);
}

.rec-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.rec-info { flex: 1; }
.rec-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.rec-info p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.rec-meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 6px;
  font-weight: 500;
}
.rec-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(224,92,42,0.2);
  transition: all 0.2s;
  cursor: pointer;
}
.rec-btn:hover {
  background: var(--accent);
  color: white;
}

/* ===== VÍDEOS ===== */
.videos {
  padding: 100px 0;
  background: var(--bg-alt);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: block;
}
.video-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.vc-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vc-thumb-2 { background: linear-gradient(135deg, var(--blue), #5a9dff); }
.vc-thumb-3 { background: linear-gradient(135deg, var(--green), #5ae0ac); }
.vc-thumb-4 { background: linear-gradient(135deg, var(--purple), #a05aff); }
.vc-thumb-5 { background: linear-gradient(135deg, #e06b2a, #e0a02a); }
.vc-thumb-6 { background: linear-gradient(135deg, #2a6ae0, #2ae0c8); }

.play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.video-card:hover .play-btn {
  background: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

.vc-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.3);
  color: white;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.vc-info { padding: 20px 24px; }
.vc-tema {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid rgba(224,92,42,0.2);
}
.vc-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--ink);
}
.vc-info p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .logo { margin-bottom: 12px; color: white; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }

.footer-links h4 {
  font-family: var(--font-display);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; }
  .hero-stats { gap: 32px; }
  .metodo-panel { padding: 28px 20px; }
  .metodo-tabs { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 0.78rem; }
  .recurso-card { flex-direction: column; align-items: flex-start; }
  .ejemplos-grid, .videos-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
