@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #f1ab05;
    --secondary-color: #003cc2;

}
* {
    --heading-font: "Kanit", sans-serif;
}
h1, h2, h4, h3, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, footer.footer-light h5 {
    text-transform: none;
}
h4 {
    font-size: 20px;
    line-height: 1.2em;
}
.scroll-down {
	margin-top: 0 !important;
}
.dark-scheme section {
	background: #010D25;
	background: linear-gradient(
    230deg,
    rgba(3, 121, 206, 0.55) 0%,
    rgba(3, 121, 206, 0.25) 12%,
    rgba(3, 121, 206, 0.08) 22%,
    rgba(3, 121, 206, 0.02) 32%,
    rgba(255, 255, 255, 0) 45%
  ),
  linear-gradient(
    225deg,
    #020a34 20%,
    #041a5c 45%,
    #072a73 65%,
    #0b3d91 80%,
    #0379ce 100%
  );
}
.light-scheme section {
	background: #eee;
}
.resaltado {
    position: relative;
    display: inline-block;
    border: 0;
    width: auto;
    height: auto;
    color: #ffb300;
}
/* =========================================
   MENÚ MÓVIL
   ========================================= */
@media only screen and (min-width: 993px) {
    .header-col-mid {
        display: flex !important;
    }
    #btn-hamburguesa,
    #menu-movil,
    #menu-movil-overlay {
        display: none !important;
    }
    #btn-extra {
        display: inline-block !important;
    }
}

@media only screen and (max-width: 992px) {
    .header-col-mid {
        display: none !important;
    }
    #btn-extra {
        display: none !important;
    }
    .menu_side_area {
        display: flex !important;
        align-items: center !important;
        gap: 15px;
    }
	
    #btn-hamburguesa {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 26px;
        cursor: pointer;
        z-index: 100001;
        background: transparent;
        border: none;
        padding: 0;
    }
    #btn-hamburguesa span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff !important;
        border-radius: 2px;
        transition: all 0.3s ease;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    #btn-hamburguesa.activo span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }
    #btn-hamburguesa.activo span:nth-child(2) {
        opacity: 0;
    }
    #btn-hamburguesa.activo span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }
    
    #menu-movil-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 99999;
        display: none;
        backdrop-filter: blur(3px);
    }    
    #menu-movil-overlay.activo {
        display: block;
    }
	#menu-movil {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        z-index: 100000;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 40px 30px;
        overflow-y: auto;
		background: rgba(0, 60, 194, 0.2);
		-webkit-backdrop-filter: blur(10px);
		-o-backdrop-filter: blur(10px);
		-moz-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
    }    
    #menu-movil.activo {
        right: 0;
    }
	#menu-movil .w-150px {
        width: 140px;
        display: block;
        margin-bottom: 30px;
        filter: brightness(1.1);
    }
	#menu-movil .menu-section-title {
        color: #f1ab05;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 15px;
        margin-top: 25px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        border-bottom: 1px solid rgba(241, 171, 5, 0.3);
        padding-bottom: 5px;
        display: inline-block;
    }
    
    #menu-movil .menu-section-title:first-of-type {
        margin-top: 0;
    }
    #menu-movil h5 {
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 15px;
        margin-top: 25px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }    
    #menu-movil h5:first-of-type {
        margin-top: 0;
	}
    #menu-movil .menu-movil-list {
        list-style: none !important;
        padding: 0;
        margin: 0;
    }    
    #menu-movil .menu-movil-list li {
        margin: 0;
        padding: 0;
    }    
    #menu-movil .menu-movil-list li a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: #e2e8f0;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
        transition: all 0.3s ease;
    }
    #menu-movil .menu-movil-list li a i {
        margin-right: 15px;
        color: #f1ab05;
        width: 20px;
        text-align: center;
        font-size: 16px;
    }
    #menu-movil .menu-movil-list li a .arrow {
        font-size: 20px;
        line-height: 1;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
        color: #f1ab05;
    }
    #menu-movil .menu-movil-list li a:hover,
    #menu-movil .menu-movil-list li a:active {
        color: #ffffff;
        padding-left: 10px;
        border-bottom-color: rgba(241, 171, 5, 0.3);
    }    
    #menu-movil .menu-movil-list li a:hover .arrow,
    #menu-movil .menu-movil-list li a:active .arrow {
        opacity: 1;
        transform: translateX(0);
    }
    #menu-movil .contacto-info {
        color: #94a3b8;
        font-size: 14px;
        line-height: 1.6;
    }
	#menu-movil .contacto-info .direccion-texto {
        font-size: 12.5px;
        line-height: 1.5;
        margin: 8px 0;
        opacity: 0.9;
    }
    #menu-movil .contacto-info a {
        color: #e2e8f0;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    #menu-movil .contacto-info a:hover {
        color: #f1ab05;
    }
    
    #menu-movil .contacto-info i {
        color: #f1ab05;
        width: 22px;
        text-align: center;
        margin-right: 8px;
        font-size: 16px;
    }
    #menu-movil .spacer-30-line {
        height: 1px;
        background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        margin: 25px 0;
    }
    #menu-movil .social-icons {
        margin-top: 15px;
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }    
    #menu-movil .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: #e2e8f0;
        font-size: 18px;
        transition: all 0.3s ease;
        text-decoration: none;
    }    
    #menu-movil .social-icons a:hover {
        background: #f1ab05;
        border-color: #f1ab05;
        color: #0b1221;
        transform: translateY(-3px);
    }
	.btn-cerrar-menu {
        position: absolute;
        top: 25px;
        right: 25px;
        color: #94a3b8;
        font-size: 32px;
        font-weight: 300;
        cursor: pointer;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        line-height: 38px;
        text-align: center;
        padding: 0;
        z-index: 10;
        transition: all 0.3s ease;
    }
    
    .btn-cerrar-menu:hover {
        background: #f1ab05;
        color: #0b1221;
        border-color: #f1ab05;
    }
}

