/* ===========================================
 * Coverweb landing v2 - custom overrides
 * =========================================== */

/* Logo navbar: el logo blanco se ve bien sobre fondo oscuro */
#landing-navbar .auth-brand img { max-height: 100px; }

/* Toggle de tema en navbar oscuro */
#landing-navbar #theme-toggle { color: rgba(255, 255, 255, 0.85); }
#landing-navbar #theme-toggle:hover { color: #fff; }

/* Centrado vertical de items del navbar */
#landing-navbar .navbar-nav .nav-link { padding-top: .55rem; padding-bottom: .55rem; }

/* Barra superior siempre fija y visible (independiente del contenedor de scroll) */
#landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 .0625rem .25rem rgba(0, 0, 0, .2);
}
/* Anula el ocultamiento por scroll del template (nunca esconder la barra) */
#landing-navbar.top-fixed.top-hide {
    -webkit-transform: translateY(0) !important;
    transform: translateY(0) !important;
}
/* Reserva el alto de la barra fija para que el contenido no quede tapado */
body { padding-top: 90px; }
/* Evita que los anclajes del menu queden por debajo de la barra fija */
html, body { scroll-padding-top: 90px; }

/* En mobile: logo mas compacto para que la barra entre en una sola fila */
@media (max-width: 575.98px) {
    #landing-navbar .auth-brand img { height: 40px; }
    body { padding-top: 80px; }
    html, body { scroll-padding-top: 80px; }
}

/* En desktop: separacion del menu respecto al logo */
@media (min-width: 992px) {
    #navbarSupportedContent {
        margin-left: 50px;
        margin-top: 2px;
    }
}

/* Modal de login: separado del borde superior */
#modal-login .modal-dialog { margin-top: 70px; }

/* Icono ojo para mostrar/ocultar contrasenia dentro del input */
.pass-wrapper { position: relative; }
.pass-wrapper .toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    z-index: 5;
    user-select: none;
    line-height: 1;
}
.pass-wrapper .toggle-pass:hover { color: #333; }

/* Eleva un poco el hero */
#hero { padding-top: 1rem; }
#hero h1 { letter-spacing: -.5px; }

/* ===========================================
 * CTA Demo button (clonado de home/css/style.v1.11.css)
 * =========================================== */
.btn-cta-demo {
    background: #1c84c6;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(28, 132, 198, 0.45), 0 0 0 0 rgba(28, 132, 198, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: pulse-demo 2s infinite;
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.btn-cta-demo > * { position: relative; z-index: 2; }
.btn-cta-demo::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-22deg);
    animation: shine-demo 3.2s infinite;
    pointer-events: none;
    z-index: 1;
}
.btn-cta-demo:hover,
.btn-cta-demo:focus,
.btn-cta-demo:active,
.btn-cta-demo:focus-visible {
    transform: translateY(-2px) scale(1.04);
    background: #1c84c6;
    box-shadow: 0 10px 32px rgba(28, 132, 198, 0.7), 0 0 0 4px rgba(28, 132, 198, 0.18);
    color: #fff !important;
    outline: none;
    border: none;
}
.btn-cta-demo:hover::before,
.btn-cta-demo:focus::before { animation-duration: 1.4s; }
.btn-cta-demo:active { transform: translateY(0) scale(1.01); }

@keyframes pulse-demo {
    0%   { box-shadow: 0 4px 20px rgba(28, 132, 198, 0.45), 0 0 0 0  rgba(28, 132, 198, 0.55); }
    50%  { box-shadow: 0 6px 32px rgba(28, 132, 198, 0.85), 0 0 0 12px rgba(28, 132, 198, 0); }
    100% { box-shadow: 0 4px 20px rgba(28, 132, 198, 0.45), 0 0 0 0  rgba(28, 132, 198, 0); }
}
@keyframes shine-demo {
    0%   { left: -75%; }
    55%  { left: 125%; }
    100% { left: 125%; }
}

/* ===========================================
 * Modal solicitud de demo
 * =========================================== */
.modal-dialog-demo  { max-width: 540px; margin: 40px auto; }
.modal-content-demo { border-radius: 16px; border: none; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }

