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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #333;
}

/* ============ HEADER ============ */
header {
    background: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ============ LOGO ============ */
.logo-certius {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-certius img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-certius img:hover {
    transform: scale(1.05);
}

.logo-certius-text {
    display: flex;
    flex-direction: column;
}

.logo-certius-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #000000;
    line-height: 1;
}

.logo-certius-tagline {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #666666;
    margin-top: 3px;
}

/* ============ NAVEGACIÓN ============ */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.nav-menu .btn-nav {
    background: #000000;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
}

.nav-menu .btn-nav:hover {
    background: #22c55e;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============ CONTENEDOR ============ */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ============ TARJETAS ============ */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* ============ FORMULARIOS ============ */
input, select, textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

button, .btn {
    background: #000000;
    color: #ffffff;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

button:hover, .btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 30px;
    padding: 70px 40px;
    color: #000000;
    margin-bottom: 60px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #000000;
}

.hero-buttons {
    margin-top: 35px;
}

.btn-primary {
    background: #22c55e;
    color: #ffffff !important;
    display: inline-block;
    width: auto;
    margin: 0 10px;
}

.btn-primary:hover {
    background: #16a34a;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #000000;
    color: #000000 !important;
    display: inline-block;
    width: auto;
    margin: 0 10px;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff !important;
}

/* ============ BENEFICIOS ============ */
.beneficios h2, .seccion h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
    font-size: 2.2em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* ============ FORMATOS SOPORTADOS ============ */
.formatos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.formato-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.formato-item:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
}

.formato-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.formato-nombre {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 13px;
}

.formato-ext {
    font-size: 10px;
    color: #888;
    font-family: monospace;
}

/* ============ ZONA DE SUBIDA ============ */
.file-zone {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.file-label {
    background: #f0fdf4;
    border: 2px dashed #22c55e;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #22c55e;
    transition: all 0.3s;
}

.file-label:hover {
    background: #22c55e;
    color: white;
}

input[type="file"] {
    display: none;
}

.file-name {
    font-size: 14px;
    color: #666;
}

.formatos-rapidos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.formatos-rapidos span {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
}

/* ============ PASOS ============ */
.pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.paso {
    text-align: center;
}

.numero {
    width: 60px;
    height: 60px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
}

/* ============ PAQUETES ============ */
.paquetes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.paquete {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.paquete:hover {
    transform: translateY(-8px);
    border-color: #22c55e;
}

.paquete.destacado {
    border: 2px solid #22c55e;
    transform: scale(1.02);
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.precio {
    font-size: 32px;
    font-weight: bold;
    color: #22c55e;
    margin: 15px 0;
}

.ahorro {
    color: #22c55e;
    font-weight: bold;
    margin-top: 10px;
}

/* ============ FAQ ============ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.faq-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.faq-item h3 {
    color: #22c55e;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.faq-item p {
    color: #666;
    line-height: 1.5;
}

/* ============ RESULTADOS ============ */
.resultado {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 30px 0;
}

.resultado.exito {
    background: #f0fdf4;
    border: 2px solid #22c55e;
}

.resultado.error {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.codigo {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 8px;
    background: #000000;
    color: #ffffff;
    display: inline-block;
    padding: 18px 30px;
    border-radius: 15px;
    margin: 20px 0;
    font-family: monospace;
}

.qr-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

/* ============ ALERTAS ============ */
.alerta {
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
}

.alerta.success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alerta.error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ============ TABLAS ADMIN ============ */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th {
    background: #000000;
    color: white;
    padding: 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background: #f8f9fa;
}

/* ============ SIDEBAR ADMIN ============ */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #000000;
    color: white;
    padding: 20px;
}

.sidebar h3 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar a:hover {
    background: #22c55e;
}

.content {
    flex: 1;
    padding: 30px;
    background: #f5f7fa;
}

/* ============ FOOTER (SIN LOGO, SIN PAÍS) ============ */
footer {
    background: #1a1a2e;
    color: #ffffff;
    padding: 50px 0 25px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-content h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #ffffff;
}

.footer-content a {
    color: #a0a0a0;
    text-decoration: none;
    line-height: 1.8;
    display: inline-block;
    margin: 3px 0;
}

.footer-content a:hover {
    color: #22c55e;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #2a2a4a;
    font-size: 12px;
    color: #a0a0a0;
}

/* ============ ANIMACIONES ============ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* ============ LOGIN ADMIN ============ */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    margin: 50px auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-certius img {
        height: 40px;
    }
    
    .logo-certius-name {
        font-size: 20px;
    }
    
    .logo-certius-tagline {
        font-size: 8px;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 10px;
    }
    
    .nav-menu a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h2 {
        font-size: 1.8em;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 80%;
        margin: 5px auto;
        text-align: center;
    }
    
    .codigo {
        font-size: 20px;
        letter-spacing: 4px;
        padding: 12px 20px;
    }
    
    .formatos-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .formato-item {
        padding: 12px 8px;
    }
    
    .formato-icon {
        font-size: 32px;
    }
    
    .formato-nombre {
        font-size: 11px;
    }
    
    .file-zone {
        flex-direction: column;
        align-items: stretch;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .login-box {
        width: 90%;
        padding: 30px 20px;
    }
    
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 6px 8px;
    }
}

/* ============ UTILIDADES ============ */
.text-center {
    text-align: center;
}

.text-success {
    color: #22c55e;
}

.text-error {
    color: #ef4444;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Enlace tipo botón */
.btn-link {
    display: inline-block;
    background: #000000;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-link:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
    color: white;
}

/* Versión secundaria (outline) */
.btn-link-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-link-outline:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}