/* CSS Principal - Guía Pico y Placa Solidario Bogotá 2026 */

/* --- variables del sistema de diseño --- */
:root {
    --bg-main: #07241c; /* Verde oscuro principal de la Alcaldía */
    --bg-card: rgba(0, 39, 28, 0.65); /* #00271C con opacidad */
    --bg-card-hover: rgba(0, 39, 28, 0.8);
    --border-glass: rgba(136, 244, 86, 0.15); /* Tintado con verde limón */
    --border-glass-focus: rgba(136, 244, 86, 0.4);
    
    --color-primary: #88F456; /* Verde limón oficial */
    --color-primary-hover: #75df44;
    --color-primary-glow: rgba(136, 244, 86, 0.15);
    
    --color-emerald: #88F456; /* Mapeado al verde oficial */
    --color-emerald-glow: rgba(136, 244, 86, 0.15);
    
    --color-rose: #B34545; /* Rojo error oficial */
    --color-rose-glow: rgba(179, 69, 69, 0.15);
    
    --color-gold: #f59e0b; /* Alertas */
    --color-gold-glow: rgba(245, 158, 11, 0.15);
    
    --text-main: #ffffff;
    --text-muted: #879691; /* Gris/deshabilitado oficial */
    --text-inverse: #00271C; /* Verde oscuro para contrastar texto claro */
    
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset y Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Fondo con efectos de resplandor (Glow) --- */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    background: var(--color-primary);
    top: -200px;
    left: -100px;
    animation: floatGlow 20s infinite ease-in-out alternate;
}

.glow-2 {
    background: var(--color-emerald);
    top: 400px;
    right: -200px;
    animation: floatGlow 25s infinite ease-in-out alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.1); }
}

/* --- Tipografías y Títulos --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* --- Barra de Navegación --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 39, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

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

.logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-main);
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(136, 244, 86, 0.25);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(136, 244, 86, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--border-glass);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* --- Hero Section --- */
.hero-section {
    max-width: 900px;
    margin: 8rem auto 4rem auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-primary-glow);
    border: 1px solid rgba(136, 244, 86, 0.3);
    color: #b4f896;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 45%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Layout Grid --- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem 2rem;
    position: relative;
    z-index: 1;
}

.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none; /* Simplificado para móviles */
    }
}

/* --- Tarjeta Glassmorphism --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.card-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.card-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.card-icon-container svg {
    width: 24px;
    height: 24px;
}

.bg-indigo-glow {
    background: linear-gradient(135deg, #88F456 0%, #425287 100%);
    box-shadow: 0 0 20px rgba(136, 244, 86, 0.25);
}

.bg-emerald-glow {
    background: linear-gradient(135deg, #88F456 0%, #00271C 100%);
    box-shadow: 0 0 20px rgba(136, 244, 86, 0.25);
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-glass);
}

.bg-glass-dark {
    background: rgba(0, 20, 15, 0.4);
}

/* --- Formularios e Inputs --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="number"], select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-smooth);
    width: 100%;
    outline: none;
}

input[type="number"]:focus, select:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-text {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input-with-icon input {
    padding-left: 2rem;
}

.input-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Selector de Duración --- */
.duration-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.duration-option {
    cursor: pointer;
}

.duration-option input {
    display: none;
}

.duration-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
    text-align: center;
}

.duration-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.duration-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.duration-option input:checked + .duration-card {
    border-color: var(--color-primary);
    background: var(--color-primary-glow);
    box-shadow: 0 0 15px rgba(136, 244, 86, 0.15);
    transform: scale(1.03);
}

/* --- Resultados Simulador --- */
.results-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-main {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.results-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.results-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px var(--color-primary-glow);
    animation: pulseValue 2s infinite ease-in-out;
}

.results-exemption-msg {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-emerald);
    background: var(--color-emerald-glow);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.results-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-item span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

.hidden {
    display: none !important;
}

/* --- Verificador de Placa --- */
.plate-digits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.digit-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.75rem 0;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.digit-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.digit-btn.active {
    background: var(--color-emerald-glow);
    border-color: var(--color-emerald);
    color: var(--color-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

.form-control-date {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-control-date:focus {
    border-color: var(--color-emerald);
    box-shadow: 0 0 0 4px var(--color-emerald-glow);
}

/* Caja de Resultados del Verificador */
.checker-result-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 0.5rem;
    transition: var(--transition-smooth);
}

.checker-result-box.success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.03);
}

