/* =====================================================================
   CNS Sistemas — Sitio Web Institucional
   Paleta coherente con Contad10/CSueldos10 (navy + dorado)
   ===================================================================== */

:root {
    --cns-navy-900: #0a1f3c;
    --cns-navy-800: #0f2a4e;
    --cns-navy-700: #163a63;
    --cns-navy-600: #1d4a7e;
    --cns-navy-500: #2563a0;
    --cns-gold: #f5b301;
    --cns-gold-soft: #ffd34d;
    --cns-gold-glow: rgba(245, 179, 1, 0.35);
    --cns-bg: #f8f9fc;
    --cns-surface: #ffffff;
    --cns-ink: #1e2a3a;
    --cns-muted: #6b7a90;
    --cns-border: #e4e9f2;
    --cns-radius: 16px;
    --cns-shadow: 0 8px 32px rgba(10, 31, 60, 0.10);
    --cns-shadow-sm: 0 2px 12px rgba(10, 31, 60, 0.06);
}

* { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", Roboto, -apple-system, sans-serif;
    color: var(--cns-ink);
    background: var(--cns-bg);
    overflow-x: hidden;
}

/* ---------- NAVBAR ---------- */
#mainNav {
    background: rgba(10, 31, 60, 0.92);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
#mainNav.scrolled {
    background: rgba(10, 31, 60, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}
.brand-accent {
    color: var(--cns-gold);
    font-weight: 400;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
    font-size: 0.95rem;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--cns-gold);
}

/* ---------- HERO ---------- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--cns-navy-900) 0%, var(--cns-navy-700) 50%, var(--cns-navy-600) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(245, 179, 1, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(37, 99, 160, 0.15) 0%, transparent 50%);
}

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

.hero-badge {
    display: inline-block;
    background: rgba(245, 179, 1, 0.15);
    color: var(--cns-gold);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 179, 1, 0.25);
}

.hero-title {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.text-gold { color: var(--cns-gold); }

.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero graphic */
.hero-graphic {
    position: relative;
    width: 320px;
    height: 320px;
}

.hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cns-gold), var(--cns-gold-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--cns-navy-900);
    box-shadow: 0 0 60px var(--cns-gold-glow);
}

.orbit {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cns-gold-soft);
    font-size: 1.1rem;
    animation: float 6s ease-in-out infinite;
}

.orbit-1 { top: 10%; left: 15%; animation-delay: 0s; }
.orbit-2 { top: 5%; right: 15%; animation-delay: 2s; }
.orbit-3 { bottom: 15%; left: 8%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ---------- BUTTONS ---------- */
.btn { border-radius: 10px; font-weight: 600; transition: all 0.2s; }

.btn-gold {
    background: var(--cns-gold);
    border-color: var(--cns-gold);
    color: var(--cns-navy-900);
}
.btn-gold:hover {
    background: #e0a400;
    border-color: #e0a400;
    color: var(--cns-navy-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--cns-gold-glow);
}

.btn-navy {
    background: var(--cns-navy-700);
    border-color: var(--cns-navy-700);
    color: #fff;
}
.btn-navy:hover {
    background: var(--cns-navy-800);
    border-color: var(--cns-navy-800);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 31, 60, 0.25);
}

.btn-gold-solid {
    background: var(--cns-gold);
    border-color: var(--cns-gold);
    color: var(--cns-navy-900);
}
.btn-gold-solid:hover {
    background: #e0a400;
    border-color: #e0a400;
    color: var(--cns-navy-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--cns-gold-glow);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ---------- SECTIONS ---------- */
.section-padding {
    padding: 5rem 0;
}

.bg-light-section {
    background: #f0f3f8;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: rgba(22, 58, 99, 0.08);
    color: var(--cns-navy-700);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--cns-navy-900);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--cns-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ---------- PRODUCT CARDS ---------- */
.product-card {
    background: var(--cns-surface);
    border-radius: var(--cns-radius);
    box-shadow: var(--cns-shadow-sm);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    border: 1px solid var(--cns-border);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cns-shadow);
}

