:root {
    --primary-blue: #154c79;
    --primary-green: #8ac640;
    --text-main: #1c2b39;
    --text-muted: #4f6477;
    --card-bg: #ffffff;
    --border-light: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: #e5f4fa; /* Fondo base subyacente */
}

/* Contenedor de partículas (Z-index menor que el contenido pero sobre el fondo oscuro) */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Por delante del background de imagen fluido pero detrás del wrapper de contenido */
    pointer-events: none;
    overflow: hidden;
}

/* Background con opacidad ajustable */
.landing-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../assets/images/background.png') no-repeat top center fixed;
    background-size: cover;
    opacity: 0.25; /* Opacidad reducida para no robar protagonismo */
}

.landing-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Hero Section */
.main-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
}

.hero-logo-wrapper {
    flex: 0 1 350px;
    display: flex;
    justify-content: center;
}

.showcase-logo {
    width: 100%;
    max-width: 350px;
    object-fit: contain;
    /* Resplandor blanco exterior para destacar sobre el fondo */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

.hero-welcome {
    flex: 1 1 500px;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-desc {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Features Pill (Caja blanca de bienvenida) */
.features-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-divider {
    width: 1px;
    height: 35px;
    background-color: #e2e8f0;
}

.f-icon {
    font-size: 1.5rem;
}

.f-text {
    display: flex;
    flex-direction: column;
}

.f-text strong {
    font-size: 0.95rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.f-text small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Separator Line */
.separator-line {
    position: relative;
    text-align: center;
    margin: 2rem 0 3rem;
}

.separator-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(21, 76, 121, 0.2);
    border-top: 1px dashed rgba(21, 76, 121, 0.4);
    z-index: 1;
}

.separator-line span {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.9rem;
    letter-spacing: 1px;
    /* Pseudo máscara de color claro basado en el diseño */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Content */
.content-section {
    flex-grow: 1;
}

.intro-text,
.selection-banner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.intro-text h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.intro-text p {
    color: var(--text-main);
    font-size: 1rem;
}

/* Grid de Tarjetas */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.client-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f9 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(21, 76, 121, 0.05), inset 0 2px 4px rgba(255,255,255,1);
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(21, 76, 121, 0.12), inset 0 0 0 2px var(--primary-green);
}

/* Icono corporativo de la tarjeta */
.client-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    width: 300px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 5px;
}

.client-card:hover .client-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(138, 198, 64, 0.3);
    border-color: rgba(138, 198, 64, 0.5);
}

.client-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.client-details p {
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .main-hero {
        flex-direction: column;
        text-align: center;
    }

    .features-pill {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-divider {
        width: 100%;
        height: 1px;
    }

    .footer-links {
        gap: 1rem;
    }
}