/* =========================================
   VARIABLES & GLOBAL
========================================= */
.fdp-roadmap-wrapper {
  --fdp-bg-section: #111B2E;    
  --fdp-title-color: #F6FAFF;   /* Color items H3 */
  --fdp-desc-color: #C7D2FE;    
  --fdp-circle-bg: #1E3A8A;     
  --fdp-circle-border: #3B82F6; 
  
  --fdp-circle-size: 80px;
  --fdp-cy-top: 130px;
  --fdp-cy-bot: 370px;
  
  background-color: var(--fdp-bg-section);
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

.fdp-roadmap-wrapper *, *::before, *::after { box-sizing: inherit; }

/* --- TÍTULO PRINCIPAL (CORREGIDO Y FORZADO) --- */
/* Usamos h2.clase y !important para vencer al tema de WordPress */
h2.fdp-main-title {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 50px;
  
  /* COLOR SOLICITADO */
  color: #00E5FF !important; 
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  
  /* TAMAÑO BASE (Móvil/Tablet) */
  font-size: 24px !important; 
}

/* =========================================
   1. DESKTOP (Monitores Grandes > 1440px)
   Aquí aplicamos los 32px para pantallas de 21" o más
========================================= */
@media (min-width: 1441px) {
  h2.fdp-main-title {
    font-size: 32px !important;
  }
}

/* =========================================
   ESTRUCTURA GENERAL DESKTOP
========================================= */
.fdp-container {
  position: relative;
  width: 94%; 
  max-width: 1600px; 
  margin: 0 auto;
  aspect-ratio: 1200 / 500; 
  min-height: 520px;
}

.fdp-svg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* --- ANIMACIÓN DE LÍNEA --- */
.fdp-path-stroke {
  stroke-dasharray: 4000; 
  stroke-dashoffset: 4000; 
  transition: stroke-dashoffset 0s;
}

.fdp-roadmap-wrapper.is-visible .fdp-path-stroke {
  animation: drawLine 2.5s ease-out forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Nodo pequeño */
.fdp-small-node { opacity: 0; }
.fdp-roadmap-wrapper.is-visible .fdp-small-node {
  animation: fadeInNode 0.5s ease forwards;
  animation-delay: 2s; 
}
@keyframes fadeInNode { to { opacity: 1; } }


/* --- ITEMS --- */
.fdp-items-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.fdp-item {
  position: absolute;
  width: 18%; 
  max-width: 240px;
  left: var(--left-pos);
  display: flex;
  align-items: center;
  text-align: center;
}

.fdp-item.fdp-pos-odd {
  top: var(--fdp-cy-top); 
  transform: translate(-50%, -40px);
  flex-direction: column;
}

.fdp-item.fdp-pos-even {
  top: var(--fdp-cy-bot);
  transform: translate(-50%, calc(-100% + 40px));
  flex-direction: column-reverse;
}


/* --- ANIMACIÓN CÍRCULOS --- */
.fdp-circle-box {
  width: var(--fdp-circle-size);
  height: var(--fdp-circle-size);
  border-radius: 50%;
  background: var(--fdp-circle-bg);
  border: 3px solid var(--fdp-circle-border);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5); 
  z-index: 5;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
}

.fdp-roadmap-wrapper.is-visible .fdp-circle-box {
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: var(--anim-delay);
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.fdp-circle-box:hover {
  transform: scale(1.1) !important;
  background: var(--fdp-circle-border);
  transition: transform 0.3s ease, background 0.3s;
}

.fdp-num {
  font-size: 28px; font-weight: 800; color: #fff;
}

/* CONECTOR */
.fdp-line-connector {
  width: 2px;
  height: 80px; 
  background: linear-gradient(to bottom, transparent, var(--fdp-circle-border), transparent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* --- TEXTOS ITEMS (H3 y P) --- */
.fdp-content-box h3 {
  color: var(--fdp-title-color);
  font-size: 18px; 
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.fdp-content-box p {
  color: var(--fdp-desc-color); 
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}
.fdp-mobile-line { display: none; }


/* =========================================
   2. LAPTOPS (1025px - 1440px)
========================================= */
@media (min-width: 1025px) and (max-width: 1440px) {
  
  /* CAMBIO SOLICITADO: Título a 26px FORZADO */
  h2.fdp-main-title {
    font-size: 26px !important;
  }

  .fdp-container { width: 98%; }
  .fdp-item { width: 16%; min-width: 140px; }

  .fdp-roadmap-wrapper { --fdp-circle-size: 65px; }
  .fdp-num { font-size: 22px; }

  .fdp-item.fdp-pos-odd { transform: translate(-50%, -32.5px); }
  .fdp-item.fdp-pos-even { transform: translate(-50%, calc(-100% + 32.5px)); }

  .fdp-line-connector { height: 60px; }

  .fdp-content-box h3 { font-size: 13px !important; margin-bottom: 4px; line-height: 1.2; }
  .fdp-content-box p { font-size: 11px !important; line-height: 1.3; opacity: 0.95; }
}


/* =========================================
   3. MÓVIL (< 1025px)
========================================= */
@media (max-width: 1024px) {
  
  /* Título en móvil */
  h2.fdp-main-title {
    font-size: 24px !important;
  }
  
  .fdp-roadmap-wrapper { padding: 40px 15px; }
  .fdp-container { max-width: 100%; aspect-ratio: auto; min-height: auto; }
  .fdp-svg-layer { display: none; }

  .fdp-items-layer { position: relative; display: flex; flex-direction: column; }

  .fdp-mobile-line {
    display: block; position: absolute;
    left: 29px; top: 30px; bottom: 30px; width: 2px;
    background: #1E3A8A;
    border-left: 2px dashed #3B82F6;
    z-index: 1;
  }

  .fdp-item, .fdp-item.fdp-pos-odd, .fdp-item.fdp-pos-even {
    position: relative; left: auto !important; top: auto !important; bottom: auto !important;
    transform: none !important; width: 100%;
    flex-direction: row !important; 
    align-items: flex-start; text-align: left;
    margin-bottom: 30px; padding-left: 0;
  }

  .fdp-line-connector { display: none; }

  .fdp-circle-box {
    width: 60px; height: 60px; margin-right: 20px;
    opacity: 1; transform: scale(1);
  }
  .fdp-roadmap-wrapper.is-visible .fdp-circle-box {
     animation: popIn 0.5s ease forwards;
     animation-delay: 0s;
  }

  .fdp-num { font-size: 20px; }

  .fdp-content-box { padding: 5px 0 0 0 !important; }
  .fdp-content-box h3 { font-size: 18px; margin-bottom: 5px; }
  .fdp-content-box p { font-size: 14px; line-height: 1.5; }
}