.product-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.2rem;
}

.product-icon.bg-navy {
    background: linear-gradient(135deg, var(--cns-navy-700), var(--cns-navy-600));
    color: #fff;
    box-shadow: 0 8px 20px rgba(22, 58, 99, 0.25);
}

.product-icon.bg-gold {
    background: linear-gradient(135deg, var(--cns-gold), var(--cns-gold-soft));
    color: var(--cns-navy-900);
    box-shadow: 0 8px 20px var(--cns-gold-glow);
}

.product-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cns-navy-900);
    margin-bottom: 0.3rem;
}

.product-tagline {
    color: var(--cns-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--cns-ink);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.product-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--cns-ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-features li i {
    color: #1f9d72;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ---------- SERVICE CARDS ---------- */
.service-card {
    background: var(--cns-surface);
    border-radius: var(--cns-radius);
    box-shadow: var(--cns-shadow-sm);
    padding: 2rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    border: 1px solid var(--cns-border);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cns-shadow);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(22, 58, 99, 0.08);
    color: var(--cns-navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.2rem;
    transition: background 0.2s, color 0.2s;
}

.service-card:hover .service-icon {
    background: var(--cns-navy-700);
    color: var(--cns-gold-soft);
}

.service-card h4 {
    font-weight: 700;
    color: var(--cns-navy-900);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.service-card p {
    color: var(--cns-muted);
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- ACCESS CARDS ---------- */
.access-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: var(--cns-surface);
    border-radius: var(--cns-radius);
    box-shadow: var(--cns-shadow-sm);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 2px solid var(--cns-border);
    height: 100%;
}
.access-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cns-shadow);
    border-color: var(--cns-navy-600);
}

.access-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.access-card h4 {
    font-weight: 800;
    color: var(--cns-navy-900);
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

.access-card p {
    color: var(--cns-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.access-btn {
    display: inline-block;
    color: var(--cns-navy-700);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.access-card:hover .access-btn {
    color: var(--cns-gold);
}

/* ---------- CONTACT ---------- */
.contact-info-card {
    background: var(--cns-surface);
    border-radius: var(--cns-radius);
    box-shadow: var(--cns-shadow-sm);
    padding: 2rem;
    border: 1px solid var(--cns-border);
    height: 100%;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(22, 58, 99, 0.08);
    color: var(--cns-navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h5 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cns-navy-900);
    margin-bottom: 0.15rem;
}

.contact-item a {
    color: var(--cns-navy-600);
    text-decoration: none;
    font-weight: 500;
}
.contact-item a:hover {
    color: var(--cns-gold);
}

.contact-item p {
    color: var(--cns-muted);
    font-size: 0.9rem;
    margin: 0;
}

.contact-info-card hr {
    border-color: var(--cns-border);
    opacity: 0.5;
}

.contact-form {
    background: var(--cns-surface);
    border-radius: var(--cns-radius);
    box-shadow: var(--cns-shadow-sm);
    padding: 2rem;
    border: 1px solid var(--cns-border);
}

.contact-form .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--cns-navy-800);
}

.contact-form .form-control {
    border-radius: 10px;
    border-color: var(--cns-border);
    padding: 0.7rem 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--cns-navy-600);
    box-shadow: 0 0 0 0.2rem rgba(22, 58, 99, 0.12);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--cns-navy-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand span {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--cns-gold);
}

.footer-copy {
    font-size: 0.82rem;
    margin: 0;
    opacity: 0.7;
}

/* ---------- ANIMATIONS (scroll reveal) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.4rem; }
    .section-padding { padding: 3.5rem 0; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .section-title { font-size: 1.7rem; }
    .footer-brand { justify-content: center; }
    .footer-links { flex-wrap: wrap; gap: 1rem; }
    .footer-copy { margin-top: 0.5rem; }
}

@media (min-width: 768px) {
    .footer-brand { justify-content: flex-start; }
}
