/* ==========================================================================
   NEXO ONE - SPERCOL S.A.S
   Estilos Principales
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --accent: #38bdf8;
    --border-color: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
    background-color: var(--secondary);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}

.logo-accent {
    color: var(--primary);
}

.legal-badge-sm {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    text-align: center;
}

.hero-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section {
    padding: 5rem 0;
}

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

.text-center {
    text-align: center;
}

.sub-heading {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    color: var(--secondary);
    font-weight: 800;
}

/* Services */
.services-section {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* About & Legal */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.legal-card-box {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.legal-card-box h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-list {
    list-style: none;
}

.legal-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.legal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Contact */
.contact-section {
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-list i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-list strong {
    display: block;
    color: var(--secondary);
}

.contact-form-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

.form-checkbox {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 2rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
}

.modal-container {
    position: relative;
    background: var(--bg-white);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2001;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--secondary);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-body h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--secondary);
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