.modal-header-demo  { background: linear-gradient(112deg, #213447 0%, #1c84c6 100%); color: #fff; padding: 30px 30px 24px; text-align: center; position: relative; }
.close-demo         { position: absolute; top: 14px; right: 20px; color: rgba(255, 255, 255, 0.7); font-size: 22px; background: none; border: none; cursor: pointer; line-height: 1; }
.close-demo:hover   { color: #fff; }

.demo-icon-wrap     { width: 56px; height: 56px; background: rgba(255, 255, 255, 0.12); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; }
.modal-header-demo h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.modal-header-demo p  { font-size: 13px; opacity: 0.75; margin: 0; }

.modal-body-demo    { padding: 26px 30px 10px; background: #fff; }

.demo-field-group   { margin-bottom: 16px; }
.demo-field-row     { display: flex; gap: 14px; }
.demo-half          { flex: 1; }

.demo-label         { font-size: 13px; font-weight: 600; color: #2c3e50; margin-bottom: 5px; display: block; }
.demo-req           { color: #e74c3c; }

.demo-input         { border-radius: 8px !important; border: 1.5px solid #dde2ea !important; height: 40px !important; font-size: 14px !important; transition: border-color 0.15s, box-shadow 0.15s; }
.demo-input:focus   { border-color: #0f3460 !important; box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1) !important; }
.demo-input.input-error { border-color: #e74c3c !important; }

.demo-error         { color: #e74c3c; font-size: 12px; margin-top: 4px; display: none; }

.demo-textarea      { border-radius: 8px !important; border: 1.5px solid #dde2ea !important; font-size: 14px !important; resize: vertical; min-height: 72px; transition: border-color 0.15s, box-shadow 0.15s; }
.demo-textarea:focus { border-color: #0f3460 !important; box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1) !important; outline: none !important; }

.demo-msg-success   { background: #eafaf1; border: 1px solid #27ae60; color: #1e8449; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-top: 6px; }
.demo-msg-error     { background: #fdedec; border: 1px solid #e74c3c; color: #922b21; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-top: 6px; }

.modal-footer-demo  { padding: 16px 30px 24px; background: #fff; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #f0f2f5; }
.btn-demo-cancelar  { background: #f5f7fa; color: #555; border: none; border-radius: 8px; padding: 10px 22px; font-size: 14px; cursor: pointer; }
.btn-demo-cancelar:hover { background: #e8ecf0; }
.btn-demo-aceptar   { background: linear-gradient(135deg, #00c853, #00897b); color: #fff; border: none; border-radius: 8px; padding: 10px 26px; font-size: 14px; font-weight: 600; box-shadow: 0 3px 12px rgba(0, 200, 83, 0.35); transition: transform 0.1s, box-shadow 0.1s; cursor: pointer; }
.btn-demo-aceptar:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0, 200, 83, 0.45); }
.btn-demo-aceptar:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/*@media (max-width: 768px) {
    .modal-dialog-demo { margin: 20px 12px; }
    .demo-field-row    { flex-direction: column; gap: 0; }
}*/

@media (max-width: 900px) {
    .modal-dialog-demo { margin: 20px 12px; }
    .demo-field-row    { flex-direction: column; gap: 0; }
}

/* ===========================================
 * Boton flotante de Whatsapp
 * =========================================== */
.boton-flotante-whatsapp {
    display: block;
    position: fixed;
    right: 82px;
    bottom: 21px;
    width: 48px;
    height: 48px;
    color: #fff;
    background-color: #4dc247;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    border: 0;
    font-size: 18px;
    line-height: 39px;
    opacity: 1;
    z-index: 20000;
    text-align: center;
    text-decoration: none;
    padding-top: 3px;
}
.boton-flotante-whatsapp:hover,
.boton-flotante-whatsapp:visited { color: #fff; }

/* ===========================================
 * Color de acento Coverweb (#1c84c6)
 * =========================================== */

/* Palabra "Empresa" en el hero */
#hero h1 .text-primary { color: #1c84c6 !important; }

/* Botones primarios (Ingresar, Recuperar, Enviar consulta) */
.btn-primary,
.btn-primary:visited {
    background-color: #1c84c6 !important;
    border-color: #1c84c6 !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #1772ad !important;
    border-color: #1772ad !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(28, 132, 198, 0.25) !important;
}

/* Links del modal de login: "Olvidaste tu contrasena" y "Volver al login" */
#a-ir-form-recuperar-contrasenia,
#a-ir-form-login-recuperar {
    color: #1c84c6 !important;
    text-decoration: none;
}
#a-ir-form-recuperar-contrasenia:hover,
#a-ir-form-login-recuperar:hover {
    color: #1772ad !important;
    text-decoration: underline;
}

.nav-link:hover, #btn-abrir-login:hover, #btn-contactanos-hero:hover {
    color: #1c84c6 !important;
}

mark {
    background-color: #e1f3ff !important;
}

[data-bs-theme="dark"] mark {
    background-color: #1c84c6 !important;
}

/* Subtitulos de seccion (chips arriba de cada h2 / h1) */
.text-muted.rounded-3.d-inline-block,
#hero span.fw-semibold.text-muted.fst-italic {
    font-size: 35px !important;
}

/* Evitar overflow horizontal en mobile:
   el patron de fondo del #hero (position-absolute, translate-middle-x)
   es mas ancho que el viewport y empuja el ancho de la pagina. */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
#hero {
    overflow: hidden;
}

/* ============================================
   Alta automatica empresa (pagina de activacion)
   Movido desde inline en alta_automatica_empresa_solicitud_demo.php
   ============================================ */

html, body { height: 100%; }
body.alta-automatica {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #1c84c6 100%) fixed;
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
}
.card-activacion {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(6px);
}
.logo-coverweb { max-width: 220px; height: auto; margin-bottom: 28px; }
h1.bienvenida { font-size: 28px; font-weight: 600; margin-bottom: 12px; color: #ffffff; }
p.subtitulo { font-size: 15px; color: rgba(255, 255, 255, 0.78); margin-bottom: 32px; line-height: 1.5; }
.spinner-wrap { display: flex; justify-content: center; margin: 24px 0 28px; }
.spinner {
    width: 64px; height: 64px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.estado-actual { font-size: 16px; color: #ffffff; font-weight: 500; min-height: 26px; transition: opacity 0.35s ease; }
.footer-info { margin-top: 28px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.panel-error {
    display: none;
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.55);
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 18px;
    color: #ffd8d4;
    font-size: 14px;
    text-align: left;
}
.btn-reintentar {
    display: inline-block;
    margin-top: 12px;
    background: #ffffff;
    color: #1c84c6;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}
.btn-reintentar:hover { background: #f0f0f0; }

/* Panel "Definir contrasenia" (NUEVO) */
.panel-definir-pwd { display: none; margin-top: 22px; text-align: left; }
.panel-definir-pwd h2 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 6px; text-align: center; }
.panel-definir-pwd p.subtitulo-pwd { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 18px; text-align: center; }
.pwd-field-group { margin-bottom: 14px; }
.pwd-label { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 6px; }
.pass-wrapper { position: relative; }
.pass-wrapper input.pwd-input {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    padding: 0 38px 0 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.pass-wrapper input.pwd-input:focus { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.15); }
.pass-wrapper input.pwd-input::placeholder { color: rgba(255,255,255,0.45); }
.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    font-size: 15px;
    user-select: none;
}
.toggle-pass:hover { color: #fff; }

/* Ojo en alta_automatica: claro sobre el fondo oscuro (similar al placeholder), no gris */
body.alta-automatica .pass-wrapper .toggle-pass { color: rgba(255, 255, 255, 0.6); }
body.alta-automatica .pass-wrapper .toggle-pass:hover { color: #fff; }
.pwd-error {
    display: none;
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.55);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 6px 0 14px;
    color: #ffd8d4;
    font-size: 13px;
}
.btn-definir-pwd {
    display: block;
    width: 100%;
    background: #ffffff;
    color: #1c84c6;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
}
.btn-definir-pwd:hover { background: #f0f0f0; }

@media (max-width: 480px) {
    .card-activacion { padding: 32px 22px; }
    h1.bienvenida { font-size: 22px; }
}