.home #header:not(.sticky) {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.1);
    color: #000000 !important;
}
.home #menu .menu-inner {
    color: #000000 !important;
}
.home #main-nav > ul > li > a,
.home #menu-right a {
    color: #000000 !important;
}
.home #main-nav > ul > li > a:before,
.home #menu-right > a:before {
    background: #000000;
}

/* ===== Hero con video en portada ===== */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
}
.hero-video .video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 2;
}
.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    z-index: -1;
}
.hero-overlay .hero-lead {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
@media (min-width: 768px) { .hero-overlay .hero-lead { font-size: 1.4rem; } }
@media (min-width: 1200px) { .hero-overlay .hero-lead { font-size: 1.6rem; } }

.custom-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}
.custom-image-item {
    flex: 0 0 calc(20% - 20px);
    text-align: center;
}
.custom-image-item img {
    width: 50%;
    height: auto;
}
.custom-text {
    margin-top: 10px;
    font-size: 20px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*background-color:#E8E8E8;*/
}

.container {
    padding: 20px;
    margin-bottom:10px;
}

h1 {
    font-size: 3em;
    color: #102070;
    font-weight: bold;
    text-align: left;
}

.subtitle {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 40px;
}

.row {
    display: flex;
    justify-content: space-around;
}

.column {
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

.image-container {
    position: relative;
    width: 100%;
}

.image-container img {
    width: 100%;
    border-radius: 10px;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: .5s ease;
}

.image-container:hover .overlay {
    height: 100%;
    cursor: pointer;
}

.overlay h2 {
    color: white;
    font-size: 35px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.texto1 p,
.column p,
p {
    margin: 10px 0;
    text-align: justify;
    font-size: 20px;
}

h2 {
    font-size: 5em;
}
.news-section {
    padding: 40px;
    background-color: #f4f4f4;
}

.news-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    width: 300px;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: auto;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 0.9em;
    color: #102070;
}

.news-subtitle {
    font-size: 1.2em;
    color: #333;
    font-weight: bold;
    margin: 10px 0;
}

.news-text {
    font-size: 0.9em;
    color: #666;
}

.full-width {
    width: 100%;
}
.text-col {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 10px;
}
.text-col + .text-col {
    border-left: 2px solid #999999;
}
.center-button {
    text-align: center;
}
.row-spacing {
    margin-bottom: 20px;
}

#content {
    text-align: center;
}
.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom:10px;
}
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.button-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}
.btn-custom {
    background-color: #232323;
    color: white;
    transition: color 0.3s, background-color 0.3s;
}
.btn-custom:hover {
    background-color: #333;
    color: white;
}

/* Suite of Solutions */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 576px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .solutions-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .solutions-grid { grid-template-columns: repeat(5, 1fr); }
}
.solution-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.solution-title {
    margin: 14px 16px 0;
    color: #102070;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: left;
}
.solution-media {
    margin: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
}
.solution-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.solution-media::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%; /* overlay más sutil */
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}
.solution-media .solution-title {
    position: absolute;
    /*left: 14px;*/
    right: auto;
    bottom: 1px;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: left;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.45);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 2;
}
.solution-body {
    padding: 14px 16px 18px;
    color: #333;
    text-align: justify;
    font-size: 0.95rem;
    line-height: 1.6;
}

.split-text-panel {
    background: #0A0B5A;
    color: #ffffff;
    /*border-radius: 8px;*/
    padding: 24px;
    height: 100%;
    min-height: 360px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: left;
}
.split-text-panel h2, .split-text-panel h1 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 12px;
}
.split-text-panel p {
    color: #eef4f5;
    margin-bottom: 0;
}
.accent-line {
    width: 64px;
    height: 3px;
    background: #cfe5e8;
    margin-bottom: 16px;
    border-radius: 2px;
}
.split-image img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
@media (max-width: 575.98px) {
    .split-image img { min-height: 220px; }
}

.split-row { position: relative; }
@media (min-width: 768px) {
    .split-text-panel {
        position: relative;
        z-index: 2;
        margin-right: -56px;
        margin-top: -32px;
        box-shadow: 0 16px 36px rgba(0,0,0,0.12);
    }
    .split-image { position: relative; z-index: 1; }
    .split-image.h-100 { height: auto !important; }
}
@media (min-width: 992px) {
    .split-text-panel { 
        margin-right: -88px;
        margin-top: -44px;
        min-height: 440px;
    }
}

@media (min-width: 1200px) {
    .sg {
        grid-template-columns: repeat(4, 1fr);!important;
    }
}




