:root {
    --primary-blue: #006B7D;
    --success-green: #82C341;
    --footer-teal: #006B7D;
    --bg-light: #F8F9FA;
    --text-dark: #006B7D;
    --text-muted: #006B7D;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #E9ECEF;
    color: #006B7D; /* Azul petróleo solicitado */
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: white;
    padding: 0; /* Changed padding to 0 to fit the colored bar */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    max-width: none;
    margin: 0;
    padding: 0 30px; /* Un pequeño margen para que no toque el borde físico */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.red-a-box {
    background-color: #E53935;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.a-letter {
    color: white;
    font-size: 24px;
    font-weight: 700;
    font-family: sans-serif;
}

.logo-area img {
    height: 48px; /* Aumentado un 5% */
    width: auto;
    display: block;
}

/* Multi-colored bar */
.colored-bar {
    display: flex;
    height: 6px;
    width: 100%;
}

.bar-segment {
    height: 100%;
}

.bar-orange { background-color: #F9A825; width: 25%; }
.bar-teal { background-color: #00897B; width: 15%; }
.bar-red { background-color: #E53935; width: 15%; }
.bar-light-teal { background-color: #00ACC1; width: 20%; }
.bar-lime { background-color: #7CB342; width: 25%; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.login-btn {
    background-color: #82C341; /* Exact color from original */
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    filter: brightness(0.95);
}

/* Status Bar */
.status-bar {
    background-color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
}

.status-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-icon {
    color: var(--success-green);
    display: flex;
}

.status-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--success-green);
}

/* Main Content */
.verification-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    margin-bottom: 20px;
}

.info-column {
    padding: 40px;
}

.info-group {
    margin-bottom: 24px;
}

.info-group label {
    display: block;
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-group h2 {
    font-size: 28px;
    color: var(--footer-teal);
    font-weight: 700;
}

.info-group h3 {
    font-size: 24px;
    color: var(--footer-teal);
    font-weight: 600;
    line-height: 1.3;
}

.divider {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.value {
    display: block;
    font-size: 18px;
    font-weight: 500;
}

.value.large {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.value.mono {
    font-family: monospace;
    font-size: 20px; /* Tamaño aumentado */
    font-weight: 700; /* En negrita */
    word-break: break-all;
}

.preview-column {
    background-color: #f1f3f5;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-container {
    background-color: white;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: rotate(2deg);
}

.certificate-preview {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Footer Actions */
.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f1f3f5;
    border-radius: 8px;
    margin-bottom: 40px;
}

.footer-actions p {
    font-size: 14px;
    color: var(--text-muted);
}

.download-btn {
    background-color: white;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--footer-teal);
    transition: all 0.2s;
}

.download-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* Footer */
.main-footer {
    background-color: var(--footer-teal);
    color: white;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icons img:hover {
    opacity: 1;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn img {
    height: 40px;
}

.contact-btn {
    background-color: #20c997;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
    .verification-card {
        grid-template-columns: 1fr;
    }
    .preview-column {
        order: -1;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-actions {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .stats-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Transparencia suave */
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    max-width: 800px; /* Tamaño controlado */
    width: 90%;
}

.modal-image-container {
    position: relative;
    background: #000;
    padding: 20px; /* Borde negro como el original */
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.modal-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.close-modal {
    position: absolute;
    right: -15px;
    top: -15px;
    color: #006B7D;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.modal-download-btn {
    position: absolute;
    right: 35px;
    top: 35px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    z-index: 1002;
}
