/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #E53535;
  --primary-dark: #c42020;
  --primary-light: #f05555;
  --dark: #0A0A0A;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --gray-1: #2a2a2a;
  --gray-2: #444;
  --gray-3: #888;
  --gray-4: #bbb;
  --light: #f5f5f5;
  --white: #ffffff;
  --gold: #FFD700;
  --success: #22c55e;
  --error: #ef4444;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* =============================================
   BOTONES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(229, 53, 53, 0.4);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 53, 53, 0.5);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 1.05rem;
}

/* =============================================
   PRUEBA SOCIAL
   ============================================= */
.social-proof {
  background: var(--dark-3);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0;
}

.social-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-3);
}

/* =============================================
   SECCIÓN HEADER GENÉRICO
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: rgba(229,53,53,0.12);
  color: var(--primary);
  border: 1px solid rgba(229,53,53,0.25);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag--light {
  background: rgba(229,53,53,0.12);
  color: var(--primary);
  border-color: rgba(229,53,53,0.25);
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-3);
  max-width: 540px;
  margin: 0 auto;
}

/* =============================================
   SECCIÓN CTA / FORMULARIO
   ============================================= */
.cta-simple {
  background: linear-gradient(135deg, #0f0f0f 0%, #150505 50%, #0f0f0f 100%);
  padding: 96px 0;
}

.cta-simple__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-simple__card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(229,53,53,0.2);
  border-radius: 20px;
  padding: 52px 64px;
  max-width: 620px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-simple__photo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.cta-simple__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: photoPulse 2s ease-out infinite;
  pointer-events: none;
}

.cta-simple__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.cta-simple__icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border: 2px solid #0f0f0f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.cta-simple__text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--gray-3);
  line-height: 1.6;
  margin: 0;
}


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

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,53,53,0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(229,53,53,0); }
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0;   transform: scale(1.03); }
}

@keyframes photoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,53,53,0.6); }
  70%  { box-shadow: 0 0 0 20px rgba(229,53,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,53,53,0); }
}

.cta-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #150505 50%, #0f0f0f 100%);
  padding: 96px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cta-section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-section__subtitle {
  color: var(--gray-3);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-4);
  font-size: 0.95rem;
}

.cta-benefits li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Roadmap de fases */
.cta-roadmap {
  margin-top: 32px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
}

.cta-roadmap__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-3);
  margin-bottom: 18px;
}

.cta-roadmap__steps {
  display: flex;
  flex-direction: column;
}

.cta-roadmap__step {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.cta-roadmap__step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.cta-roadmap__step-num {
  width: 34px;
  height: 34px;
  background: rgba(229,53,53,0.12);
  border: 1px solid rgba(229,53,53,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.cta-roadmap__step-content {
  padding-top: 6px;
  padding-bottom: 16px;
}

.cta-roadmap__step:last-child .cta-roadmap__step-content {
  padding-bottom: 0;
}

.cta-roadmap__step-content strong {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.cta-roadmap__step-content span {
  color: var(--gray-3);
  font-size: 0.8rem;
  line-height: 1.5;
}

.cta-roadmap__connector {
  width: 1px;
  flex: 1;
  background: rgba(229,53,53,0.25);
  min-height: 12px;
}

/* Form card */
.form-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-4);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--gray-1);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-2);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--dark-3);
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: var(--error);
}

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 18px;
}

.form-disclaimer {
  text-align: center;
  color: var(--gray-3);
  font-size: 0.78rem;
  margin-top: 14px;
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
}

.form-success p {
  color: var(--gray-3);
  font-size: 0.95rem;
}

/* =============================================
   ANIMACIONES ENTRADA
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer p {
  color: var(--gray-3);
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--gray-3);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
   RESPONSIVE BASE
   ============================================= */
