html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

/*body {
  margin-bottom: 60px;
}*/

.HomeMessage{
    color: navy;
    font-size: 24px;
    font-weight: bold;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /*background-color: #f4f4f4;*/
    background-color: #0A1949;
    /*-------*/
    min-height: 100vh;
    /*-------*/
}

header {
    background-color: #0A1949;
    color: white;
    padding: 5px;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #0A1949;
}

nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

.container {
    display: flex;
    justify-content: space-around;
    padding: 5px;
}

.main-content {
    flex: 3;
    overflow-y: auto;
    background-color: white;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar {
    flex: 1;
    background-color: #e0e0e0;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    /*position: fixed;*/
    width: 100%;
    bottom: 0;
}

.text-white-link {
    color: white !important;
    text-decoration: none; 
}

.text-white-link:hover {
    color: white !important; 
}

.zoom-img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

    .zoom-img:hover {
        transform: scale(1.5);
        z-index: 10;
    }

.box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 2048px;
    margin: 24px auto;
}

.another-box {
    border: 8px solid lightgray;
    padding: 15px;
    margin: 20px;
    background-color: #0A1949;
    color: white;
    font-family: sans-serif;
    flex: 0 0 calc(33.3333% - 20px); /* 3 boxes per row, accounting for margin */
    margin: 10px;
    box-sizing: border-box;
    border-radius: 20px;

    /* fade-in (desvanecido) animation */
    opacity: 0;
    transform: translateY(200px);
    animation: fadeIn 1.0s ease-out forwards;
    animation-delay: calc(var(--order) * 480ms);
}

.another-box-white {
    border: 8px solid lightgray;
    padding: 15px;
    margin: 20px;
    background-color: white;
    color: #0A1949;
    font-family: sans-serif;
    flex: 0 0 calc(33.3333% - 20px); /* 3 boxes per row, accounting for margin */
    margin: 10px;
    box-sizing: border-box;
    border-radius: 20px;
    /* fade-in (desvanecido) animation */
    opacity: 0;
    transform: translateY(200px);
    animation: fadeIn 1.0s ease-out forwards;
    animation-delay: calc(var(--order) * 480ms);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whoweservebox {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
    max-width: 1024px;
    margin: 24px auto;
}

.box-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 2048px;
    margin: 24px auto;
}

.box-detailDesc {
    border: 8px solid lightgray;
    padding: 15px;
    margin: 20px;
    background-color: #0A1949;
    color: white;
    font-family: sans-serif;
    flex: 0 0 calc(50% - 20px); /* 2 boxes per row, accounting for margin */
    margin: 10px;
    box-sizing: border-box;
    border-radius: 20px;
    /* fade-in (desvanecido) animation */
    opacity: 0;
    transform: translateY(200px);
    animation: fadeIn 1.0s ease-out forwards;
    animation-delay: calc(var(--order) * 480ms);
}

.box-detailPic {
    /*border: 8px solid lightgray;*/
    padding: 15px;
    margin: 20px;
    /*background-color: #0A1949;*/
    color: white;
    font-family: sans-serif;
    /*flex: 0 0 calc(50% - 20px);*/ /* 2 boxes per row, accounting for margin */
    margin: 10px;
    box-sizing: border-box;
    /*border-radius: 20px;*/
    /* fade-in (desvanecido) animation */
    opacity: 0;
    transform: translateY(200px);
    animation: fadeIn 1.0s ease-out forwards;
    animation-delay: calc(var(--order) * 480ms);
}
.a-link {
/*    color: white;
    padding: 14px 20px;*/
    text-decoration: none;
    text-align: center;
}
.subservices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* tantas columnas como quepan */
    gap: 20px;
    text-align: center;
    border: 8px solid lightgray;
    padding: 15px;
    margin: 20px auto;
    background-color: #0A1949;
    color: white;
    font-family: sans-serif;
    width: 90%;
}

.subservice-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subservice-item img {
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
}

.subservice-text {
    font-weight: 500;
}