:root {
    --blanco: #FFFFFF;
    --rojo: #ED1C24;
    --verde: #39B34A;
    --amarillo: #858513;
    --gris: #606060;
    --gris-claro: #F1F1F1;
    --gris-oscuro: #333333;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gris-claro);
    color: var(--gris-oscuro);
    line-height: 1.6;
}

.hero {
    background: linear-gradient(135deg, var(--rojo) 0%, #940c11b4 100%);
    color: var(--blanco);
    padding: 80px 0 60px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.1;
    z-index: 1;
}

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

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

.hero-help {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-item {
    text-align: center;
    padding: 20px;
}

.help-item i {
    font-size: 2.5rem;
    color: var(--amarillo);
    margin-bottom: 15px;
}

.help-item h5 {
    color: var(--blanco);
    margin-bottom: 10px;
    font-weight: 600;
}

.help-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--amarillo);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.search-container {
    background: var(--blanco);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: -50px auto 40px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-input {
    border-radius: 50px;
    padding: 15px 25px;
    border: 2px solid var(--gris-claro);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-input:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 0.3rem rgba(57, 179, 74, 0.25);
}

.search-results {
    margin-top: 20px;
    display: none;
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gris-claro);
    max-height: 500px;
    overflow-y: auto;
}

.search-result-item {
    padding: 20px;
    border-bottom: 1px solid var(--gris-claro);
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: rgba(57, 179, 74, 0.05);
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-highlight {
    background-color: var(--amarillo);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.result-category {
    font-size: 0.8rem;
    color: var(--verde);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* NUEVOS ESTILOS PARA LINKS DE BÚSQUEDA */
.search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gris-claro);
}

.search-link {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(57, 179, 74, 0.1);
    color: var(--verde);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(57, 179, 74, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-link:hover {
    background: rgba(57, 179, 74, 0.2);
    color: var(--verde);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(57, 179, 74, 0.2);
}

.popular-suggestions {
    border-top: 1px solid var(--gris-claro);
    padding-top: 20px;
    margin-top: 20px;
}

.suggestion-badge {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid var(--gris-claro);
}

.suggestion-badge:hover {
    background: var(--verde) !important;
    color: white !important;
    transform: translateY(-2px);
    border-color: var(--verde);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--verde), #2e9a3d);
    color: var(--blanco);
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: none;
}

.card-body {
    padding: 25px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--verde), #2e9a3d);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2e9a3d, #248031);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 179, 74, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--amarillo), #e6e600);
    border: none;
    color: var(--gris-oscuro);
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e6e600, #cccc00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 0, 0.3);
}

.service-link {
    display: block;
    padding: 12px 18px;
    margin: 8px 0;
    border-radius: 8px;
    background: rgba(57, 179, 74, 0.08);
    color: var(--gris-oscuro);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--verde);
}

.service-link:hover {
    background: rgba(57, 179, 74, 0.15);
    transform: translateX(5px);
    color: var(--gris-oscuro);
    text-decoration: none;
}

.highlight-card {
    border-top: 4px solid var(--rojo);
    position: relative;
}

.highlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--rojo), var(--amarillo));
}

.hidden-links {
    display: none;
}

.show-links {
    display: block;
    animation: fadeIn 0.5s ease;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--verde);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: var(--gris-oscuro);
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--verde), var(--rojo));
    border-radius: 2px;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--verde), #2e9a3d);
    color: var(--blanco);
    border-bottom: none;
    padding: 20px 25px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    padding: 15px 25px;
    border-radius: 10px;
    background: var(--verde);
    color: var(--blanco);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    transition: transform 0.5s ease;
}

.notification.show {
    transform: translateX(0);
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rojo), #c4171d);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
    animation: pulse 2s infinite;
    border: none;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(237, 28, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0);
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-steps {
    background: var(--blanco);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--verde), #2e9a3d);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-content h4 {
    color: var(--gris-oscuro);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gris);
    font-size: 0.9rem;
}