@media (max-width: 900px) {
  .cta-section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cta-section__text {
    text-align: center;
  }

  .cta-benefits {
    align-items: center;
  }

  .social-proof__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .cta-section {
    padding: 64px 0;
  }

  .form-card {
    padding: 28px 20px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .btn--large {
    padding: 16px 28px;
    font-size: 1rem;
  }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.navbar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.navbar__logo span {
  color: var(--primary);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__link {
  color: var(--gray-3);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--white);
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.875rem;
  border-radius: 50px;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* =============================================
   HERO PORTFOLIO
   ============================================= */
.p-hero {
  background: linear-gradient(180deg, #0A0A0A 0%, #0d0d14 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.p-hero .container {
  position: relative;
  z-index: 1;
}


.p-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0 60px;
  width: 100%;
}

.p-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 48px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.p-hero__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.p-hero__subtitle {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--gray-3);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 640px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.p-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.p-hero__actions .btn--primary {
  min-width: 260px;
  justify-content: center;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.15);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--transition), background var(--transition);
}

.btn--ghost:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

.p-hero__tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tools-label {
  font-size: 0.78rem;
  color: var(--gray-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-4);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tool-badge__icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- Preview n8n decorativo ---- */
.p-hero__visual {
  display: flex;
  justify-content: center;
}

.n8n-preview {
  width: 560px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.n8n-preview__bar {
  background: #1e1e1e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #28c840; }

.n8n-preview__url {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--gray-3);
}

.n8n-preview__canvas {
  position: relative;
  height: 260px;
  background: radial-gradient(circle at 50% 50%, rgba(229,53,53,0.03) 0%, transparent 70%),
              repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,0.02) 23px, rgba(255,255,255,0.02) 24px),
              repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,0.02) 23px, rgba(255,255,255,0.02) 24px);
}

.wf-node {
  position: absolute;
  background: #222;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--gray-4);
  width: 70px;
  text-align: center;
  cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  z-index: 2;
}

.wf-node--lit {
  border-color: var(--primary) !important;
  background: #2d1212 !important;
  box-shadow: 0 0 16px rgba(229, 53, 53, 0.5);
}

.wf-node--whatsapp {
  border-color: rgba(37, 211, 102, 0.5);
  background: #122212;
}

.wf-node--whatsapp.wf-node--lit {
  border-color: rgba(37, 211, 102, 0.9) !important;
  background: #1a3320 !important;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.5);
}

.wf-node--openai {
  border-color: rgba(255, 255, 255, 0.35);
  background: #1e1e1e;
}

.wf-node--openai.wf-node--lit {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: #2a2a2a !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.wf-node--notify {
  border-color: rgba(59, 130, 246, 0.5);
  background: #121a2d;
}

.wf-node--notify.wf-node--lit {
  border-color: rgba(59, 130, 246, 0.9) !important;
  background: #1a2540 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

.wf-node__icon {
  font-size: 1.1rem;
}

.wf-arrow {
  position: absolute;
  height: 2px;
  background: rgba(255,255,255,0.15);
  top: 0;
  left: 0;
  transition: background 0.2s;
  z-index: 2;
}

.wf-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: rgba(255,255,255,0.25);
  transition: border-left-color 0.2s;
}

.wf-arrow--lit {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.wf-arrow--lit::after {
  border-left-color: rgba(255, 255, 255, 0.7);
}

.wf-arrow--v {
  width: 2px;
  height: 0;
  background: rgba(255,255,255,0.15);
}

.wf-arrow--v::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -3px;
  border: 4px solid transparent;
  border-top-color: rgba(255,255,255,0.25);
}

.wf-running-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  animation: run-along 5s ease-in-out infinite;
  z-index: 1;
}

@keyframes run-along {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(450px); }
}

/* =============================================
   SOBRE MÍ
   ============================================= */
.about {
  background: var(--dark);
  padding: 96px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.about__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}

/* Columna foto */
.about__photo-col {
  display: flex;
  justify-content: center;
}

.about__photo-wrap {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}

.about__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  border: 2px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Glow sutil detrás */
.about__photo-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle at 50% 60%, rgba(229,53,53,0.18) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__photo-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.about__photo-badge-icon {
  font-size: 1rem;
}

/* Columna texto */
.about__title {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
  line-height: 1.2;
}

.about__bio {
  color: var(--gray-3);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__skills {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 32px;
  padding: 24px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.skill-item__icon {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  background: rgba(229,53,53,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-item strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.skill-item span {
  color: var(--gray-3);
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__photo-wrap {
    width: 260px;
    margin: 0 auto;
  }

  .about__text-col {
    text-align: center;
  }

  .about__skills {
    text-align: left;
  }
}

/* =============================================
   SELF-HOSTED PREVIEW (Sobre mí)
   ============================================= */
.sh-preview {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 28px 0 32px;
}

.sh-preview__bar {
  background: #1e1e1e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sh-preview__label {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--gray-3);
  font-family: monospace;
  letter-spacing: 0.02em;
}

.sh-preview__canvas {
  padding: 14px 16px 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(229,53,53,0.03) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,0.02) 23px, rgba(255,255,255,0.02) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,0.02) 23px, rgba(255,255,255,0.02) 24px);
}

.sh-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: 8px;
}

