.white-border-fade {
    border: 3px solid rgba(255, 255, 255, 1);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Quitar padding del main cuando está activo */
body.slides-active main {
    padding: 0 !important;
}

/* Navbar normal */
nav, header {
    position: relative;
    z-index: 100 !important;
    transition: opacity 0.4s ease;
}

/* Ocultar navbar cuando el sistema está activo */
body.slides-active nav,
body.slides-active header {
    opacity: 0;
    pointer-events: none;
}

#hero-section {
    position: relative;
    margin-top: 2.5rem;
}

#hero-section.fixed-hero {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 10;
    margin: 0 !important;
    padding: 0 !important;
}

/* Placeholder */
.hero-placeholder {
    height: 0;
    transition: height 0.3s ease;
}

.hero-placeholder.active {
    height: 100vh;
}

.content-slide {
    height: 100vh !important;
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    visibility: hidden;
    opacity: 0;
    z-index: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.content-slide.active {
    visibility: visible;
}

.slide__outer,
.slide__inner {
    width: 100%;
    height: 100%;
}

/* Ocultar footer cuando el sistema está activo */
body.slides-active footer {
    display: none !important;
}

/* --------------------------------------------- */
/* Container de las tarjetas */
#tech-cards-container {
    min-height: 600px;
}

/* Wrapper para controlar la expansión */
.tech-card-wrapper {
    flex-shrink: 0;
    transition: all 0.5s ease-in-out;
}

/* Estilos para el efecto de las tarjetas tecnológicas */
.tech-card {
    position: relative;
    z-index: 1;
    transition: all 0.5s ease-in-out;
    min-width: 208px;
    max-width: 208px;
    border-radius: 1.5rem !important;
}

/* Estado activo (cuando se hace click) */
.tech-card.active {
    min-width: 450px;
    max-width: 450px;
    width: 450px;
    border-radius: 1.5rem !important;
    z-index: 10;
}

.tech-card.active .tech-gradient {
    background: linear-gradient(to right, rgba(239, 68, 68, 0.8) 0%, rgba(239, 68, 68, 0.4) 50%, rgba(239, 68, 68, 0) 100%) !important;
}

/* Para las tarjetas azules (2da y 4ta) */
.tech-card-wrapper:nth-child(2) .tech-card .tech-gradient,
.tech-card-wrapper:nth-child(4) .tech-card .tech-gradient {
    background: linear-gradient(to top, rgba(79, 70, 229, 0.8) 0%, rgba(79, 70, 229, 0.4) 50%, rgba(79, 70, 229, 0) 100%);
}

.tech-card-wrapper:nth-child(2) .tech-card.active .tech-gradient,
.tech-card-wrapper:nth-child(4) .tech-card.active .tech-gradient {
    background: linear-gradient(to right, rgba(79, 70, 229, 0.8) 0%, rgba(79, 70, 229, 0.4) 50%, rgba(79, 70, 229, 0) 100%) !important;
}

.tech-card.active .tech-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 1.5rem;
}

.tech-card.active .tech-icon {
    height: 60px;
    margin: 0;
}

.tech-card.active .tech-text {
    margin-top: 0;
    text-align: left;
}

/* Ajustes responsive */
@media (max-width: 1024px) {
    .tech-card.active {
        min-width: 380px;
        max-width: 380px;
        width: 380px;
    }
    
    .tech-card.active .tech-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tech-card.active {
        min-width: 320px;
        max-width: 320px;
        width: 320px;
    }
    
    .tech-card.active .tech-content {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1rem;
    }
    
    .tech-card.active .tech-icon {
        height: 45px;
    }
}