.help-section {
    background: linear-gradient(135deg, rgba(57, 179, 74, 0.05), rgba(237, 28, 36, 0.05));
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(57, 179, 74, 0.1);
}

.help-item {
    background: var(--blanco);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--verde);
}

.help-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.help-item h5 {
    color: var(--gris-oscuro);
    margin-bottom: 10px;
}

.help-item p {
    color: var(--gris);
    margin-bottom: 0;
}

/* MEJORAS RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .search-container {
        margin: -30px auto 30px;
        padding: 20px;
    }
    
    .hero-stats .row > div {
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .process-steps {
        padding: 25px;
    }
    
    .step {
        margin-bottom: 20px;
    }
    
    .search-links {
        flex-direction: column;
        gap: 6px;
    }
    
    .search-link {
        text-align: center;
        padding: 8px 12px;
    }
    
    .popular-suggestions .d-flex {
        justify-content: center;
    }
    
    .suggestion-badge {
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .hero-content .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .search-input {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .search-result-item {
        padding: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ESTILOS PARA MEJORAR LA LEGIBILIDAD */
.search-result-item h6 {
    color: var(--gris-oscuro);
    margin-bottom: 8px;
    font-weight: 600;
}

.search-result-item .text-muted {
    color: var(--gris) !important;
    line-height: 1.5;
}

/* EFECTOS DE FOCO MEJORADOS */
.search-link:focus {
    outline: 2px solid var(--verde);
    outline-offset: 2px;
}

.suggestion-badge:focus {
    outline: 2px solid var(--verde);
    outline-offset: 2px;
}


/* Estilos para los modales de ayuda */
.help-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--blanco);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.help-item:hover .help-badge {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.bg-purple {
    background: linear-gradient(135deg, #6f42c1, #5a2d9c) !important;
}

/* Timeline del proceso */
.process-timeline {
    position: relative;
    padding-left: 30px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--verde);
    opacity: 0.3;
}

.process-step {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.step-number {
    position: absolute;
    left: -30px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--gris-claro);
    border: 2px solid var(--gris);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
}

.process-step.completed .step-number {
    background: var(--verde);
    border-color: var(--verde);
    color: white;
}

.process-step.active .step-number {
    background: var(--rojo);
    border-color: var(--rojo);
    color: white;
    animation: pulse 2s infinite;
}

.step-content {
    background: var(--gris-claro);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--gris);
}

.process-step.completed .step-content {
    border-left-color: var(--verde);
}

.process-step.active .step-content {
    border-left-color: var(--rojo);
    background: rgba(237, 28, 36, 0.05);
}

.step-time {
    font-size: 0.8rem;
    color: var(--gris);
    margin-top: 10px;
    font-style: italic;
}

/* Items de ayuda rápida */
.help-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--gris-claro);
    border-radius: 10px;
    margin-bottom: 15px;
}

.help-quick-item i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.help-quick-item h6 {
    margin-bottom: 5px;
    color: var(--gris-oscuro);
}

.help-quick-item p {
    margin-bottom: 3px;
    font-size: 0.9rem;
    color: var(--gris);
}

/* Categorías de requisitos */
.requirement-category {
    background: var(--gris-claro);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--amarillo);
}

.requirement-category h6 {
    color: var(--gris-oscuro);
    margin-bottom: 15px;
}

.requirement-category ul {
    margin-bottom: 0;
}

.requirement-category li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Tabla de costos */
.table th {
    background: var(--gris-claro);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .process-timeline {
        padding-left: 25px;
    }
    
    .step-number {
        left: -25px;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .step-content {
        padding: 15px;
    }
    
    .help-quick-item {
        flex-direction: column;
        text-align: center;
    }
}
.service-card {
    background: var(--blanco);
    border: 1px solid var(--gris-claro);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--rojo);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--rojo), var(--gris-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--gris-oscuro), var(--rojo));
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--blanco);
}

.service-card h4 {
    color: var(--gris-oscuro);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--gris);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}