.sh-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  flex-shrink: 0;
  animation: sh-pulse 2.2s ease-in-out infinite;
}

@keyframes sh-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.7); }
  50%       { opacity: 0.5; box-shadow: 0 0 2px rgba(34,197,94,0.3); }
}

.sh-status__text {
  font-size: 0.76rem;
  color: var(--gray-3);
  font-family: monospace;
}

.sh-status__text strong {
  color: #22c55e;
}

.sh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sh-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.sh-card:hover {
  border-color: rgba(229,53,53,0.3);
  background: rgba(229,53,53,0.04);
}

.sh-card__icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.sh-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.sh-card__desc {
  font-size: 0.7rem;
  color: var(--gray-3);
  line-height: 1.4;
  display: block;
}

/* =============================================
   SELF-HOSTED ARCHITECTURE DIAGRAM
   ============================================= */
.sh-arch {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}

.sh-arch__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sh-arch__node {
  width: 38px;
  height: 38px;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sh-arch__node-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
}

/* Connector columns (flex:1 to fill available space) */
.sh-arch__connectors {
  flex: 1;
  min-width: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 3px;
}

/* Each line aligns with its corresponding node (same height + gap) */
.sh-arch__line {
  position: relative;
  height: 38px;
  display: flex;
  align-items: center;
}

/* The line itself */
.sh-arch__line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 8px;
  height: 1.5px;
  background: rgba(255,255,255,0.1);
  transform: translateY(-50%);
}

/* Arrowhead at the end of each line */
.sh-arch__line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: rgba(255,255,255,0.18);
}

/* Animated data packet */
.sh-arch__packet {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 7px rgba(229,53,53,0.9);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  animation: sh-packet 2.1s linear infinite;
}

@keyframes sh-packet {
  0%   { left: 0;                 opacity: 0; }
  10%  {                          opacity: 1; }
  85%  {                          opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}

/* Output packets are green */
.sh-arch__packet--out {
  background: #22c55e;
  box-shadow: 0 0 7px rgba(34,197,94,0.9);
}

/* Server center block */
.sh-arch__server {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 110px;
  background: #1a1a1a;
  border: 1.5px solid rgba(229,53,53,0.4);
  border-radius: 12px;
  padding: 12px 8px 10px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Pulsing red glow behind the server */
.sh-arch__server-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 50% 50%, rgba(229,53,53,0.14) 0%, transparent 65%);
  pointer-events: none;
  animation: sh-server-glow 2.5s ease-in-out infinite;
}

@keyframes sh-server-glow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1;   }
}

.sh-arch__server-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.sh-arch__server-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.sh-arch__server-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: #22c55e;
  font-family: monospace;
  position: relative;
  z-index: 1;
}

.sh-arch__server-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 4px rgba(34,197,94,0.8);
  flex-shrink: 0;
  animation: sh-pulse 2s ease-in-out infinite;
}

/* Services row inside the server */
.sh-arch__server-sep {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 2px 0;
  position: relative;
  z-index: 1;
}

.sh-arch__server-services {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.sh-arch__service {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-arch__service-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

/* Advantages strip */
.sh-advantages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 4px 2px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sh-adv {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--gray-3);
  white-space: nowrap;
}

.sh-adv__icon {
  font-size: 0.78rem;
}

.sh-adv-sep {
  color: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  flex-shrink: 0;
  user-select: none;
}

/* =============================================
   FILTROS
   ============================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  justify-content: center;
}

.filter-btn {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--gray-3);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

.filter-btn--active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* =============================================
   WORKFLOW CARDS
   ============================================= */
.workflows {
  background: var(--dark-2);
  padding: 96px 0;
}

.workflows__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.wf-card {
  flex: 0 1 calc(33.333% - 19px);
  min-width: 280px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.wf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229,53,53,0.3);
}

.wf-card.hidden-card {
  display: none;
}

.wf-card__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

/* Miniatura estática (imagen) */
.wf-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.wf-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Capa que intercepta el click sobre el iframe */
.wf-card__video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.wf-card__video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.wf-card__body {
  padding: 22px;
}

