body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    padding: 1.5rem 0;
    border-bottom: 3px solid #f59e0b;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-description p {
    margin: 0;
    color: #e0e7ff;
    font-size: 1rem;
    font-weight: 500;
}

.main-content {
    padding: 4rem 0;
}

.search-section {
    background: white;
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    border: 2px solid #e2e8f0;
    text-align: center;
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0047bb 0%, #fe9f1a 100%);
}

.search-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150px;
    height: 150px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0047bb;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.search-description {
    color: #64748b;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
    font-weight: 500;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: #0047bb;
    box-shadow: 0 0 0 5px rgba(0, 71, 187, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.btn-validate {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-validate:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
}

.hash-examples {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid #e2e8f0;
}

.hash-examples h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hash-tag {
    display: inline-block;
    background: white;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    font-weight: 600;
}

.hash-tag:hover {
    background: #0047bb;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 71, 187, 0.25);
    border-color: #0047bb;
}

.loading-state {
    display: none;
    text-align: center;
    padding: 3rem;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border: 3px solid #2563eb;
}

.spinner {
    width: 4rem;
    height: 4rem;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state h4 {
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.loading-state p {
    color: #64748b;
    font-size: 1.1rem;
}

.validation-result {
    display: none;
    background: #ffffff;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 2rem;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.validation-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0047bb 0%, #fe9f1a 100%);
}

.certificate-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.certificate-logo {
    width: 300px;
    height: auto;
    margin-bottom: 1.5rem;
}

.certificate-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0047bb;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 71, 187, 0.1);
}

.certificate-subtitle {
    color: #0047bb;
    font-size: 1.2rem;
    font-weight: 500;
}

.certificate-content {
    margin-bottom: 2rem;
}

.certificate-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.info-row:hover {
    background: rgba(0, 71, 187, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 187, 0.15);
    border-color: #0047bb;
}

.info-row:nth-child(odd) {
    grid-column: 1;
}

.info-row:nth-child(even) {
    grid-column: 2;
}

.info-row:nth-child(5),
.info-row:nth-child(6) {
    grid-column: 1 / -1;
    width: 50%;
    margin: 0 auto;
}

.info-label {
    font-weight: 700;
    color: #0047bb;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 71, 187, 0.1);
    border-radius: 8px;
    border-left: 4px solid #fe9f1a;
}

.certificate-message {
    background: linear-gradient(135deg, #0047bb 0%, #fe9f1a 100%);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 71, 187, 0.3);
    position: relative;
    overflow: hidden;
}

.certificate-message::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
}

.message-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.message-text {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.certificate-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.footer-text {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-text strong {
    color: #0047bb;
    font-weight: 700;
}

.notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
    border: 3px solid #2563eb;
}

.notificacion.mostrar {
    transform: translateX(0);
}

.notificacion-contenido {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notificacion-success {
    border-left: 5px solid #10b981;
}

.notificacion-error {
    border-left: 5px solid #ef4444;
}

.notificacion-warning {
    border-left: 5px solid #f59e0b;
}

.notificacion-info {
    border-left: 5px solid #2563eb;
}

.notificacion i {
    font-size: 1.4rem;
}

.notificacion-success i {
    color: #10b981;
}

.notificacion-error i {
    color: #ef4444;
}

.notificacion-warning i {
    color: #f59e0b;
}

.notificacion-info i {
    color: #2563eb;
}

/* Estilos para certificados con error */
.validation-error .certificate-header {
    border-bottom-color: #fecaca;
}

.validation-error .certificate-title {
    color: #dc2626;
}

.validation-error .certificate-subtitle {
    color: #ef4444;
}

.validation-error .certificate-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-left: 5px solid #f59e0b;
}

.validation-error .message-title {
    color: #ffffff;
}

.validation-error .message-text {
    color: rgba(255, 255, 255, 0.9);
}

.validation-error .certificate-footer {
    border-top-color: #fecaca;
}

.validation-error .footer-text {
    color: #ef4444;
}

/* Animación de entrada */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos adicionales */
.search-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.3);
}

.hash-tag:active {
    transform: scale(0.95);
}

.btn-validate:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .certificate-title {
        font-size: 2rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .search-section {
        padding: 2rem 1rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .validation-result {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
}