.texto-slide {
    color: #fff;
    width: 600px;
    display: block;
}

.partners {
    margin-top: -40px;
}

.partners img {
    height: 50px;
}
.sw-caption.slider2 {
    padding-top: 100px;
}
.dark-scheme footer a:hover {
    color: var(--primary-color);
}

/* Escudos */
:root {
    --hex-grad-normal-1: #e7a405;
    --hex-grad-normal-2: #e9a400;
    --hex-grad-normal-3: #ffcd57;
	--hex-grad-active-1: #e7a405;
	--hex-grad-active-2: #e9a400;
	--hex-grad-active-3: #ffcd57;
	--hex-fill-bg: #04306a;
}
.container-hex {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.hex-row {
	display: flex;
	gap: 30px;
	justify-content: center;
	flex-wrap: wrap;
}

.hex-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	text-decoration: none;
}

.hex-wrapper {
	width: 110px;
	height: 110px;
	position: relative;
}

.hex-wrapper svg.hex-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hex-bg path {
	fill: transparent;
	stroke-width: 1.5;
	transition: fill 0.3s ease;
}

.hex-bg path.fill-bg {
	pointer-events: none;
}

.hex-bg path.stroke-border {
	fill: none;
	stroke: url(#hexGradient);
}

.hex-group:hover .hex-bg path.fill-bg {
	fill: var(--hex-fill-bg);
}

.hex-group:hover .hex-bg path.stroke-border {
	stroke: url(#hexGradientActive);
}

.hex-group:hover .hex-icon-img {
	filter: brightness(1.4);
}

.hex-group:hover .dots .dot.active {
	background: #4a9eff;
}

.hex-group.filled .hex-bg path.fill-bg {
	fill: var(--hex-fill-bg);
}

.hex-group.filled .hex-bg path.stroke-border {
	stroke: url(#hexGradientActive);
}

.hex-group.filled .hex-icon-img {
	filter: brightness(1.4);
}

.hex-group.filled .label {
	color: #b8d4f0;
}

.hex-group.filled .dots .dot.active {
	background: #4a9eff;
}

.label {
	color: #fff;
	font-size: 17px;
	text-align: center;
	margin-top: 8px;
	line-height: 1.3;
	width: 120px;
	transition: color 0.3s ease;
}

.hex-icon-img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	transition: filter 0.3s ease;
	pointer-events: none;
}

.dots {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: 4px;
}

.dots .dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #1a3a5c;
	transition: background 0.3s ease;
}

.dots .dot.active {
	background: #2e7dd4;
}
.form-underline {
    padding: 10px 0 10px 15px;
    background: var(--bg-dark-1);
}

/* Loader de envío */
#loading {
    display: none;
    text-align: center;
    margin: 20px 0 10px;
    color: #f1f1f1;
    font-weight: 500;
    font-size: 14px;
}
#loading::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #f1f1f1;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Botón deshabilitado */
#send_message:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Mensajes visibles por encima de todo */
#success_message, #error_message {
    display: none !important;
    margin-top: 15px !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    position: relative !important;
    z-index: 10 !important;
}
#success_message { background: #0f2a1d !important; color: #4ade80 !important; border: 1px solid #166534 !important; }
#error_message { background: #2a0f0f !important; color: #f87171 !important; border: 1px solid #991b1b !important; }
.px-3 img.w-100 {
    width: 180px !important;
}
/* Instagram */
.instagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
}