.wf-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag--leads       { background: rgba(229,53,53,0.15); color: var(--primary); }
.tag--ia          { background: rgba(139,92,246,0.15); color: #a78bfa; }
.tag--ecommerce   { background: rgba(34,197,94,0.12);  color: #4ade80; }
.tag--comunicacion{ background: rgba(59,130,246,0.15); color: #60a5fa; }
.tag--datos       { background: rgba(234,179,8,0.12);  color: #fbbf24; }

.wf-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
}

.wf-card__desc {
  font-size: 0.875rem;
  color: var(--gray-3);
  line-height: 1.7;
  margin-bottom: 18px;
}

.wf-card__integrations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.integration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  color: var(--gray-4);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 500;
}

.integration__icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}

.integration-arrow {
  color: var(--gray-2);
  font-size: 0.75rem;
}

/* ---- Stats de ahorro en las cards ---- */
.wf-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.wf-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-stat__value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.wf-stat__label {
  font-size: 0.7rem;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ---- Hint "Ver detalle" en las cards ---- */
.wf-card {
  cursor: pointer;
}

.wf-card__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--gray-3);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition);
}

.wf-card:hover .wf-card__hint {
  color: var(--primary);
}

/* =============================================
   MODAL WORKFLOW
   ============================================= */
.wf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.wf-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.wf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wf-modal__box {
  position: relative;
  z-index: 1;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-1) transparent;
}

.wf-modal.is-open .wf-modal__box {
  transform: scale(1) translateY(0);
}

.wf-modal__close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 10;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}

.wf-modal__close:hover {
  background: rgba(255,255,255,0.15);
}

.wf-modal__video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  clear: both;
}

.wf-modal__video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.wf-modal__content {
  padding: 28px 32px 36px;
}

.wf-modal__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 12px 0 14px;
}

.wf-modal__desc {
  color: var(--gray-3);
  font-size: 0.95rem;
  line-height: 1.75;
}

.wf-modal__divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 22px 0;
}

.wf-modal__section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.wf-modal__extended {
  color: var(--gray-4);
  font-size: 0.92rem;
  line-height: 1.8;
}

.wf-modal__cta {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
  border-radius: var(--radius);
}

/* Responsive modal */
@media (max-width: 640px) {
  .wf-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .wf-modal__box {
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .wf-modal__content {
    padding: 20px 20px 32px;
  }

  .wf-modal__title {
    font-size: 1.15rem;
  }
}

/* =============================================
   ROADMAP
   ============================================= */
/* Layout 2 columnas: roadmap vertical + formulario */
.contacto__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.contacto__layout .roadmap {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contacto__layout .roadmap__steps {
  grid-template-columns: 1fr;
  gap: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contacto__layout .roadmap__step {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
  padding-bottom: 0;
}

.contacto__layout .roadmap__steps::before {
  content: '';
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 25px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(229,53,53,0.2) 100%);
}

.contacto__layout .roadmap__step-connector {
  display: none;
}

.contacto__layout .roadmap__step-body {
  margin-top: 0;
  padding: 0;
  padding-top: 12px;
}

@media (max-width: 900px) {
  .contacto__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.roadmap {
  margin: 0 0 64px;
}

.roadmap__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.roadmap__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.roadmap__step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(229, 53, 53, 0.12);
}

.roadmap__step-connector {
  position: absolute;
  top: 26px;
  left: calc(50% + 26px);
  right: calc(-50% + 26px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(229,53,53,0.2) 100%);
}

.roadmap__step--last .roadmap__step-connector {
  display: none;
}

.roadmap__step-body {
  margin-top: 20px;
  padding: 0 12px;
}

.roadmap__step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.roadmap__step-desc {
  font-size: 0.82rem;
  color: var(--gray-3);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .roadmap__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .roadmap__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding-bottom: 32px;
  }

  .roadmap__step-connector {
    position: absolute;
    top: 52px;
    left: 25px;
    right: auto;
    width: 2px;
    height: calc(100% - 26px);
    background: linear-gradient(180deg, var(--primary) 0%, rgba(229,53,53,0.2) 100%);
  }

  .roadmap__step--last {
    padding-bottom: 0;
  }

  .roadmap__step-body {
    margin-top: 0;
    padding: 0;
    padding-top: 12px;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1000px) {
  .workflows__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .p-hero__visual {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .workflows__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .navbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark-2);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 20px 24px;
    gap: 16px;
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__burger {
    display: flex;
  }

  .navbar {
    position: sticky;
  }

  .p-hero__actions {
    flex-direction: column;
  }

  .btn--ghost {
    text-align: center;
    justify-content: center;
  }

  .p-hero__visual {
    display: none;
  }
}
