/* ================================================================
   styles.css - Diseño oscuro inspirado en Shift Evidence
   Para CEARSYSTEM SAS - Modo oscuro con acentos azul/índigo
   ================================================================ */

/* ---------- RESET Y BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0b1120;
    color: #e2e8f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- CONTENEDOR ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- HEADER / NAV ---------- */
.navbar {
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo svg {
    width: 2rem;
    height: 2rem;
    color: #3b82f6;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a {
    color: #94a3b8;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #ffffff;
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color 0.2s;
}
.dropdown-btn:hover {
    color: #ffffff;
}
.dropdown-arrow {
    transition: transform 0.2s;
    width: 16px;
    height: 16px;
}
.dropdown-arrow.rotated {
    transform: rotate(180deg);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    min-width: 220px;
    padding: 0.5rem;
    z-index: 100;
}
.dropdown-menu.open {
    display: block;
}
.dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #e2e8f0;
    transition: background 0.15s;
}
.dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.15);
}
.dropdown-menu .section-title {
    display: block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3b82f6;
    margin-top: 0.25rem;
}
.dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0.25rem 0;
}
.dropdown-right .dropdown-menu {
    left: auto;
    right: 0;
}

.btn-outline-nav {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}
.btn-outline-nav:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}
.menu-toggle svg {
    width: 28px;
    height: 28px;
}

#mobile-menu {
    display: none;
    background: #0b1120;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.5rem;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 999;
}
#mobile-menu.open {
    display: block;
}
#mobile-menu a,
#mobile-menu details summary {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 500;
    color: #e2e8f0;
}
#mobile-menu a:last-child,
#mobile-menu details:last-child summary {
    border-bottom: none;
}
#mobile-menu details div a {
    padding-left: 1rem;
    font-weight: 400;
    border-bottom: none;
    font-size: 0.9rem;
    color: #94a3b8;
}
#mobile-menu details div a:hover {
    color: #ffffff;
}

/* ---------- HERO ---------- */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0b1120 0%, #1a2332 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.hero h1 span {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 1.5rem auto 2rem;
    position: relative;
}
.hero .badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}
.hero .btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

/* ---------- BOTONES ---------- */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ---------- SECCIONES ---------- */
section {
    padding: 4rem 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-sub {
    text-align: center;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}
.bg-soft {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ---------- TARJETAS (cards) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
}
.card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}
.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- BLOQUES DE SERVICIOS ---------- */
.service-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2rem;
}
.service-block .flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}
.service-block .flex-row .col {
    flex: 1 1 250px;
}
.service-block h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.service-block ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
}
.service-block ul li::before {
    content: "✓ ";
    color: #3b82f6;
    font-weight: 700;
}
.service-block .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.service-block .benefits-grid span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.tech-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: #94a3b8;
}
.tech-item strong {
    color: #60a5fa;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s;
}
.faq-item summary {
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary .arrow {
    transition: transform 0.2s;
    color: #3b82f6;
}
.faq-item[open] summary .arrow {
    transform: rotate(180deg);
}
.faq-item .answer {
    margin-top: 0.75rem;
    color: #94a3b8;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, #1a2332, #0b1120);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #ffffff;
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: 1.5rem;
    margin: 2rem auto;
}
.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
}
.cta-section h2 span {
    color: #60a5fa;
}
.cta-section p {
    opacity: 0.8;
    max-width: 600px;
    margin: 0.5rem auto 1.5rem;
    color: #94a3b8;
}
.cta-section .btn-white {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.15s;
}
.cta-section .btn-white:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */
.footer {
    background: #080d18;
    color: #64748b;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer h4 {
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.footer ul {
    list-style: none;
    font-size: 0.9rem;
}
.footer ul li {
    margin-bottom: 0.3rem;
}
.footer ul li a:hover {
    color: #e2e8f0;
}
.footer .copy {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .service-block ul {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
    .service-block .flex-row {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    #mobile-menu {
        display: none !important;
    }
}