/* --- VARIABLES DE COLOR E IDENTIDAD --- */
:root {
  --pulsar-bg-main: #0F172A;       /* Gris espacial oscuro */
  --pulsar-bg-card: #1E293B;       /* Fondo de bloques secundarios */
  --pulsar-blue: #1E2D6A;          /* El azul del logo */
  --pulsar-red: #E63333;           /* El rojo vibrante de acción */
  --text-white: #FFFFFF;
  --text-grey: #94A3B8;            /* Tech Grey para lectura */
}

/* --- Sección Features puls-ar --- */

.bg-pulsar-main { 
    background-color: var(--pulsar-bg-main); 
}

.bg-pulsar-card { 
    background-color: var(--pulsar-bg-card); 
}

.text-pulsar-grey { 
    color: var(--text-grey); 
}

.text-pulsar-red { 
    color: var(--pulsar-red); 
}

/* Decoración de título */
.title-underline {
    width: 60px; 
    height: 4px; 
    background-color: var(--pulsar-red);
    margin-top: 0.5rem;
}

/* Tarjetas de Propuesta de Valor */
.card-pulsar {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(148, 163, 184, 0.1); /* Borde sutil por defecto */
    border-radius: 1.25rem;
    cursor: context-menu;
}

.card-pulsar, 
.card-pulsar .icon-box i, 
.card-pulsar h3, 
.card-pulsar p{
    cursor: context-menu;
}

.card-pulsar:hover {
    transform: translateY(-12px);
    border-color: var(--pulsar-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Contenedor de Iconos con degradado institucional */
.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pulsar-blue) 0%, rgba(230, 51, 51, 0.3) 100%);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box i {
    color: var(--text-white);
    font-size: 1.75rem;
}

/* Ajuste de lectura para los párrafos en cards */
.card-pulsar p {
    line-height: 1.6;
    font-size: 0.95rem;
}



/* --- RESET Y CUERPO GENERAL --- */
body {
  background-color: var(--pulsar-bg-main);
  color: var(--text-white);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* --- JERARQUÍA TIPOGRÁFICA --- */

/* Títulos Principales de la Marca (Estilo Expletus Sans Bold Italic) */
h1, .font-brand {
  font-family: 'Expletus Sans', sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* Títulos de Bloques, Tarjetas y Secciones (Open Sans Bold) */
h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Textos Secundarios y Párrafos */
p {
  color: var(--text-grey);
  font-weight: 400;
}

/* Negritas dentro de los párrafos */
strong, b {
  font-weight: 700;
  color: var(--text-white);
}

/* Clase auxiliar para subtítulos destacados o introducciones */
.lead-pulsar {
  font-weight: 600;
  color: var(--text-white);
}

/* --- COMPONENTE: NAVBAR --- */
#main_menu {
    background-color: rgba(15, 23, 42, 0.9); /* Fondo principal con sutil transparencia */
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px); /* Efecto esmerilado moderno */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

#main_menu.navbar-small {
  background-color: rgba(11, 11, 11, 0.5) !important;
  padding: 0 0;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #1E293B;
}

.brand-text-top {
    font-family: 'Expletus Sans', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text-white);
}

.brand-text-bottom {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--pulsar-red); /* Subtítulo del logo en rojo institucional */
}

#main_menu .nav-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: var(--text-grey);
    transition: color 0.3s ease;
}

#main_menu .nav-link:hover,
#main_menu .nav-link:focus {
    color: var(--text-white);
}

/* --- COMPONENTE: HERO --- */
.hero-section {
    min-height: 85vh;
    background-color: var(--pulsar-bg-main);
}

.text-destacado-hero {
    color: var(--text-white);
    border-bottom: 3px solid var(--pulsar-red);
}

.btn-pulsar-primary {
    background-color: var(--pulsar-red);
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: var(--text-white);
}

.btn-pulsar-primary:hover {
    background-color: #bd2424; /* Un rojo un toque más oscuro para el hover */
    color: var(--pulsar-bg-main);
    transform: translateY(-2px);
}

.hero-logo-container {
    filter: drop-shadow(0 0 25px rgba(30, 45, 106, 0.6));
}

.navbar img.main-logo{
    height: 50px;
    z-index: 1000;
    width: auto;
}

.navbar-brand img {
  /*filter: drop-shadow(0px 0px 5px rgba(255, 215, 0, 0.3));*/
  transition: transform 0.3s ease;
}

#navbarNav .nav-link{
    text-transform: uppercase;
}

/* --- NUEVO LAYOUT DEL CAROUSEL FULLSCREEN --- */

#heroCarousel {
    touch-action: pan-y; /* Permite scroll vertical pero bloquea el horizontal nativo sobre el carousel */
    overflow: hidden;
}

/* Forzamos a que el item del carousel ocupe toda la pantalla visible */
#heroCarousel .carousel-item {
    height: 100vh;
    min-height: 600px; /* Evita que en pantallas muy bajas colapse el texto */
    background-color: var(--pulsar-bg-main); /* Fondo de seguridad mientras carga la imagen */
}

/* La etiqueta picture actúa como la capa base del fondo */
.carousel-picture-bg,
.carousel-picture-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave: asegura que la imagen cubra el 100vh sin deformarse */
    object-position: center;
    z-index: 1; /* Por debajo del texto */
}

