/* ============================================
   DINASTÍA DIAMANTE WIDGET - ESTILOS
   ============================================ */

.dd-section {
    --dd-bg-primary: #0a1628;
    --dd-bg-card: rgba(20, 40, 80, 0.6);
    --dd-bg-card-hover: rgba(25, 50, 90, 0.8);
    --dd-border-card: rgba(100, 180, 255, 0.15);
    --dd-border-card-hover: rgba(100, 180, 255, 0.3);
    --dd-gold: #d4a843;
    --dd-gold-light: #f0c94e;
    --dd-gold-dark: #b8941f;
    --dd-cyan: #4dd0e1;
    --dd-cyan-light: #80deea;
    --dd-text-primary: #ffffff;
    --dd-text-secondary: rgba(255, 255, 255, 0.85);
    --dd-text-muted: rgba(255, 255, 255, 0.7);
    --dd-shadow-gold: 0 0 30px rgba(212, 168, 67, 0.3);
    --dd-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

    background: var(--dd-bg-primary);
    background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dd-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(77, 208, 225, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

/* Header */
.dd-header {
    text-align: center;
    margin-bottom: 60px;
}

.dd-diamond-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    position: relative;
}

.dd-diamond-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.6));
}

.dd-diamond-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.dd-line {
    height: 2px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--dd-gold), transparent);
    position: relative;
}

.dd-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--dd-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--dd-gold);
}

.dd-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--dd-text-primary);
    margin: 0 0 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.dd-title .dd-highlight {
    color: var(--dd-cyan);
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.4);
}

.dd-subtitle {
    font-size: 1.1rem;
    color: var(--dd-text-muted);
    margin: 0;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.dd-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .dd-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dd-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.dd-card {
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border-card);
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--dd-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dd-card:hover {
    background: var(--dd-bg-card-hover);
    border-color: var(--dd-border-card-hover);
    transform: translateY(-8px);
    box-shadow: var(--dd-shadow-card), 0 0 40px rgba(77, 208, 225, 0.1);
}

.dd-card:hover::before {
    opacity: 1;
}

.dd-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    border: 2px solid rgba(212, 168, 67, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.dd-card:hover .dd-icon-wrapper {
    border-color: var(--dd-gold);
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.2);
    transform: scale(1.05);
}

.dd-icon-wrapper svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--dd-gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dd-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dd-cyan);
    margin: 0 0 15px;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dd-gold), transparent);
    margin: 0 auto 20px;
    border-radius: 1px;
}

.dd-card-description {
    font-size: 0.95rem;
    color: var(--dd-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Button */
.dd-cta-wrapper {
    text-align: center;
}

.dd-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--dd-gold) 0%, var(--dd-gold-dark) 100%);
    color: #0a1628;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 40px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dd-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.dd-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--dd-shadow-gold), 
                0 6px 30px rgba(212, 168, 67, 0.5);
    color: #0a1628;
}

.dd-cta-button:hover::before {
    left: 100%;
}

.dd-cta-button:active {
    transform: translateY(0);
}

.dd-cta-arrow {
    transition: transform 0.3s ease;
}

.dd-cta-button:hover .dd-cta-arrow {
    transform: translateX(4px);
}

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

.dd-card {
    animation: ddFadeInUp 0.6s ease forwards;
    opacity: 0;
}

.dd-card:nth-child(1) { animation-delay: 0.1s; }
.dd-card:nth-child(2) { animation-delay: 0.2s; }
.dd-card:nth-child(3) { animation-delay: 0.3s; }
.dd-card:nth-child(4) { animation-delay: 0.4s; }

.dd-header {
    animation: ddFadeInUp 0.6s ease forwards;
}

.dd-cta-wrapper {
    animation: ddFadeInUp 0.6s ease 0.5s forwards;
    opacity: 0;
}
