/* ============================================
   DINASTÍA PASOS WIDGET - ESTILOS OSCUROS
   Diseño azul oscuro con acentos plateados/cian
   ============================================ */

.ddp-section {
    --ddp-bg: #0b1b2e;
    --ddp-card: #ffffff;
    --ddp-primary: #ffffff;
    --ddp-secondary: #4a5568;
    --ddp-accent: #d4a843;
    --ddp-icon: #0b4f7c;
    --ddp-number-bg: #4dd0e1;
    --ddp-connector: #4dd0e1;
    --ddp-bottom-bar: #4dd0e1;
    --ddp-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --ddp-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
    --ddp-ring-bg: rgba(255, 255, 255, 0.95);
    --ddp-closing-bg: rgba(255, 255, 255, 0.08);

    background: var(--ddp-bg);
    background: linear-gradient(180deg, #0a1628 0%, #0b1b2e 50%, #0d1f3c 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.ddp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(77, 208, 225, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 168, 67, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.ddp-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.ddp-header {
    text-align: center;
    margin-bottom: 70px;
    animation: ddpFadeInUp 0.6s ease forwards;
}

.ddp-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ddp-accent);
    margin: 0 0 15px;
}

.ddp-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--ddp-primary);
    margin: 0 0 25px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.ddp-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--ddp-accent), #f0c94e);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.ddp-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--ddp-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.4);
}

/* Timeline */
.ddp-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .ddp-timeline {
        flex-direction: column;
        align-items: center;
    }
}

/* Step Wrapper */
.ddp-step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: ddpFadeInUp 0.6s ease forwards;
    opacity: 0;
    flex: 1;
    max-width: 320px;
}

.ddp-step-wrapper:nth-child(1) { animation-delay: 0.1s; }
.ddp-step-wrapper:nth-child(3) { animation-delay: 0.2s; }
.ddp-step-wrapper:nth-child(5) { animation-delay: 0.3s; }

/* Circle Area */
.ddp-circle-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.ddp-circle-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--ddp-connector);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--ddp-ring-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255,255,255,0.8);
    transition: all 0.4s ease;
}

.ddp-step-wrapper:hover .ddp-circle-ring {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(77, 208, 225, 0.2), inset 0 2px 4px rgba(255,255,255,0.9);
    border-color: var(--ddp-accent);
}

.ddp-circle-inner {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ddp-circle-inner svg {
    width: 32px;
    height: 32px;
    stroke: var(--ddp-icon);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.ddp-step-wrapper:hover .ddp-circle-inner svg {
    stroke: var(--ddp-accent);
    transform: scale(1.1);
}

/* Number Badge */
.ddp-number-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: var(--ddp-number-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(77, 208, 225, 0.4);
    border: 2px solid var(--ddp-bg);
}

/* Connector Dot below circle */
.ddp-connector-dot {
    width: 10px;
    height: 10px;
    background: var(--ddp-connector);
    border-radius: 50%;
    margin-top: 12px;
    box-shadow: 0 0 8px rgba(77, 208, 225, 0.4);
}

/* Connector Line */
.ddp-connector-line {
    width: 80px;
    height: 30px;
    position: relative;
    color: var(--ddp-connector);
    align-self: flex-start;
    margin-top: 50px;
}

.ddp-connector-line svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(77, 208, 225, 0.3));
}

.ddp-connector-mid-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--ddp-connector);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(77, 208, 225, 0.5);
    border: 2px solid var(--ddp-bg);
}

@media (max-width: 768px) {
    .ddp-connector-line {
        width: 30px;
        height: 60px;
        margin-top: 0;
        transform: rotate(90deg);
    }
}

/* Card */
.ddp-card {
    background: var(--ddp-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ddp-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 280px;
}

.ddp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ddp-shadow-hover);
}

.ddp-card-inner {
    padding: 28px 24px 20px;
}

.ddp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1b2e;
    margin: 0 0 12px;
    line-height: 1.35;
}

.ddp-card-divider {
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, var(--ddp-bottom-bar), transparent);
    border-radius: 2px;
    margin-bottom: 15px;
    transition: width 0.4s ease;
}

.ddp-card:hover .ddp-card-divider {
    width: 55px;
}

.ddp-card-description {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Bottom Bar */
.ddp-card-bottom-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--ddp-bottom-bar), #80deea);
    width: 100%;
}

/* Closing Box */
.ddp-closing-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--ddp-closing-bg);
    border: 1px solid rgba(77, 208, 225, 0.2);
    border-radius: 16px;
    padding: 24px 40px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    animation: ddpFadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
    transition: all 0.4s ease;
}

.ddp-closing-box:hover {
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ddp-closing-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.2), rgba(11, 79, 124, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(77, 208, 225, 0.3);
}

.ddp-closing-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--ddp-number-bg);
    fill: none;
    stroke-width: 1.8;
}

.ddp-closing-text {
    font-size: 1rem;
    color: var(--ddp-primary);
    line-height: 1.6;
    font-weight: 500;
}

.ddp-closing-text strong {
    color: var(--ddp-number-bg);
    font-weight: 700;
}

/* Animaciones */
@keyframes ddpFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
