/* --------------------------- */
/* RESET */
/* --------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.5;
    overflow-x: hidden;
}

b {
    color: #0b2e5a;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --------------------------- */
/* HEADER */
/* --------------------------- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
    padding: 12px 0;
    transition: 0.3s ease;
}

.header.scrolled {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
}

.container-nav {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    transition: 0.3s ease;
}

/* Fuerza header blanco en móvil */
@media (max-width: 991px) {
    .header {
        background: #fff;
    }

    .logo img {
        filter: none;
    }
}

/* --------------------------- */
/* HAMBURGER */
/* --------------------------- */
.hamburger {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: #fff;
    transition: 0.3s;
}

/* Azul en móvil SIEMPRE */
@media (max-width: 991px) {
    .hamburger span {
        background: #0c2340 !important;
    }
}

/* Azul en scroll */
.header.scrolled .hamburger span {
    background: #0c2340;
}

/* Estado X */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: white !important;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background: white !important;
}

/* --------------------------- */
/* NAV */
/* --------------------------- */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #0c2340;
    padding-top: 100px;
    transition: 0.4s ease-in-out;
    z-index: 1000;
}

.nav ul {
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
}

.nav ul li a {
    color: #fff;
    font-size: 20px;
    display: block;
}

.nav.active {
    right: 0;
}

/* Desktop */
@media (min-width: 992px) {
    .hamburger {
        display: none;
    }

    .nav {
        position: relative;
        right: 0;
        height: auto;
        width: auto;
        background: none;
        padding: 0;
    }

    .nav ul {
        flex-direction: row;
        gap: 40px;
        padding: 0;
        text-align: left;
    }

    .nav ul li a {
        font-size: 16px;
        color: #fff;
        position: relative;
    }

    .nav ul li a.active:after {
        content: "";
        width: 30px;
        height: 1px;
        display: block;
        background: white;
        transition: 0.3s ease;
    }

    .nav ul li a:after {
        content: "";
        width: 0px;
        height: 1px;
        display: block;
        background: white;
        transition: 0.3s ease;
    }

    .nav ul li a:hover:after {
        content: "";
        width: 30px;
        height: 1px;
        display: block;
        background: white;
        transition: 0.3s ease;
    }

    .header.scrolled .nav ul li a {
        color: #0c2340;
    }
}

/* --------------------------- */
/* HERO */
/* --------------------------- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.55);
}

.hero .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 900px;
}

.hero h1 {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero .imagen {
    height: 100%;
    width: 100%;
    opacity: 0.75;
    background-size: cover;
}

.hero p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 32px;
    background: var(--Category-Gradients-Products_Software, linear-gradient(90deg, #003E7E 7.44%, #00AEEF 93.59%));
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    border-radius: 50px;
    border: 1px solid white;
}

.btn:hover {
    background: #003E7E;
    border: 1px solid white;
    color: white;
    border: 1px solid white;
}

/* --------------------------- */
/* SECCIONES GENERALES */
/* --------------------------- */
.section {
    padding: 90px 0;
}

.section h2 {
    font-weight: 700;
    font-size: 2rem;
    background: linear-gradient(90deg, #5596e8, #031035);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #196fdb;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section p {
    font-size: 17px;
    margin-bottom: 15px;
}

#empresa,
#galeria {
    background: url("../imagenes/bg.png") center/cover;
    background-attachment: fixed;
}


/* --------------------------- */
/* CARDS */
/* --------------------------- */
.card-sadisa {
    padding: 40px;
    border-radius: 10px;
    background: #0c2340;
    color: #fff;
    transition: 0.3s ease;
}

.card-sadisa:hover {
    transform: translateY(-5px);
    background: #0a6ad8;
}

/* --------------------------- */
/* ISO + QR */
/* --------------------------- */
.iso-qr {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.iso-qr img {
    height: 80px;
}

/* --------------------------- */
/* FOOTER */
/* --------------------------- */
footer {
    background: #0c2340;
    color: #fff;
    padding: 50px 0px 0px;
}

footer a {
    color: #fff;
    opacity: 0.8;
    transition: 0.3s ease;
}

footer a.btn {
    width: 40px;
    height: 40px;
    padding: 9px 0px;
}

footer a:hover {
    opacity: 1;
}

#servicios {
    background: #f7f6f9;
}

/* --------------------------- */
/* CARDS CON IMAGEN + REVEAL */
/* --------------------------- */
.card-sadisa {
    position: relative;
    padding: 0;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

/* Fondo simulado - reemplazá por tus imágenes */
.card-bg-1 {
    background: url("../imagenes/servicios.jpg") center/cover;
}

.card-bg-2 {
    background: url("../imagenes/consultoria.jpg") center/cover;
}

/* Oscurecido inicial */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    transition: 0.4s ease;
}

/* Contenido */
.card-content {
    position: relative;
    padding: 35px;
    z-index: 2;
}

