:root {
    --primary-color: #0E225D;
    --secondary-color: #38BAA6;
    --accent-color: #F8F8F8;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.btn {
    border-radius: 15px;
}

section.py-5 {
    flex: 1;
    width: 100%;
}

/* El footer se mantiene en la parte inferior */
footer.footer {
    margin-top: auto;
}

.header-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.service-card {
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    position: relative;
    background: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.service-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-description {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
}

.emergency-btn {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px black;
}

.emergency-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
}

.logo-container {
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.divider-custom {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 50%, transparent 100%);
    margin: 20px 0;
}

.welcome-text {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    background-color: #0E225D !important;
    color: white !important;
}

.floating-top-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    /* por encima de casi todo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #ffffff;
    color: #0E225D;
    font-weight: 600;
    transition: all 0.3s ease;
}

.floating-top-btn:hover {
    background-color: #0E225D;
    color: white;
}






.floating-btn-with-text {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.floating-btn-label {
    background-color: white;
    color: #0E225D;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}


@media (max-width: 576px) {
    .no-margin-mobile {
        margin: 0 !important;
        font-size: 22px;

    }

    .floating-btn-label {
        display: none;
    }


}









.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* max-width: 280px; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    cursor: pointer;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}




.service-item:hover,
.service-item.active {
    .service-item:hover {
        background-color: #f5f8ff;
        background-color: #f5f8ff;
        box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
        box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
    }
}

.service-item.active {
    background-color: #e6f0ff;
}




.icon-circle {
    background-color: #0E225D;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.service-title {
    font-size: 1rem;
    color: #333;
    user-select: none;
}

/* Nuevos estilos para alinear lista y buscador */
.align-search-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#buscarCategoria {
    height: 48px;
    padding: 0px 15px;
}

.service-list-container {
    height: calc(100% - 68px);
    /* Ajusta según la altura de tu buscador */
    overflow-y: auto;
    /* Permite scroll si el contenido es muy largo */
}

.grupo-tramites {
    transition: all 0.3s ease;
}



.custom-padding {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    .custom-padding {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

@media (min-width: 992px) {
    .custom-padding {
        padding-left: 10rem;
        padding-right: 10rem;
    }
}



/* Agregar al estilo existente */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



h2 {
    font-size: 3.56rem;
    line-height: 110%;
    margin: 2.3733333333rem 0 1.424rem 0;
}



.form-container {

    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.required-field::after {
    content: " *";
    color: red;
}

.map-container {
    height: 300px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.icon-custom {
    color: #38BAA6 !important;
    /* Cambia este valor por el color que desees */
}





.steps {
    position: relative;
    margin-bottom: 2rem;
}

.step {
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    background-color: #A8B3B0;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: #555;
}

.step.active .step-circle,
.step.completed .step-circle {
    background-color: #206F68;
}

.step.completed .step-circle {
    background-color: #43A49B;
}

.step-line {
    content: "";
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #E0E0E0;
    z-index: 0;
}

.radio-select {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.radio-select:hover {
    box-shadow: 0 0 0 4px rgba(32, 111, 104, 0.1);
}

.radio-select input[type="radio"]:checked~.service-icon,
.radio-select input[type="radio"]:checked~.service-title,
.radio-select input[type="radio"]:checked~.service-description {
    color: #206F68;
    font-weight: bold;
}

.radio-select:has(input[type="radio"]:checked) {
    border-color: #206F68;
    box-shadow: 0 0 0 4px rgba(32, 111, 104, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: #888;
}

.form-check-input {
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #206F68;
}




/* Oculta los radio buttons pero mantiene la funcionalidad */
.radio-select input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Estilo para los labels de los radio buttons */
.radio-select {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.radio-select:hover {
    box-shadow: 0 0 0 4px rgba(32, 111, 104, 0.1);
}

.radio-select input[type="radio"]:checked~.service-icon,
.radio-select input[type="radio"]:checked~.service-title,
.radio-select input[type="radio"]:checked~.service-description {
    color: #206F68;
    font-weight: bold;
}

.radio-select:has(input[type="radio"]:checked) {
    border-color: #206F68;
    box-shadow: 0 0 0 4px rgba(32, 111, 104, 0.15);
    background-color: #f5f5f5;
}

.service-icon {
    font-size: 3rem;
    color: #888;
}

.btn-turquesa {
    background-color: #FFFFFF;
    color: #206F68;
    border: 1px solid #206F68;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-transform: capitalize;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.btn-turquesa:hover {
    background-color: #E6F7F6;
    color: #154D47;
    border-color: #154D47;
}

/* Focus (accesibilidad, teclado) */
.btn-turquesa:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(32, 111, 104, 0.3);
    border-color: #154D47;
}

/* Active (click sostenido) */
.btn-turquesa:active {
    background-color: #D2EFEC;
    color: #103B39;
    border-color: #103B39;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Disabled */
.btn-turquesa:disabled,
.btn-turquesa.disabled {
    background-color: #F5F5F5;
    color: #A8B3B0;
    border-color: #DADADA;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    pointer-events: none;
}


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

/* En pantallas pequeñas (xs < 576px), reducimos el tamaño */
@media (max-width: 575.98px) {
    .btn-responsive {
        padding: 0.10rem 0.75rem;
        font-size: 0.85rem;
    }
}




/* Estilos para el diseño mejorado */
.service-summary-card {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.service-summary-card:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.service-icon-container {
    transition: all 0.3s ease;
}

.quantity-selector input {
    max-width: 50px;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.file-upload-container {
    background-color: #f8fafc;
    border: 2px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.file-upload-container:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.total-container {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pricing-section {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.card .border-primary {
    --bs-border-opacity: 1;
    border-color: #198754 !important;
}





/* Reemplaza o modifica los estilos existentes para #resultadoTramites */

/* Contenedor principal que usa todo el espacio disponible */
main.py-5 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fila que contiene ambos lados (categorías y trámites) */
.row.align-items-stretch {
    flex: 1;
    min-height: 0;
    /* Importante para que el scroll funcione correctamente */
}

/* Columna de resultados de trámites */
.col-md-8 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Contenedor de resultados de trámites con scroll */
#resultadoTramites {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    max-height: calc(100vh - 300px);
    /* Altura máxima pero flexible */
}

/* Estilo personalizado para el scroll (opcional pero recomendado) */
#resultadoTramites::-webkit-scrollbar {
    width: 8px;
}

#resultadoTramites::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#resultadoTramites::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

#resultadoTramites::-webkit-scrollbar-thumb:hover {
    background: #2a9d8a;
}

/* Asegurar que los grupos de trámites tengan espacio entre ellos */
.grupo-tramites {
    margin-bottom: 30px;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    #resultadoTramites {
        max-height: none;
        height: auto;
    }

    .row {
        flex-direction: column;
    }
}


@media (max-width: 768px) {

    header,
    main {
        padding: 5px;
    }
}

.service-title {
    display: block;
    margin-top: 8px;
    /* Espacio entre icono y texto */
}