/*Navbar*/

.top-bar {
    background-color: #1c1b2d;
    color: #cfcbe6;
    font-size: 0.9rem;
    padding: 8px 10px;
}

.top-bar a {
    color: #cfcbe6;
    text-decoration: underline;
}

.btn-dark {
    color: #fff;
    border-radius: 12px;
    padding: 8px 20px;
    white-space: nowrap;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: .9rem;
    color: rgba(0, 0, 0, .85) !important;
    margin: 0 10px;
}


/*Hero*/

.title-icon-decorator {
    position: relative;
}

.title-icon-decorator::after {
    content: "";
    position: absolute;
    top: 15px;
    left: -28px;
    background-image: url('../assets/01_Home/arrow_blue_krytea@2x.svg');
    background-repeat: no-repeat;
    background-size: contain;
    width: 38px;
    height: 38px;
    z-index: 2;
}

.hero-section {
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 4rem 4rem 8rem;
}

.hero-video-container {
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    object-position: center left;
    z-index: 1;
}

.hero-buttons .btn-dark {
    border-radius: 10px;
    padding: .6rem 2rem;
    font-weight: lighter;
}

.hero-buttons .btn-link {
    font-weight: bold;
    text-decoration: none;
    margin-left: 1rem;
    color: black;
}

.hero-info {
    position: absolute;
    bottom: -2.5rem;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1rem 2rem 1rem 3rem;
    }

    .hero-video-container {
        position: static;
        overflow: visible;
        padding: 0;
    }

    .hero-video {
        position: static;
        width: 90%;
        display: block;
        margin: 0 auto;
    }

    .hero-buttons .btn-link {
        margin-left: 0;
    }

    .hero-info {
        position: static;
    }
}

/*Cards*/
.info-card {
    overflow: hidden;
    height: 28rem;
}

.rounded-card-dark {
    border-radius: 1.5rem;
    background-color: #1f1b2e;
}

.rounded-card {
    border-radius: 1.5rem;
    background-color: #e7eeff;
}

.rounded-5 {
    border-radius: 1.5rem;
}

.blur-effect {
    overflow: hidden;
    position: relative;
}

.blur-effect::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60%;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.5) 90%, rgba(255, 255, 255, 0.7) 100%);
    z-index: 1;
}

.rounded-card-dark.blur-effect::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(100, 100, 100, 0.1) 60%, rgba(20, 20, 20, 0.9) 100%);
}

/* Swiper */
.swiper {
    width: 100%;
    max-height: 600px;
}

.swiper-slide {
    overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
    top: var(--swiper-navigation-top-offset, 60%);
}

@media (max-width: 768px) {
    .swiper {
        max-height: 100%;
    }
}


/*Carousel*/
.card-sector {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-sector img {
    object-fit: cover;
    scale: 1.05;
}

.card-glass-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 0 0 16px 16px;
    transition: max-height 0.4s ease, padding 0.4s ease;
    overflow: hidden;
    max-height: 60px;
}

.card-sector:hover .card-glass-content {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.card-text {
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-bottom: 0;
}

.card-sector:hover .card-text {
    opacity: 1;
}

/* table-custom */
.table-custom td {
    padding: 1.5rem 1rem;
}

.table-custom td:contains('❌') {
    color: red;
}

/* Contenedor general del toggle */
.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    background-color: #f8f9fa;
    width: 300px;
    height: 70px;
    padding: 5px;
    position: relative;
}

/* Estilo general de las opciones */
.toggle-option {
    flex: 1;
    text-align: center;
    color: #ababab;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Fondo dinámico que se desliza */
.toggle-slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 145px;
    /* Ajustar ancho dinámicamente */
    background-color: #2c2c3e;
    /* Color oscuro del fondo */
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    z-index: 0;
}

.toggle-option.active {
    color: #fff;
    /* Texto blanco para la opción activa */
}


.accordion-item {
    border: none;
    border-radius: none;
    border-bottom: 1px solid #dee2e6;
}

.accordion-button:not(.collapsed) {
    color: unset;
    background-color: unset;
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/*Footer*/
.footer-section {
    padding: 20px 0;
}

.footer-section h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer-section ul {
    list-style: none;
    line-height: 2;
    padding: 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: black;
    font-size: .9rem;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    font-size: .9rem;
    padding-top: 10px;
    text-align: center;
}

.bg-image-banner {
    background-image: url('../assets/02_Soluciones/sbanner_krytea@2x.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 70%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.bg-image-banner h2 {
    color: white;
}

.bg-image-banner h4 {
    color: #a8a8a8;
}

.design-container {
    display: flex;
    justify-content: center;
    align-items: end;
    position: relative;
    height: 580px;
}

.design-container .img-container {
    width: 80%;
}

.info-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: start;
}

@media (max-width: 768px) {
    .design-container {
        height: auto;
        display: block;
    }

    .design-container .img-container {
        width: 100%;
    }

    .info-box {
        position: static;
    }
}

.parallax-1 {
    background-image: url('../assets/02_Soluciones/parallax_1_solucion.png');
    height: 960px;
}

.parallax-2 {
    background-image: url('../assets/02_Soluciones/parallax_2_solucion.png');
    height: 960px;
    justify-content: end;
    position: relative;
}

.parallax-2 div {
    z-index: 2;
}

.parallax-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.bg-image-parallax {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 10%;
    display: flex;
    align-items: center;
    color: white;
}

.bg-image-parallax h2 {
    color: white;
}

.parallax-1 .bg-image-parallax p {
    color: #a8a8a8;
}

@media (max-width: 768px) {
    .bg-image-parallax {
        height: 100vh !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        background-position: 25%;
        padding: 5rem 0;
    }

    .parallax-2::after {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.9) 100%);
    }
}


.section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text {
    font-size: 3rem;
    opacity: 0;
    transform: translateY(50px);
}


.line {
    width: 100%;
    max-width: 800px;
    height: 8px;
    margin: 0 0 10px 0;
    position: relative;
    display: inline-block;
    background-color: rgba(255, 255, 255, 1);
}


/* Not great browser support :(
html {
  scroll-behavior: smooth;
} 
*/
nav {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #0000007d;
    padding: 0px 10px;
    border-radius: 10px;
    font-weight: normal;
}

nav a {
    line-height: 1.7;
    text-decoration: none;
    color: var(--color-surface-white);
    opacity: 0.6;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    opacity: 1
}

.panel p {
    max-width: 80ch;
    display: block;
}

.panel {
    flex-direction: column;
    font-size: 1.1em;
}

.panel h1 {
    font-size: 1.8em;
    color: white;
    font-weight: 300;
    margin: 0 auto;
}

.panel.description {
    padding-bottom: 60px;
}

.panel p,
.panel li {
    color: black;
    font-weight: 400;
    text-align: left;
    font-size: 0.8em;
    line-height: 1.5em;
    margin: 0.3em 0 1em 0;
}

.panel li {
    margin: 0;
}

h1,
h2,
p,
li {
    max-width: 800px;
}