/* ===== VARIABLES DE DISEÑO ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-white: #ffffff;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.sdd-delivery-wrapper {
    margin: 20px 0;
    position: relative;
    z-index: 10;
}

/* ===== ESTILO PREMIUM AIRBNB ===== */
.sdd-delivery-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.sdd-delivery-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.sdd-delivery-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

.sdd-premium-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sdd-premium-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-white);
    flex-shrink: 0;
    position: relative;
    animation: pulse 2s infinite;
}

.sdd-premium-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.3;
    animation: ripple 2s infinite;
}

.sdd-premium-info {
    flex: 1;
}

.sdd-premium-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sdd-premium-badge {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-left: 8px;
    transition: all 0.3s ease;
    background: var(--badge-bg-color, #f093fb);
    color: var(--badge-text-color, #ffffff);
}

/* Estilos del badge */
.sdd-badge-rounded { border-radius: 20px; }
.sdd-badge-square { border-radius: 4px; }
.sdd-badge-pill { border-radius: 25px; }
.sdd-badge-tag {
    border-radius: 3px 0 0 3px;
    position: relative;
}
.sdd-badge-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
    opacity: 0.2;
}

.sdd-badge-small { padding: 2px 8px; font-size: 10px; }
.sdd-badge-normal { padding: 3px 12px; font-size: 11px; }
.sdd-badge-large { padding: 4px 16px; font-size: 12px; }

.sdd-premium-date {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.2;
}

.sdd-premium-date .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sdd-premium-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== ESTILO BUBBLES ===== */
.sdd-delivery-bubbles {
    background: var(--primary-gradient);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    color: var(--text-white);
}

.sdd-delivery-bubbles::before,
.sdd-delivery-bubbles::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.sdd-delivery-bubbles::before {
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.sdd-delivery-bubbles::after {
    bottom: -50px;
    left: -100px;
    animation-delay: 3s;
}

.sdd-bubbles-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sdd-bubbles-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    animation: bounce 2s infinite;
}

.sdd-bubbles-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.sdd-bubbles-date {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sdd-bubbles-date .date-range {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    margin-top: 8px;
    backdrop-filter: blur(10px);
}

/* ===== ESTILO NEON ===== */
.sdd-delivery-neon {
    background: #1a1a2e;
    border: 2px solid #667eea;
    border-radius: var(--border-radius);
    padding: 24px;
    position: relative;
    color: var(--text-white);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5), inset 0 0 20px rgba(102, 126, 234, 0.1);
}

.sdd-delivery-neon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.sdd-neon-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sdd-neon-icon {
    font-size: 40px;
    color: #00f2fe;
    text-shadow: 0 0 20px #00f2fe;
    animation: glow 2s ease-in-out infinite alternate;
}

.sdd-neon-info h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00f2fe;
    margin-bottom: 8px;
}

.sdd-neon-date {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== ESTILO MINIMAL 3D ===== */
.sdd-delivery-minimal-3d {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.sdd-delivery-minimal-3d:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

.sdd-minimal-3d-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sdd-minimal-3d-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1), -5px -5px 15px rgba(255,255,255,0.9);
}

.sdd-minimal-3d-info {
    flex: 1;
}

.sdd-minimal-3d-title {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.sdd-minimal-3d-date {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== ESTILO CARD PREMIUM ===== */
.sdd-delivery-card-premium {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1), 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.sdd-delivery-card-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.sdd-card-premium-content {
    position: relative;
    z-index: 1;
}

.sdd-card-premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sdd-card-premium-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-white);
}