.insta-post {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
}

.insta-post img,
.insta-post video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.insta-post:hover img,
.insta-post:hover video {
  transform: scale(1.05);
}

/* Overlay con icono al pasar el mouse */
.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-post:hover .insta-overlay {
  opacity: 1;
}

.insta-overlay svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .instagram { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .instagram { grid-template-columns: repeat(1, 1fr); }
}
/* Servicios */
.sectores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.sector-item {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
	padding: 1.5rem 1rem
}

.sector-item:hover {
    background-color: #f9fafb;
}

.sector-texto {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
}
.small-servicio {
    font-size: 0.7em;
    line-height: 1em;
}
.small-servicio2 {
    font-size: 0.6em;
    line-height: 1em;
}
.small-endpoints {
    font-size: 0.8em;
    line-height: 1em;
}
.small-contrata {
    font-size: 0.8em;
    line-height: 1.5em;
}
.service-list h5 {
	font-size: 14px;
	font-weight: 500;
}
/* =========================================
   IDENTIDAD DE COLOR POR SECCIÓN
   ========================================= */
#endpoints { --theme-color: #0d6efd; --theme-bg: rgba(13, 110, 253, 0.03); --bg-claro: rgba(13, 110, 253, 0.06); --gradiente: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); }
#entornos  { --theme-color: #dc3545; --theme-bg: rgba(220, 53, 69, 0.03);  --bg-claro: rgba(220, 53, 69, 0.06);  --gradiente: linear-gradient(135deg, #dc3545 0%, #b02a37 100%); }
#pentesting{ --theme-color: #7c3aed; --theme-bg: rgba(124, 58, 237, 0.03); --bg-claro: rgba(124, 58, 237, 0.06); --gradiente: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
#incidentes{ --theme-color: #0dcaf0; --theme-bg: rgba(13, 202, 240, 0.03); --bg-claro: rgba(13, 202, 240, 0.06); --gradiente: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%); }
#correo    { --theme-color: #f97316; --theme-bg: rgba(13, 202, 240, 0.03); --bg-claro: rgba(249, 115, 22, 0.06); --gradiente: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }


#endpoints, #entornos, #pentesting, #incidentes {
    background-color: var(--theme-bg);
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

#endpoints::before, #entornos::before, #pentesting::before, #incidentes::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--theme-color);
    opacity: 0.9;
}
#endpoints .id-color, #entornos .id-color,
#pentesting .id-color, #incidentes .id-color {
	color: var(--theme-color);
}
#endpoints .fondo, #entornos .fondo,
#pentesting .fondo, #incidentes .fondo {
	background-color: var(--theme-color);
}
#endpoints .borde, #entornos .borde,
#pentesting .borde, #incidentes .borde {
	border-color: var(--theme-color) !important;
}
#endpoints .fondo-light, #entornos .fondo-light,
#pentesting .fondo-light, #incidentes .fondo-light,
#endpoints .sector-item:hover, #entornos .sector-item:hover,
#pentesting .sector-item:hover, #incidentes .sector-item:hover {
	background-color: var(--bg-claro);
}

