:root {
    --primary: #0A192F;      /* Dark navy, very corporate */
    --primary-light: #172A45;
    --primary-dark: #020C1B;
    --secondary: #CCA35E;    /* Premium Gold */
    --secondary-hover: #D4B275;
    --text-dark: #334155;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-hover);
}

/* Layout Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.highlight {
    color: var(--secondary);
}
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(204, 163, 94, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(204, 163, 94, 0.6), inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(204, 163, 94, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.logo-text {
    font-weight: 400;
    color: var(--primary);
}

.logo-text strong {
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav a:not(.btn):hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--bg-white);
    overflow: hidden;
}

/* Add a subtle animated grid pattern for a high-tech legal feel */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.4;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(30px) translateZ(-200px); }
}

.hero h1, .hero .subtitle, .hero .secure-payment {
    color: var(--bg-white);
}

.hero .subtitle {
    opacity: 0.9;
    font-size: 1.15rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1.2;
}

.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 800;
}

/* Fake Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateZ(0); /* Hardware acceleration */
}

.search-box h3 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.plate-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-family: inherit;
    text-transform: uppercase;
}

.plate-input:focus {
    outline: 2px solid var(--secondary);
}

.search-input-group .btn {
    background-color: var(--secondary);
    color: #fff;
    white-space: nowrap;
}

.search-input-group .btn:hover {
    background-color: var(--secondary-hover);
}

/* Hero Image / Glass Card */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    color: var(--text-dark);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.card-header .icon {
    font-size: 1.5rem;
}

.savings-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.5rem;
}

.savings-row:last-of-type {
    border-bottom: none;
}

.savings-row .cost {
    font-weight: 600;
}

.savings-row .high {
    color: var(--danger);
    text-decoration: line-through;
}

.glass-card hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 1.5rem 0;
}

.total-savings {
    font-size: 1.25rem;
    font-weight: 800;
    border-bottom: none;
}

.savings-amount {
    color: var(--success);
    font-size: 1.5rem;
}

.card-footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(204, 163, 94, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* As Seen On */
.as-seen-on {
    background-color: var(--bg-white);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.as-seen-on p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s;
}

.media-logos:hover {
    opacity: 0.8;
}

.media-logo {
    display: inline-block;
    transition: transform 0.3s;
    color: var(--primary);
}

.media-logo:hover {
    transform: scale(1.05);
    color: var(--primary);
}

.logo-liberador {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-lacapital {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: -1px;
}

.logo-uno {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    border: 3px solid var(--primary);
    padding: 0.1rem 0.5rem;
}

.logo-rosario3 {
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.logo-destape {
    font-family: 'Impact', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
}

/* Context / Steps Section */
.context {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.text-expanded {
    max-width: 800px;
    text-align: justify;
}

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

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

.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--bg-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-50%);
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -30px;
}

.step-card h3 {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/* Our Team */
.team {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 80px 0;
}

.team .section-title, .team .section-desc {
    color: var(--bg-white);
}

.team .section-desc {
    opacity: 0.8;
}

.team-grid {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    max-width: 400px;
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.member-title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-desc {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-white);
}

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

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

.stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.client-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--bg-white);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 12, 27, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-white);
    width: 95%;
    max-width: 600px;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--danger);
}

.modal-step {
    animation: fadeIn 0.4s ease forwards;
}

.modal-step.hidden {
    display: none;
}

/* Form Grid */
.form-row {
    display: flex;
    gap: 1rem;
}

.half {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input:not([type="file"]) {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--bg-light);
}

.form-group input:not([type="file"]):focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(204, 163, 94, 0.15);
    background: var(--bg-white);
}

/* File Upload Custom */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}
.file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.file-upload-visual {
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    transition: border-color 0.3s, background 0.3s;
}
.file-upload-wrapper:hover .file-upload-visual {
    border-color: var(--secondary);
    background: rgba(204, 163, 94, 0.05);
}
.help-text {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .search-input-group {
        flex-direction: column;
    }
    .nav {
        display: none;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Radars Table Styles */
.modal-large {
    max-width: 800px;
}

.modal-header-custom {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-header-custom h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-header-custom p {
    color: var(--text-muted);
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.radars-table {
    width: 100%;
    border-collapse: collapse;
}

.radars-table th, .radars-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}

.radars-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary);
    position: sticky;
    top: 0;
}

.radars-table tbody tr:last-child td {
    border-bottom: none;
}

.radars-table tbody tr:hover {
    background-color: rgba(204, 163, 94, 0.05);
}

/* Toast Notifications */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--primary); color: white; padding: 16px 24px; border-radius: 8px; font-weight: 500; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border-left: 4px solid var(--danger); display: flex; align-items: center; gap: 12px; }
.toast.success { border-left-color: var(--success); }
.toast svg { width: 20px; height: 20px; }