.checker-result-box.danger {
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.03);
}

.checker-result-box.neutral {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.01);
}

.checker-icon-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checker-icon-status.success {
    background: var(--color-emerald-glow);
    color: var(--color-emerald);
}

.checker-icon-status.danger {
    background: var(--color-rose-glow);
    color: var(--color-rose);
}

.checker-icon-status.neutral {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.checker-icon-status svg {
    width: 20px;
    height: 20px;
}

.status-heading {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.checker-result-box.success .status-heading {
    color: var(--color-emerald);
}

.checker-result-box.danger .status-heading {
    color: var(--color-rose);
}

.checker-result-box.neutral .status-heading {
    color: var(--text-main);
}

.status-explanation {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Info Bloques en Footers */
.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-block-title {
    font-size: 0.95rem;
    color: var(--text-main);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1rem;
}

.info-list li::before {
    content: "•";
    color: var(--color-emerald);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Sección de Pasos de Registro --- */
.section-container {
    margin-bottom: 6rem;
    position: relative;
    z-index: 1;
}

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

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-4px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.12);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.step-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
}

.step-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    min-height: 4.5rem;
}

/* Checklist interactivo por paso */
.step-check-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.check-item span {
    transition: var(--transition-smooth);
}

.step-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.check-item input:checked + span {
    color: var(--text-main);
    text-decoration: line-through;
    opacity: 0.7;
}

/* Widget de Progreso del Trámite */
.progress-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.75rem 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

#progress-percentage {
    color: var(--color-primary);
}

.progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-emerald) 100%);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

#progress-status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .progress-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .progress-footer .btn {
        width: 100%;
    }
}

/* --- Alerta de Seguridad --- */
.security-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(0, 39, 28, 0.6) 100%);
    position: relative;
    border-color: rgba(245, 158, 11, 0.2) !important;
}

.border-gold {
    border-color: rgba(245, 158, 11, 0.25);
}

.security-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.grid-security {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .grid-security {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .security-icon-container {
        margin: 0 auto;
    }
}

.security-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--color-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-icon-container svg {
    width: 32px;
    height: 32px;
}

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

.security-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.security-description {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.security-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.25rem;
}

.security-list li::before {
    content: "⚠";
    color: var(--color-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.security-list a {
    color: #fcd34d;
    text-decoration: underline;
    font-weight: 600;
}

.security-list a:hover {
    color: white;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(0, 26, 18, 0.95);
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-brand .logo-icon {
    width: 24px;
    height: 24px;
}

.footer-info {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* --- Modal de Privacidad --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 5, 8, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    background: #07241c;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-intro {
    font-size: 0.95rem;
    color: var(--text-main);
}

.modal-subtitle {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

.modal-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-body a {
    color: var(--color-primary);
    text-decoration: underline;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 20, 15, 0.4);
}

/* Animación de la tarifa */
@keyframes pulseValue {
    0%, 100% { text-shadow: 0 0 20px rgba(136, 244, 86, 0.15); }
    50% { text-shadow: 0 0 35px rgba(136, 244, 86, 0.35); }
}

/* Banner de Descargo de Responsabilidad (Google Ads) */
.top-disclaimer-banner {
    background: var(--color-gold);
    color: var(--text-inverse);
    width: 100%;
    text-align: center;
    padding: 0.4rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    line-height: 1.4;
}

.top-disclaimer-banner a {
    color: var(--text-inverse);
    text-decoration: underline;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.top-disclaimer-banner a:hover {
    opacity: 0.8;
}

.legal-page {
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* Caja de descargo de responsabilidad en el simulador */
.disclaimer-calc {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin-top: 1rem;
}

.disclaimer-calc strong {
    color: var(--color-gold);
}

/* Estilos para el Manual de Uso Ciudadano */
.manual-card {
    padding: 3rem;
    margin-top: 4rem;
}

.manual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .manual-card {
        padding: 2rem 1.5rem !important;
    }
    .manual-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