/* =========================================
   TÍTULOS CON FONDO DE COLOR DE SECCIÓN
   ========================================= */
#endpoints .subtitle.s2, #entornos .subtitle.s2, 
#pentesting .subtitle.s2, #incidentes .subtitle.s2 {
    display: block;
    color: var(--theme-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px !important;
}

#endpoints h2, #entornos h2, #pentesting h2, #incidentes h2 {
    display: block;
    background: var(--gradiente);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px !important;
    line-height: 1.3;
}

/* =========================================
   BOTÓN "VOLVER A SERVICIOS" CON COLOR DE SECCIÓN
   ========================================= */
#endpoints .btn-main, #entornos .btn-main, 
#pentesting .btn-main, #incidentes .btn-main {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: #ffffff !important;
}

#endpoints .btn-main:hover, #entornos .btn-main:hover, 
#pentesting .btn-main:hover, #incidentes .btn-main:hover {
    background-color: #212529 !important; /* Oscuro al pasar el mouse */
    border-color: #212529 !important;
    color: #ffffff !important;
}

/* =========================================
   TARJETAS MODERNAS - 5 COLUMNAS Y COLORES
   ========================================= */

.card-theme-blue   { --card-color: #0d6efd; --card-color-light: rgba(13, 110, 253, 0.06); --card-grad: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); }
.card-theme-red    { --card-color: #dc3545; --card-color-light: rgba(220, 53, 69, 0.06);  --card-grad: linear-gradient(135deg, #dc3545 0%, #b02a37 100%); }
.card-theme-purple { --card-color: #7c3aed; --card-color-light: rgba(124, 58, 237, 0.06); --card-grad: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.card-theme-cyan   { --card-color: #0dcaf0; --card-color-light: rgba(13, 202, 240, 0.06); --card-grad: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%); }
.card-theme-orange { --card-color: #f97316; --card-color-light: rgba(249, 115, 22, 0.06); --card-grad: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }

/* Asegurar que las columnas tengan la misma altura */
.row.row-cols-lg-5 > .col {
    display: flex;
}

.service-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    flex: 1 1 auto; /* Esto hace que ocupe toda la altura disponible */
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--card-color-light);
}

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

.card-visual {
    position: relative;
    padding: 25px 20px 15px;
    background: var(--card-color-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background 0.4s ease;
    flex-shrink: 0; /* Evita que se encoja */
}

.service-card-modern:hover .card-visual {
    background: rgba(0,0,0,0.02);
}

.card-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: var(--card-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px var(--card-color-light);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card-modern:hover .card-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-icon-wrapper i {
    font-size: 24px;
    color: #ffffff;
}

.card-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--card-color);
    opacity: 0.15;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
}

.card-body-custom {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body-custom h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f3a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-body-custom p {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; /* Empuja el enlace hacia abajo */
}

.card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--card-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto; /* Empuja al fondo */
    flex-shrink: 0;
}

.service-card-modern:hover .card-link {
    transform: translateX(4px);
    opacity: 0.8;
}

@media (max-width: 991px) {
    .card-body-custom h4 { font-size: 1.1rem; }
    .card-body-custom p { font-size: 0.9rem; }
}
/* =========================================
   ICONOS PNG CON COLOR DE SECCIÓN (MÁSCARA)
   ========================================= */
.icono-tematico {
    background-color: var(--theme-color);
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    width: 50px;
    height: 50px;
    transition: background-color 0.3s ease;
}
.icono-tematico-2 {
	width: 70px;
    height: 70px;
    margin-bottom: -15px !important;
    mask-position: 0px -13px;
}
.icono-tematico-blanco {
	background-color: #ffffff !important;
}
.service-item:hover .icono-tematico, .service-item:hover .icon-box {
    filter: brightness(0.85);
}
/* =========================================
   CTA FINAL
   ========================================= */
section.cta-final {
    background: linear-gradient(135deg, #173f9d 0%, #1e293b 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
section.cta-final h2, section.cta-final p {
    color: #ffffff;
}

/* =========================================
   NUEVA PALETA DE COLORES PARA CONSULTORÍA
   ========================================= */
#vulnerabilidades { 
    --theme-color: #059669; 
    --theme-bg: rgba(5, 150, 105, 0.04); 
    --theme-dark: #047857; 
    --bg-claro: rgba(5, 150, 105, 0.08);
    --gradiente: linear-gradient(135deg, #059669 0%, #047857 100%); 
}
#gobierno { 
    --theme-color: #4338ca; 
    --theme-bg: rgba(67, 56, 202, 0.04); 
    --theme-dark: #3730a3; 
    --bg-claro: rgba(67, 56, 202, 0.08);
    --gradiente: linear-gradient(135deg, #4338ca 0%, #3730a3 100%); 
}
#inteligencia { 
    --theme-color: #ea580c; 
    --theme-bg: rgba(234, 88, 12, 0.04); 
    --theme-dark: #c2410c; 
    --bg-claro: rgba(234, 88, 12, 0.08);
    --gradiente: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); 
}
#militar { 
    --theme-color: #334155; 
    --theme-bg: rgba(51, 65, 85, 0.04);  
    --theme-dark: #0f172a; 
    --bg-claro: rgba(51, 65, 85, 0.08);
    --gradiente: linear-gradient(135deg, #334155 0%, #0f172a 100%); 
}

#vulnerabilidades, #gobierno, #inteligencia, #militar {
    background-color: var(--theme-bg);
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

#vulnerabilidades::before, #gobierno::before, 
#inteligencia::before, #militar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--theme-color);
    opacity: 0.9;
}

/* Títulos con fondo degradado del color de la sección */
#vulnerabilidades h2, #gobierno h2, 
#inteligencia h2, #militar h2 {
    display: block;
    background: var(--gradiente);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px !important;
    line-height: 1.3;
}

