/* ===================================================
   EDUTIC PREMIUM CERTIFICATE - Nueva Propuesta VIP
   Diseño Elegante y Sofisticado
   =================================================== */

:root {
    /* Paleta Premium */
    --gold-primary: #D4AF37;
    --gold-light: #F4E4C1;
    --gold-dark: #B8941E;
    --navy-primary: #0A1929;
    --navy-light: #1A2332;
    --navy-primary-light:#3c5c90;
    --navy-accent: #2D3E50;
    --silver: #C0C0C0;
    --white-pearl: #FAFAFA;
    --success-emerald: #059669;
    --text-primary: #0A1929;
    --text-secondary: #6B7280;
    --border-elegant: #E5E7EB;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--white-pearl);
}

/* Hero Section - Diseño Elegante con Patrón */
.hero-section {
    background: linear-gradient(165deg, var(--navy-primary) 0%, var(--navy-light) 50%, var(--navy-accent) 100%);
    color: var(--gold-light);
    padding: 10rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212, 175, 55, 0.03) 35px, rgba(212, 175, 55, 0.03) 70px);
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid var(--gold-primary);
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

.badge-verified i {
    font-size: 1.3rem;
    color: var(--gold-primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-title strong {
    font-weight: 600;
    color: var(--gold-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Main Content */
.main-content {
    margin-top: -6rem;
    position: relative;
    z-index: 3;
    padding-bottom: 6rem;
}

/* Certificate Card - Diseño Elegante */
.certificate-card {
    background: white;
    border-radius: 32px;
    padding: 4rem;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
    border: 1px solid var(--border-elegant);
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
}

.certificate-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    margin-bottom: 3rem;
    border: 3px solid var(--gold-primary);
    box-shadow:
        0 0 0 8px rgba(212, 175, 55, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.1);
}

.certificate-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate-image-container:hover .certificate-image {
    transform: scale(1.03);
}

.verified-stamp {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: linear-gradient(135deg, var(--success-emerald) 0%, #10b981 100%);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 4px 12px rgba(5, 150, 105, 0.3),
        0 0 0 4px rgba(5, 150, 105, 0.1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
}

/* Premium Divider */
.premium-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-primary) 50%, transparent 100%);
    margin: 3rem 0;
}

/* Info Grid - Diseño en Línea Elegante */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    margin: 3rem 0;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(10, 25, 41, 0.15);
}

.info-card {
    background: transparent;
    padding: 2.5rem 2rem;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: none;
    box-shadow: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.info-card:last-child {
    border-right: none;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.info-card:hover {
    transform: translateY(-3px);
}

.info-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.2rem;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.info-card-title {
    font-size: 0.75rem;
    color: var(--gold-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.info-card-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

/* Credential Details - Diseño Minimalista */
.credential-details {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-elegant);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold-primary);
    color: var(--navy-primary);
}

.section-title i {
    font-size: 1.8rem;
    color: var(--gold-primary);
}

.detail-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    align-items: start;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.detail-label i {
    font-size: 1.1rem;
    color: var(--gold-dark);
}

.detail-value {
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.7;
}

/* Blockchain Section - Diseño Sofisticado */
.blockchain-section {
    background: linear-gradient(135deg, var(--navy-primary) 0%, #1e293b 100%);
    color: white;
    border-radius: 24px;
    padding: 4rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.blockchain-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.blockchain-content {
    position: relative;
    z-index: 1;
}

.blockchain-icon {
    width: 72px;
    height: 72px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gold-primary);
}

.hash-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 4px solid var(--gold-primary);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.hash-display a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hash-display a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Skills Section - Diseño Premium */
.skills-section {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-elegant);
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    color: var(--navy-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.4rem;
    border: 2px solid var(--border-elegant);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skill-tag:hover {
    background: var(--navy-primary);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 25, 41, 0.15);
}

.skill-tag i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.skill-tag:hover i {
    transform: rotate(15deg);
}

/* Action Buttons - Diseño Sofisticado */
.action-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.btn-action {
    padding: 1.1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-action:hover::before {
    width: 300px;
    height: 300px;
}

.btn-action i {
    position: relative;
    z-index: 1;
}

.btn-action span {
    position: relative;
    z-index: 1;
}

.btn-action.primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--navy-primary);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-action.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.btn-action.outline {
    background: white;
    color: var(--navy-primary);
    border: 2px solid var(--navy-primary);
}

.btn-action.outline:hover {
    background: var(--navy-primary);
    color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10, 25, 41, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 8rem 0 6rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .certificate-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-card {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .info-card:last-child {
        border-bottom: none;
    }

    .detail-item {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .verified-stamp {
        top: 1.5rem;
        right: 1.5rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.animate-delay-1 {
    animation-delay: 0.15s;
}

.animate-delay-2 {
    animation-delay: 0.3s;
}

.animate-delay-3 {
    animation-delay: 0.45s;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.fw-bold {
    font-weight: 700;
}
