/* Landing corporativa Sumaia */
.landing-body { background: #fff; }

.landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-block-end: 1px solid var(--color-border);
}
.landing-nav { display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding-block: 0.5rem; }
/* Identidad corporativa: logo protagonista */
.landing-header .brand-img { height: 62px; width: auto; }
.landing-menu { display: flex; align-items: center; gap: 1.4rem; }
.landing-menu > a, .menu-item > a { color: var(--color-text); text-decoration: none; font-weight: 600; }
.landing-menu > a:hover, .menu-item > a:hover { color: var(--color-primary); }
.landing-menu > a.btn-nav, .btn-nav { color: #fff; }

.menu-item.has-dropdown { position: relative; }
.menu-item .dropdown {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(16, 26, 51, 0.12);
    padding: 0.5rem 0;
    min-width: 260px;
}
.menu-item.has-dropdown:hover .dropdown,
.menu-item.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
}
.dropdown a:hover { background: var(--color-bg); color: var(--color-primary); }
.dropdown-icon { width: 22px; height: 22px; }

/* Hero con degradado animado (movimiento lento y continuo) */
.landing-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg,
        #101a33, #1c3fae, #6a2fd8, #19c8b4, #1c3fae, #101a33);
    background-size: 300% 300%;
    animation: sumaia-gradient 18s ease-in-out infinite;
    padding-block: 7.5rem 8.5rem;
    text-align: center;
}
@keyframes sumaia-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .landing-hero { animation: none; }
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin-inline: auto; }
.landing-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.12;
    margin-block-end: 1rem;
    letter-spacing: -0.5px;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: 0.92; max-width: 660px; margin-inline: auto; }
.hero-ctas { margin-block-start: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero { background: #fff; color: #1c3fae; font-weight: 700; padding: 0.8rem 1.6rem; }
.btn-hero:hover { background: #e8f0fe; color: #101a33; }
.btn-hero-alt { background: transparent; border: 2px solid rgba(255,255,255,0.7); padding: 0.7rem 1.5rem; }
.btn-hero-alt:hover { background: rgba(255,255,255,0.12); }

/* Secciones de categoría: una sección completa por servicio */
.landing-section, .cat-section { padding-block: 4.5rem; }
.landing-section-alt { background: var(--color-bg); }
.landing-section-dark {
    background: #101a33;
    color: #fff;
}
.landing-section-dark .section-title { color: #fff; }
.section-title { font-size: 2rem; text-align: center; margin-block-end: 1.5rem; }

.cat-inner {
    display: grid;
    grid-template-columns: minmax(280px, 5fr) minmax(260px, 4fr);
    gap: 3rem;
    align-items: center;
}
.cat-icon { width: 72px; height: 72px; margin-block-end: 0.6rem; }
.cat-info h2 { font-size: 1.8rem; margin-block: 0.2rem 0.8rem; }
.cat-lead {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, #19c8b4, #2979ff, #8a3ffc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cat-text { font-size: 1.05rem; line-height: 1.7; }

.cat-products { display: flex; flex-direction: column; gap: 1rem; }
.product-tile {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(16, 26, 51, 0.10);
    border-color: var(--color-primary);
}
.product-tile-logo { max-height: 30px; max-width: 130px; display: block; margin-block-end: 0.4rem; }
.product-tile-name { font-weight: 700; font-size: 1.05rem; display: block; }
.product-tile-desc { color: var(--color-muted); font-size: 0.92rem; display: block; margin-block-start: 0.2rem; }
.product-tile-soon { border-style: dashed; color: var(--color-muted); text-align: center; }
.product-tile-soon .product-tile-name { color: var(--color-muted); font-weight: 600; }

.training-inner, .contact-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.training-text { font-size: 1.1rem; opacity: 0.92; }
.contact-form { text-align: start; margin-block-start: 2rem; }

.landing-footer {
    border-block-start: 1px solid var(--color-border);
    padding-block: 1.2rem;
    color: var(--color-muted);
}

/* El checkbox se oculta a la vista pero sigue siendo enfocable por teclado
   (con [hidden] el label no llegaría a activarlo). */
.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Botón hamburguesa: solo visible en móvil */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px 9px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}
.nav-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* Abierto: las tres barras se convierten en una X */
.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .cat-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .landing-hero { padding-block: 4.5rem 5.5rem; }

    /* El logo manda: se reduce lo justo y deja sitio al botón */
    .landing-nav { min-height: 72px; flex-wrap: wrap; gap: 0.5rem; }
    .landing-header .brand-img { height: clamp(38px, 11vw, 52px); }
    .nav-burger { display: flex; }

    /* El menú pasa a panel desplegable a ancho completo */
    .landing-menu {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-block: 0.5rem 1rem;
        border-block-start: 1px solid var(--color-border);
    }
    .nav-toggle:checked ~ .landing-menu { display: flex; }
    .landing-menu > a,
    .menu-item > a {
        display: block;
        padding: 0.85rem 0.25rem;
        border-block-end: 1px solid var(--color-border);
    }
    /* En táctil no hay :hover: el submenú de Productos se muestra siempre */
    .menu-item .dropdown,
    .menu-item.has-dropdown:hover .dropdown {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
        min-width: 0;
        padding: 0;
        background: var(--color-bg);
    }
    .menu-item > a::after { content: none; }
    .dropdown a { padding-inline-start: 1.5rem; }
    .landing-menu > a.btn-nav {
        margin-block-start: 0.9rem;
        text-align: center;
        border: 0;
        border-radius: var(--radius);
    }
    /* Objetivos táctiles cómodos también en el pie */
    .landing-footer .footer-row { flex-direction: column; gap: 0.8rem; text-align: center; }
    .lang-switcher a { padding: 0.35rem 0.5rem; }
}

/* FAQ */
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin-block-end: 0.7rem;
}
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin-block: 0.6rem 0.2rem; line-height: 1.65; }

/* Formación enriquecida */
.training-programs { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-block: 1.4rem; }
.training-chip {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.training-badges { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin-block-end: 1.4rem; }

/* Marketplace: sección destacada, distinta del resto de categorías */
.marketplace-section {
    position: relative;
    background:
        linear-gradient(rgba(16, 26, 51, 0.02), rgba(16, 26, 51, 0.02)),
        linear-gradient(135deg, rgba(25, 200, 180, 0.10), rgba(41, 121, 255, 0.10), rgba(138, 63, 252, 0.12));
    border-block: 3px solid transparent;
    border-image: linear-gradient(90deg, #19c8b4, #2979ff, #8a3ffc) 1;
}
.marketplace-section .cat-info h2 { font-size: 2.1rem; }
.marketplace-section .product-tile { border-color: rgba(41, 121, 255, 0.35); }