/* Subtítulos */
#vulnerabilidades .subtitle.s2, #gobierno .subtitle.s2, 
#inteligencia .subtitle.s2, #militar .subtitle.s2 {
    display: block;
    color: var(--theme-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px !important;
}

/* Botones "Volver" con el color de la sección */
#vulnerabilidades .btn-main, #gobierno .btn-main, 
#inteligencia .btn-main, #militar .btn-main {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: #ffffff !important;
}
#vulnerabilidades .btn-main:hover, #gobierno .btn-main:hover, 
#inteligencia .btn-main:hover, #militar .btn-main:hover {
    background-color: var(--theme-dark) !important;
    border-color: var(--theme-dark) !important;
    color: #ffffff !important;
}

/* Fondos y bordes dinámicos */
#vulnerabilidades .id-color, #gobierno .id-color,
#inteligencia .id-color, #militar .id-color {
    color: var(--theme-color) !important;
}
#vulnerabilidades .fondo, #gobierno .fondo,
#inteligencia .fondo, #militar .fondo {
    background-color: var(--theme-color) !important;
}
#vulnerabilidades .borde, #gobierno .borde,
#inteligencia .borde, #militar .borde {
    border-color: var(--theme-color) !important;
}
#vulnerabilidades .fondo-light, #gobierno .fondo-light,
#inteligencia .fondo-light, #militar .fondo-light,
#vulnerabilidades .sector-item:hover, #gobierno .sector-item:hover,
#inteligencia .sector-item:hover, #militar .sector-item:hover {
    background-color: var(--bg-claro) !important;
}

/* =========================================
   TARJETAS SUPERIORES CON COLORES DE SECCIÓN
   ========================================= */
