:root {
    --primary-color: #007bff;
    --text-color: #212529;
    --navbar-background: #f8f9fa;
    --navbar-color: #1f2d3d;
    --border-color: #dee2e6;
    --link-color: var(--primary-color);
    --link-hover-color: #0056b3;
    --font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
::after,
::before {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    text-align: left;
    min-height: 100%;
    background-color: #f5f5f5;
}

.wizard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.container-inner {
    max-width: 600px;
    width: 100%;
}

.wizard-header,
.wizard {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.wizard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fixed-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 218px;
    background-color: #fff;
    z-index: 1000;
}

.fixed-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wizard {
    margin-top: -10px;
    /* Ajuste del margen superior para compensar la sombra superior */
}

.step {
    display: none;
}

.step.active {
    display: block;
}

h2 {
    color: #333;
}

p {
    color: #555;
}

/*
input {
    font-size: 1rem;
}
*/
.next-button,
.prev-button,
.submit-button {
    padding: 10px 20px;
    /*font-size: 16px;*/
    cursor: pointer;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

.next-button {
    background-color: #337AB7;
    color: #fff;
}

.prev-button,
.submit-button {
    background-color: #888;
    color: #fff;
}

.prev-button:hover,
.submit-button:hover {
    background-color: #555;
}

/**/
/*
    display: block;
    margin 0;
    margin-bottom: 8px;
    font-weight: 700;
}
*/
label {
    margin-left: 0.5rem;
    padding-bottom: 12px;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    /*font-size: 14px;*/
}

button[data-action="location"] {
    background-color: #337AB7;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#map {
    display: none;
    height: 200px;
    /* Ajusta la altura según sea necesario */
    margin-bottom: 16px;
}

input[type="file"] {
    margin-bottom: 16px;
}

/* Estilo para la información del archivo PDF */
#archivopdf-info {
    margin-top: 8px;
    color: #555;
}

.redesSociales {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    /* Ajusta el margen según sea necesario */
}

.redesSociales label {
    margin-right: 8px;
    /* Espacio entre el checkbox y el label */
}

.redesSociales input[type="checkbox"] {
    flex-shrink: 0;
    /* Evita que el checkbox se contraiga */
    width: 20px;
    /* Ancho fijo del checkbox */
    height: 20px;
    /* Altura fija del checkbox */
}

.redesSociales input[type="text"] {
    flex-grow: 1;
    /* Hace que el campo de texto ocupe el espacio restante */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    /*font-size: 14px;*/
}

/**/
/**/
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.modal-header {
    background-color: #337ab7;
    color: #fff;
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
}

.close {
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    border: none;
    background: none;
}

.modal-content {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #ddd;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.modal-btn-close {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #337ab7;
    color: #fff;
    transition: background-color 0.3s ease;
}

.modal-btn-close:hover {
    background-color: #286090;
}

.error .modal-content {
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
}

.warning .modal-content {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border-color: #faf2cc;
}



/**/
/* Responsividad para tablet */
@media screen and (min-width: 600px) {
    .container-inner {
        max-width: 80%;
    }
}

/* Responsividad para dispositivos más grandes como PC */
@media screen and (min-width: 900px) {
    .container-inner {
        max-width: 60%;
    }

}

/**/
.tabla-resumen {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla-resumen th,
.tabla-resumen td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.tabla-resumen th {
    background-color: #f2f2f2;
    color: black;
}

.texto-justificado {
    text-align: justify;
    font-style: italic;
    color: #555;
    font-weight: bold;
    /* Esto hará que el texto sea en negrita */
}

/**/
/* Estilo para el contenedor de cada grupo de checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    /* Espacio entre cada grupo de checkbox */
}

.checkbox {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    border: 2px solid #888;
    transition: all 0.3s ease-in-out;
    margin-left: 5px;
}

.checkbox:checked {
    background-color: var(--primary-color);
    color: #fff;

    background-position: 0 0;
}

.checkbox-group label {
    margin-right: 5px;
}

/*************
**************/
/* ===== TABS STYLES ===== */
.tabs-container {
    width: 100%;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background-color: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #e9ecef;
}

.tab-button.active {
    background-color: #fff;
    border-bottom: 3px solid #337AB7;
    color: #337AB7;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UPAs LIST STYLES ===== */
.upas-list {
    margin-top: 15px;
}

.upa-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.upa-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.upa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.upa-codigo {
    font-weight: bold;
    color: #337AB7;
    font-size: 16px;
}

.upa-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.upa-field {
    display: flex;
    flex-direction: column;
}

.upa-field-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 4px;
}

.upa-field-value {
    font-size: 14px;
    color: #333;
}

.upa-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-ver-mapa {
    background-color: #337AB7;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-ver-mapa:hover {
    background-color: #286090;
}

.btn-ver-mapa i {
    font-size: 14px;
}

.info-text {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.no-upas-message {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

/* ===== UPA SELECTION STYLES ===== */
.upa-selectable {
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.upa-selectable:hover {
    border-color: #337AB7;
    background-color: #f0f7ff;
}

.upa-card.selected {
    border-color: #337AB7;
    background-color: #e8f0fe;
    box-shadow: 0 0 0 2px #337AB7;
}

.upa-select-indicator {
    font-size: 20px;
    color: #ccc;
}

.upa-card.selected .upa-select-indicator {
    color: #337AB7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 600px) {
    .upa-card-body {
        grid-template-columns: 1fr;
    }

}