/* Capa de sombreado sutil sobre la imagen para mejorar el contraste general */
.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 50%, rgba(15,23,42,0.1) 100%);
    z-index: 2; /* Por encima de la foto, por debajo del texto */
}

/* Posicionamiento estricto en el tercio inferior izquierdo */
#heroCarousel .content-pulsar-left {
    position: absolute;
    z-index: 3; /* Por encima de todo */
    left: 10%;
    bottom: 10%;
    right: auto; /* Desactivamos el comportamiento centrado por defecto de Bootstrap */
    text-align: left;
    max-width: 600px; /* Evita que el texto se estire al infinito en pantallas anchas */
    padding-bottom: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

/* Ajuste tipográfico del Slider */
#heroCarousel .content-pulsar-left h1 {
    font-family: 'Expletus Sans', sans-serif;
    font-weight: 700;
    font-style: italic;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

#heroCarousel .content-pulsar-left p {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-white); /* Forzamos blanco puro en el slider para contraste */
    margin-bottom: 2rem;
}

#heroCarousel .carousel-control-prev, .carousel-control-next {
  width: 4% !important;
  z-index: 3;
}

#heroCarousel .carousel-control-prev {
  left: 0;
}

#heroCarousel .carousel-control-next {
  right: 0;
}

/* --- Sección Tecnología --- */
.tech-badge {
    background-color: var(--pulsar-bg-card);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background-color: var(--pulsar-blue);
    border-color: var(--pulsar-red);
    transform: scale(1.05);
}

.tech-badge i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.tech-name {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Divisor sutil entre secciones */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pulsar-blue), transparent);
    opacity: 0.5;
}

/* --- Mejora para el badge de Bases de Datos --- */
.db-multi-badge {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pulsar-bg-card) 0%, var(--pulsar-blue) 100%);
}

.db-multi-badge::after {
    content: "SQL EXPERT";
    position: absolute;
    top: 15px;
    right: -29px;
    background: var(--pulsar-red);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 25px;
    transform: rotate(45deg);
}

.tech-list-sm {
    font-size: 0.75rem;
    color: var(--text-grey);
    margin-top: 0.5rem;
    display: block;
    line-height: 1.2;
}

/* Badge especial para conectividad */
.tech-connectivity {
    border-bottom: 2px solid var(--pulsar-blue);
}

.tech-connectivity:hover {
    border-bottom-color: var(--pulsar-red);
}

/* --- Sección Metodología puls-ar --- */

.step-item {
    position: relative;
    text-align: center;
    padding: 2rem;
}

/* El círculo con el número */
.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--pulsar-bg-card);
    border: 2px solid var(--pulsar-blue);
    color: var(--pulsar-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    background-color: var(--pulsar-red);
    color: white;
    border-color: var(--pulsar-red);
    transform: scale(1.1);
}

/* La línea conectora (solo visible en escritorio) */
@media (min-width: 992px) {
    .step-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50px; /* Alineado con el centro del círculo */
        left: 60%;
        width: 80%;
        height: 2px;
        background: linear-gradient(90deg, var(--pulsar-blue), transparent);
        z-index: 1;
    }
}

.step-title {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-grey);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Footer puls-ar --- */
footer {
    background-color: #080C17; /* Un tono más oscuro que el main para dar profundidad */
    border-top: 1px solid rgba(30, 45, 106, 0.3);
}

.footer-title {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-link {
    color: var(--text-grey);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--pulsar-red);
    padding-left: 5px;
}

/* Newsletter Input */
.newsletter-form .form-control {
    background-color: var(--pulsar-bg-card);
    border: 1px solid var(--pulsar-blue);
    color: var(--text-white);
    padding: 0.75rem 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(230, 51, 51, 0.25);
    border-color: var(--pulsar-red);
}

.btn-newsletter {
    background-color: var(--pulsar-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background-color: #c42b2b;
    transform: scale(1.05);
}

.copyright-bar {
    background-color: #05080f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header de Pantalla Completa para Secciones en Construcción */
.maintenance-header {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/sitios/pls/assets/img/construccion_bg.webp') no-repeat center center;
    background-size: cover;
    position: relative;
}

/* Capa de superposición para legibilidad */
.maintenance-overlay {
    background: rgba(15, 23, 42, 0.7); /* Tu color pulsar-bg-main con transparencia */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
}

.status-indicator {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--pulsar-red);
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--pulsar-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--pulsar-red);
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Header de Pantalla Completa para Contacto PC */
/* Contenedor principal de la sección */
.contact-header {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Asegura que ocupe toda la pantalla */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo para que la imagen del picture actúe como fondo */
.contact-picture-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave: mantiene la proporción como un background-image */
    z-index: 1;
}

/* El contenido (formulario) debe estar por encima de la imagen */
.contact-content-overlay {
    position: relative;
    z-index: 2; /* Por encima de la imagen */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

/* Mantenemos tu estilo de overlay con blur */
.contact-form-box {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Compatibilidad Safari */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    max-width: 650px;
    width: 90%; /* Responsivo en móviles */
}


/* Estilos de inputs para Contacto */
.form-pulsar-control {
    background-color: var(--pulsar-bg-card);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-white);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.form-pulsar-control:focus {
    background-color: rgba(30, 45, 106, 0.4);
    border-color: var(--pulsar-red);
    box-shadow: 0 0 10px rgba(230, 51, 51, 0.3);
    color: var(--text-white);
}