:root {
    --primary-red: #F70000;
    --dark-red: #7E0204;
    --bg-light: #f0f2f5;
    --text-main: #333;
    --text-muted: #555;
    --transition: all 0.3s ease;
}

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

body { 
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif; 
    font-size: 14px; 
    color: var(--text-main); 
    background: var(--bg-light); 
    line-height: 1.6; 
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- HEADER & NAV --- */
.top-bar {
    background: var(--dark-red);
    color: rgba(255,255,255,0.9);
    padding: 8px 50px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar { 
    background: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 50px; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.navbar-brand { display: flex; align-items: center; gap: 15px; padding: 12px 0; }
.brand-logo img { height: 65px; width: auto; }

.brand-text { border-left: 2px solid #eee; padding-left: 15px; }
.brand-name { 
    font-size: 16px; 
    font-weight: 800; 
    color: #222; 
    line-height: 1.1; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.brand-name span { color: var(--primary-red); }

.nav-links { display: flex; align-items: center; }
.nav-links > a { 
    color: var(--text-muted); 
    font-size: 13px; 
    padding: 35px 20px; 
    display: block; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links > a::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links > a:hover { color: var(--primary-red); }
.nav-links > a:hover::after, .nav-links > a.active::after { width: 30px; }
.nav-links > a.active { color: var(--primary-red); }

/* --- SLIDER & CONTENT --- */
.slider-container { position: relative; width: 100%; height: 500px; overflow: hidden; background: #000; }
.slider { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); height: 100%; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

.slide-content { 
    position: absolute; 
    top: 50%; 
    left: 10%; 
    transform: translateY(-50%); 
    color: #fff; 
    max-width: 700px; 
    z-index: 10; 
}
.slide-content h2 { font-size: 48px; font-weight: 800; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.slide-content p { font-size: 20px; margin-bottom: 30px; opacity: 0.9; }

.btn-cta { 
    background: var(--primary-red); 
    color: #fff; 
    padding: 15px 35px; 
    border-radius: 4px; 
    font-weight: bold; 
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(247, 0, 0, 0.3);
}
.btn-cta:hover { background: var(--dark-red); transform: translateY(-2px); }

.container { max-width: 1200px; margin: 60px auto; padding: 0 20px; display: grid; grid-template-columns: 2.5fr 1fr; gap: 50px; }

.welcome-section h1 { 
    color: var(--dark-red); 
    font-size: 36px; 
    margin-bottom: 25px; 
    border-left: 6px solid var(--primary-red); 
    padding-left: 20px; 
    line-height: 1.2;
}

/* --- CARDS & GRID --- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 40px; }
.info-card { 
    background: #fff; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    border-top: 4px solid var(--primary-red);
    transition: var(--transition);
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.info-card h3 { color: var(--dark-red); margin-bottom: 12px; font-size: 18px; font-weight: 700; }

/* --- SIDEBAR --- */
.sidebar-box { background: #fff; padding: 25px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.sidebar-box h2 { font-size: 20px; color: var(--dark-red); margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; padding-bottom: 12px; }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid #f8f8f8; font-size: 13.5px; color: var(--text-muted); }
.sidebar-list li::before { content: "→"; color: var(--primary-red); font-weight: bold; margin-right: 10px; }
.sidebar-list li strong { color: var(--dark-red); font-size: 12px; text-transform: uppercase; }

/* --- VERIFICATION & FORMS --- */
.verification-card { background: var(--dark-red) !important; color: #fff; text-align: center; }
.btn-verify { 
    display: block; 
    background: #fff; 
    color: var(--dark-red); 
    text-align: center; 
    padding: 12px; 
    border-radius: 6px; 
    font-weight: 800; 
    margin-top: 20px;
    text-transform: uppercase;
}

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #7E0204; }
.form-group input[type="text"], .form-group input { width: 100%; padding: 12px 15px; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 14px; }
.form-group input:focus, textarea:focus { outline: none; border-color: var(--primary-red) !important; }

/* --- RESULTS --- */
.result-box { margin-top: 25px; padding: 20px; border-radius: 10px; animation: fadeIn 0.5s; font-size: 14px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.result-valid { background: #e8f5e9; border: 2px solid #4caf50; color: #1b5e20; }
.result-error { background: #ffebee; border: 2px solid #f44336; color: #c62828; }

/* --- ABOUT & ADDITIONAL --- */
.page-banner { background: linear-gradient(rgba(126, 2, 4, 0.9), rgba(126, 2, 4, 0.9)), url('img/banner-about.jpg'); background-size: cover; background-position: center; color: #fff; padding: 60px 50px; text-align: center; }
.section-title { color: var(--dark-red); font-size: 28px; margin-bottom: 20px; font-weight: 700; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--primary-red); }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.principle-item { background: var(--bg-light); padding: 20px; border-radius: 8px; text-align: center; border-bottom: 3px solid transparent; transition: var(--transition); }
.principle-item:hover { border-bottom-color: var(--primary-red); transform: translateY(-5px); background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* --- FOOTER --- */
.footer { background: #1a1a1a; color: #999; padding: 60px 20px; text-align: center; margin-top: 80px; }

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .top-bar { display: none; }
    .navbar { padding: 0 20px; }
    .brand-text { display: none; }
    .container, .main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .content-card { padding: 30px 20px; }
    .principles-grid { grid-template-columns: 1fr 1fr; }
    .page-banner h1 { font-size: 28px; }
    .nav-links { display: none; }
}

/* --- Recuperando: ABOUT CONTENT & MAIN CONTAINER --- */
.main-container { 
    max-width: 1100px; 
    margin: -40px auto 60px; 
    padding: 0 20px; 
    position: relative; 
    z-index: 10; 
}

.content-card { 
    background: #fff; 
    padding: 50px; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
    margin-bottom: 40px; 
}

.about-text { 
    font-size: 16px; 
    color: #555; 
    line-height: 1.8; 
    margin-bottom: 30px; 
    text-align: justify; 
}

/* --- Recuperando: HISTORY & SERVICES --- */
.history-box { 
    background: var(--dark-red); 
    color: #fff; 
    padding: 40px; 
    border-radius: 12px; 
    margin-bottom: 40px; 
}

.history-box h2 { 
    margin-bottom: 15px; 
    font-size: 24px; 
    color: #fff; 
    border-bottom: 1px solid rgba(255,255,255,0.2); 
    padding-bottom: 10px; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 15px; 
    margin-top: 30px; 
}

.service-tag { 
    background: #fff; 
    border: 1px solid #eee; 
    padding: 12px 15px; 
    border-radius: 6px; 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
    transition: var(--transition); 
}

.service-tag::before { 
    content: '✓'; 
    color: var(--primary-red); 
    font-weight: bold; 
    margin-right: 10px; 
}

.service-tag:hover { 
    border-color: var(--primary-red); 
    color: var(--primary-red); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

/* --- Recuperando: PRINCIPLES (Detalles) --- */
.principle-item strong { 
    color: var(--dark-red); 
    display: block; 
    font-size: 15px; 
    text-transform: uppercase; 
}

.breadcrumb { 
    font-size: 12px; 
    opacity: 0.8; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
/* --- CONTACT & LAYOUT ESPECÍFICO --- */
.main { 
    display: flex; 
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 0 20px; 
    gap: 30px; 
}

.content { flex: 1; }

.sidebar { 
    width: 280px; 
    flex-shrink: 0; 
}

/* --- FORMULARIO DE CONTACTO / CHECK --- */
.section-sub { 
    font-size: 14px; 
    color: #666; 
    margin-bottom: 25px; 
    margin-left: 19px; 
}

.form-card { 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); 
    padding: 30px; 
}

.btn-check { 
    background: linear-gradient(135deg, #7E0204, #F70000); 
    color: #fff; 
    border: none; 
    padding: 12px 35px; 
    border-radius: 8px; 
    font-size: 15px; 
    cursor: pointer; 
    font-weight: 600; 
    width: 100%; 
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-check:hover { 
    opacity: 0.9;
    transform: translateY(-2px); 
}

/* --- SIDEBAR CARDS (CONTACTO) --- */
.sidebar-card { 
    background: #fff; 
    border-radius: 12px; 
    margin-bottom: 25px; 
    overflow: hidden; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); 
}

.sidebar-title { 
    font-size: 14px; 
    font-weight: 700; 
    color: #fff; 
    background: linear-gradient(135deg, #7E0204, #F70000); 
    padding: 12px 18px; 
}

.sidebar-body { 
    padding: 15px 18px; 
}

.sidebar-body ul { list-style: none; }

.sidebar-body ul li { 
    border-bottom: 1px solid #f0f0f0; 
    padding: 8px 0; 
    font-size: 13px; 
}

.sidebar-body ul li a { 
    color: #F70000; 
    font-weight: 600;
}

/* --- TABLAS DE RESULTADOS (VALIDACIÓN) --- */
.result-valid table { 
    width: 100%; 
    margin-top: 15px; 
    border-collapse: collapse; 
}

.result-valid table td { 
    padding: 8px 10px; 
    border-bottom: 1px solid rgba(76,175,80,0.2); 
}

.status-badge { 
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
    color: #fff; 
}

.status-active { background: #4caf50; }
.status-expired { background: #f44336; }

/* ============================================================
   ESTILOS DE VERIFICACIÓN (VALIDITY.PHP)
   ============================================================ */

.vld-main-wrapper {
    display: flex !important;
    flex-direction: row !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

.vld-left-column { flex: 2.5 !important; }
.vld-right-column { flex: 1 !important; width: 300px !important; }

.vld-auth-card {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.vld-title-wrap {
    border-bottom: 2px solid #eee !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
}

.vld-section-title {
    color: #7E0204 !important;
    font-size: 26px !important;
    margin: 0 !important;
    position: relative !important;
}

.vld-section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -12px !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: #F70000 !important;
}

.vld-section-sub {
    color: #666 !important;
    margin-bottom: 30px !important;
    font-size: 15px !important;
}

.vld-form-group { margin-bottom: 20px !important; }
.vld-label {
    display: block !important;
    color: #7E0204 !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.vld-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

.vld-btn-submit {
    background: #F70000 !important;
    color: #fff !important;
    border: none !important;
    padding: 18px !important;
    width: 100% !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: 0.3s !important;
}

.vld-btn-submit:hover { background: #7E0204 !important; }

/* Resultados */
.vld-res-box {
    margin-top: 30px !important;
    padding: 25px !important;
    border-radius: 8px !important;
    border-left: 5px solid !important;
}

.vld-res-valid { background: #f9fdf9 !important; border-color: #4caf50 !important; color: #333 !important; }
.vld-res-error, .vld-res-invalid { background: #fff5f5 !important; border-color: #f44336 !important; }

.vld-res-details p { margin: 10px 0 !important; border-bottom: 1px solid #eee !important; padding-bottom: 5px !important; }

.vld-status {
    padding: 3px 12px !important;
    border-radius: 20px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: bold !important;
}
.vld-status-active { background: #4caf50 !important; }

/* Sidebar Unique */
.vld-side-card {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    margin-bottom: 25px !important;
    overflow: hidden !important;
}

.vld-side-title {
    background: #7E0204 !important;
    color: #fff !important;
    padding: 15px 20px !important;
    font-weight: 700 !important;
}

.vld-side-body { padding: 20px !important; }
.vld-side-list { list-style: none !important; padding: 0 !important; }
.vld-side-list li { padding: 10px 0 !important; border-bottom: 1px solid #eee !important; }
.vld-side-list a { color: #F70000 !important; font-weight: 600 !important; }

.vld-side-red .vld-side-title { background: #F70000 !important; }

/* Mobile */
@media (max-width: 992px) {
    .vld-main-wrapper { flex-direction: column !important; }
    .vld-right-column { width: 100% !important; }
}