.card-theme-green  { --card-color: #059669; --card-color-light: rgba(5, 150, 105, 0.06); --card-grad: linear-gradient(135deg, #059669 0%, #047857 100%); }
.card-theme-indigo { --card-color: #4338ca; --card-color-light: rgba(67, 56, 202, 0.06); --card-grad: linear-gradient(135deg, #4338ca 0%, #3730a3 100%); }
.card-theme-orange { --card-color: #ea580c; --card-color-light: rgba(234, 88, 12, 0.06); --card-grad: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.card-theme-slate  { --card-color: #334155; --card-color-light: rgba(51, 65, 85, 0.06);  --card-grad: linear-gradient(135deg, #334155 0%, #0f172a 100%); }

/* =========================================
   CAJAS DE COLOR PARA GOBIERNO Y CUMPLIMIENTO
   ========================================= */
.caja-tematica {
    background-color: var(--theme-color);
    color: #ffffff !important;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    display: flex;
    align-items: flex-start;
}
.caja-tematica h5 {
    color: #ffffff !important;
    font-weight: 700;
}
.caja-tematica .sector-texto {
    color: rgba(255,255,255,0.9) !important;
}
.caja-2 {
	height: auto;
}

/* =========================================
   FILA DE 5 ICONOS CON FONDO BLANCO
   ========================================= */
.enfoque-integral-title {
    text-align: center;
    font-weight: 800;
    color: var(--theme-color);
    margin-bottom: 25px;
    letter-spacing: 1px;
}
.enfoque-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}
.enfoque-card-2 {
    background: none;
	border: none;
	padding: 10px;
}
.enfoque-card-2 .icono-tematico {
    margin-bottom: 5px;
}

.enfoque-card-2 span {
    display: block !important;
    line-height: 1 !important;
    font-size: 0.6rem !important;
}

.enfoque-card-2 span strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.65rem;
}
.enfoque-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.enfoque-card h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1f3a;
    margin-top: 10px;
    margin-bottom: 8px;
}
.enfoque-card .sector-texto {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
}

/* =========================================
   SECCIÓN MILITAR: AJUSTES ESPECÍFICOS
   ========================================= */
.texto-militar p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.servicios-especiales .service-item {
    align-items: flex-start !important;
    text-align: left;
}
.servicios-especiales .icono-tematico {
    width: 40px;
    height: 40px;
    min-width: 40px;
}
.img-altura-completa {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.fortaleza-box {
    background-image: url('images/consultoria/militar-firme.webp');
    background-size: cover;
    background-position: right center;
    border: 3px solid var(--theme-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 30px;
}
.fortaleza-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}
.fortaleza-box .contenido-fortaleza {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: right;
    max-width: 80%;
}
.fila-unificada-oscura {
    background-color: var(--theme-dark);
    border-radius: 12px;
    padding: 30px;
    color: #ffffff;
}
.fila-unificada-oscura .id-color {
    color: #ffffff !important;
}
.fila-unificada-oscura .icono-tematico {
    background-color: #ffffff !important;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
}
.soldado-bg {
    position: relative;
}
.soldado-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/images/consultoria/soldado.png');
    background-size: contain !important;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 0;
}
/* =========================================
   PALETA DE COLORES PARA CURSOS
   ========================================= */
#cursos { 
    --theme-color: #6366f1;
    --theme-bg: rgba(99, 102, 241, 0.04); 
    --theme-dark: #4338ca; 
    --bg-claro: rgba(99, 102, 241, 0.08);
    --gradiente: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); 
}

#cursos {
    background-color: var(--theme-bg);
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Línea superior decorativa con degradado */
#cursos::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradiente);
    opacity: 0.9;
}

/* Subtítulos y textos de acento */
#cursos .subtitle.s2, #cursos .id-color {
    color: var(--theme-color) !important;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Círculos de iconos con el degradado violeta-azul */
#cursos .fondo {
    background: var(--gradiente) !important;
}

/* Fondos suaves para las tarjetas de la lista */
#cursos .fondo-light {
    background-color: var(--bg-claro) !important;
}

/* Bordes de acento */
#cursos .borde {
    border-color: var(--theme-color) !important;
}

/* Botones principales de la sección */
#cursos .btn-main {
    background: var(--gradiente) !important;
    border-color: var(--theme-color) !important;
    color: #ffffff !important;
}
#cursos .btn-main:hover {
    background: var(--theme-dark) !important;
    border-color: var(--theme-dark) !important;
}

/* Ajuste de iconos dentro de los círculos (como lo corregimos antes) */
#cursos .icono-tematico {
    width: 28px !important;
    height: 28px !important;
}
footer .widget a:hover {
	color: var(--primary-color);
}
::selection {
    color: #ffffff;
    background: var(--primary-color);
}
.topbar-widget {
    color: #fff;
}
a.btn-main {
    margin-right: 15px;
}