.card-content h3 {
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-content p {
    margin: 0;
}

/* Efecto hover */
.card-sadisa:hover {
    transform: translateY(-6px);
    transition: 0.3s ease;
}

.destacada {
    color: #0a6ad8;
    font-weight: bold;
    line-height: 2;
    font-size: 14px!important;
}

.destacada i {
    background: #0a67d9;
    color: white;
    width: 23px;
    height: 23px;
    border-radius: 50px;
    text-align: center;
    padding: 5px;
}

/* --------------------------- */
/* GALERÍA COLLAGE + LIGHTBOX CON FLECHAS */
/* --------------------------- */
.gallery {
    column-count: 4;
    column-gap: 0;
    margin-top: 40px;
}

@media(max-width:1200px) {
    .gallery {
        column-count: 3;
    }
}

@media(max-width:992px) {
    .gallery {
        column-count: 2;
    }
}

@media(max-width:576px) {
    .gallery {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2100;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 50px;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}


/* Agregados nuevo slider */


.main-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.main-banner .carousel-item {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 100vh;
}

.main-banner .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.main-banner .container {
    position: relative;
    z-index: 2;
}

.main-banner .hero-text h1 {
    color: #fff;
    font-weight: 700;
}

.main-banner .hero-text p.subtitle,
.main-banner .hero-text h3.subtitle {
    color: #fff;
}

.boxed-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.boxed-btn:hover {
    background: #212529;
    color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}


/* Flechas blancas del carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
    width: 3rem;
    height: 3rem;
    filter: none;
    position: relative;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    mask-size: cover;
    -webkit-mask-size: cover;
    background-color: #fff;
}

.carousel-control-prev-icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 12L6 8l4-4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 12L6 8l4-4'/%3E%3C/svg%3E");
}

.carousel-control-next-icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 4l4 4-4 4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 4l4 4-4 4'/%3E%3C/svg%3E");
}

.main-banner .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;    
}

.main-banner .container h1 {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 20px;
}

.main-banner .container p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
}

.main-banner .carousel-item {
    position: relative !important;
    z-index: 1 !important;
}

.main-banner .overlay {
    position: absolute;
    inset: 0;
    background: black;
    z-index: 2 !important;
    opacity: 0.45 !important;
}

.carousel-item .contenido {
    z-index: 3 !important;
}

/* Termina slider */

/* Contacto */

a:hover, a:focus, a:active, .form-control:focus, .form-control:active, .form-control:hover, [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled), .btn-success.focus, .btn-success:focus, .form-select,
button:hover, button:active, button:focus, .btn-success, .btn, [type=button], [type=reset], [type=submit], button,
.btn:hover, .btn:active, .btn:focus {
    outline: 0!important;
    box-shadow: none!important;
}

textarea.form-control {    
    min-height: 140px;
    margin-bottom: 20px;
}

.no-margin {
  margin:0px!important;
}
.help-block.with-errors {
  color: #313875;
  margin-top: 5px;
  }
  
  .alert-success {
  color: #fff;
  background-color: transparent;
  border-color: #f1f0f5;
  }
.alert-dismissable .close, .alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0px;
    color: white;
    font-weight: 300;
    background: black;
    border: 0;
}
  .alert {
    position: relative;
    padding: 2rem;
    margin-bottom: 1rem;
    border: 0px solid transparent;
    border-radius: 0px;
}
  
  .text-muted {
  color: #313875;
  }
  .history-text p.text-muted {
  color: #313875;
  }
  .messages {background: black; color: white;}
  
  .btn.disabled, .btn[disabled],  .btn-send, .btn-success,
  fieldset[disabled] .btn  {
  background: var(--Category-Gradients-Products_Software, linear-gradient(90deg, #003E7E 7.44%, #00AEEF 93.59%));
  color: white;
  text-transform: uppercase;
  width: 165px;
  border: none;
  height: 46px;
  cursor: pointer;
  font-size: calc(12px + 0.4vw);
  opacity: 1;
  line-height: 1;
  border-radius: 50px;
  }
  .btn.disabled:hover,  .btn.disabled:active, .btn.disabled:focus, .btn-success:hover, .btn-success:active, .btn-success:focus,
  .btn[disabled]:hover, .btn[disabled]:active, .btn[disabled]:focus,
  fieldset[disabled] .btn:hover, fieldset[disabled] .btn:active, fieldset[disabled] .btn:focus,
    .btn-send:hover, .btn-send:active, .btn-send:focus
  {
    background: #313875;
    color: white;
    opacity: 1;
    border-radius: 50px;
    }
  
.alert-danger {
    color: black;
    background-color: #f1f0f5;
    border-color: #f1f0f5;
}
.form-group {
  margin-top:10px;
  margin-bottom: 10px;  
}
.form-group input {
      min-height: 45px;
    border-color: #e8e8e8;
}
  .d-none {
    display: none!important;
}
.nice-select.wide {
    width: 100%;
    border-radius: 0;
}
.input-group-addon {
  position: absolute;
    right: 10px;
    z-index: 1;
    top: 8px;
}

  /* Termina Contacto */
#contacto .redes a {
    width: 45px;
    height: 40px;
    padding: 9px;
}