.sdd-card-premium-verified {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.sdd-card-premium-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sdd-card-premium-date {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sdd-card-premium-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== ESTILOS MODERN, MINIMAL, CARD, POP, CLASSIC ===== */
.sdd-delivery-modern,
.sdd-delivery-minimal,
.sdd-delivery-card,
.sdd-delivery-pop,
.sdd-delivery-classic {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.sdd-delivery-modern:hover,
.sdd-delivery-minimal:hover,
.sdd-delivery-card:hover,
.sdd-delivery-pop:hover,
.sdd-delivery-classic:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.sdd-modern-content,
.sdd-minimal-content,
.sdd-card-content,
.sdd-pop-content,
.sdd-classic-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sdd-modern-icon,
.sdd-minimal-icon,
.sdd-card-icon,
.sdd-pop-icon,
.sdd-classic-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-white);
    flex-shrink: 0;
}

.sdd-modern-info,
.sdd-minimal-info,
.sdd-card-info,
.sdd-pop-info,
.sdd-classic-info {
    flex: 1;
}

.sdd-modern-title,
.sdd-minimal-title,
.sdd-card-title,
.sdd-pop-title,
.sdd-classic-title {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.sdd-modern-date,
.sdd-minimal-date,
.sdd-card-date,
.sdd-pop-date,
.sdd-classic-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Variaciones específicas */
.sdd-delivery-card {
    border-left: 4px solid #667eea;
}

.sdd-delivery-pop {
    background: var(--primary-gradient);
    color: white;
}

.sdd-delivery-pop .sdd-pop-title {
    color: rgba(255,255,255,0.8);
}

.sdd-delivery-pop .sdd-pop-date {
    color: white;
}

.sdd-delivery-classic {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* ===== ANIMACIONES ===== */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00f2fe, 0 0 30px #00f2fe, 0 0 40px #00f2fe; }
    to { text-shadow: 0 0 30px #00f2fe, 0 0 40px #00f2fe, 0 0 50px #00f2fe; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --border-radius: 12px;
    }

    .sdd-delivery-premium,
    .sdd-delivery-bubbles,
    .sdd-delivery-neon,
    .sdd-delivery-card-premium,
    .sdd-delivery-modern,
    .sdd-delivery-minimal,
    .sdd-delivery-card,
    .sdd-delivery-pop,
    .sdd-delivery-classic {
        padding: 20px;
        margin: 15px 0;
    }

    .sdd-premium-content,
    .sdd-neon-content,
    .sdd-minimal-3d-content,
    .sdd-modern-content,
    .sdd-minimal-content,
    .sdd-card-content,
    .sdd-pop-content,
    .sdd-classic-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .sdd-premium-icon,
    .sdd-minimal-3d-icon,
    .sdd-card-premium-icon,
    .sdd-modern-icon,
    .sdd-minimal-icon,
    .sdd-card-icon,
    .sdd-pop-icon,
    .sdd-classic-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .sdd-premium-date,
    .sdd-bubbles-date,
    .sdd-neon-date,
    .sdd-card-premium-date,
    .sdd-modern-date,
    .sdd-minimal-date,
    .sdd-card-date,
    .sdd-pop-date,
    .sdd-classic-date {
        font-size: 18px;
    }

    .sdd-bubbles-icon {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .sdd-delivery-bubbles {
        padding: 24px;
    }

    .sdd-bubbles-date {
        font-size: 20px;
    }

    .sdd-bubbles-date .date-range {
        padding: 6px 16px;
        font-size: 14px;
    }
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.2);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
        --text-primary: #f7fafc;
        --text-secondary: #cbd5e0;
    }

    .sdd-delivery-card-premium {
        background: #2d3748;
    }

    .sdd-delivery-minimal-3d {
        background: rgba(45, 55, 72, 0.9);
    }

    .sdd-minimal-3d-icon {
        background: linear-gradient(145deg, #2d3748, #1a202c);
        box-shadow: 5px 5px 15px rgba(0,0,0,0.3), -5px -5px 15px rgba(255,255,255,0.05);
    }

    .sdd-delivery-modern,
    .sdd-delivery-minimal,
    .sdd-delivery-card,
    .sdd-delivery-classic {
        background: #2d3748;
        color: #f7fafc;
    }

    .sdd-delivery-classic {
        background: #1a202c;
        border: 1px solid #2d3748;
    }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== UTILIDADES ===== */
.sdd-delivery-container {
    transition: var(--transition);
}

.sdd-delivery-container:hover {
    transform: translateY(-2px);
}

.sdd-delivery-container:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}