/*
 * Lo que solo tiene la portada, encima de publico.css: los tres logos sin encabezado, los siete
 * programas y las orillas que caen. Marino sobre el fondo; --texto-suave, solo dentro de las tarjetas.
 */

body {
    color: var(--texto); line-height: 1.55;
    background:
        radial-gradient(52% 46% at 50% 36%, rgb(255 255 255 / .75), transparent 100%) fixed,
        radial-gradient(95% 85% at 50% 38%, transparent 55%, rgb(94 78 51 / .2) 100%) fixed,
        url("../images/publico/lino.webp") fixed;
}
/* Aquí los hexágonos se ven más: nada de texto suave ni enlaces de acento encima. */
body::before { opacity: .75; }
main { padding-top: 1.25rem; }
.contenedor { max-width: 80rem; }
a { color: inherit; }
:focus-visible { outline-color: currentColor; }

.inicio-logos { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: .75rem; }
.inicio-logos img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.inicio-msm { height: clamp(2.75rem, 6vw, 5.5rem); }
/* Las franjas son parte del logo: la de arriba sale del borde de la página, como la placa de antes. */
.inicio-hadassah { justify-self: end; margin-top: -1.25rem; height: clamp(5.5rem, 11vw, 10rem); }
.inicio-logos .inicio-zug { width: clamp(10.5rem, 32vw, 31rem); height: auto; }
@media (min-width: 24rem) { .inicio-logos .inicio-zug { min-width: 13rem; } }

.inicio-cabeza { margin-top: 1.25rem; text-align: center; }
.inicio-cabeza h1 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 400; line-height: 1.15; }
.inicio-cabeza p { margin-top: .5rem; text-wrap: balance; }

/* Tres columnas si caben, dos en los teléfonos más angostos. */
.inicio-programas { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(6.5rem, 30%), 1fr)); gap: .75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.inicio-programa {
    display: grid; justify-items: center; align-content: center; gap: .125rem; padding: 1rem .375rem; text-align: center;
    background: var(--zug-blanco); border: 1px solid var(--linea); border-radius: 16px;
    box-shadow: var(--sombra-tarjeta);
}
.inicio-programa h2 { font-size: 1.0625rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.inicio-programa p { font-size: .875rem; line-height: 1.3; color: var(--texto-suave); }
.inicio-icono { display: block; width: 4rem; height: 4rem; margin-bottom: .5rem; stroke: none; filter: drop-shadow(0 6px 8px rgb(26 35 45 / .3)); }
.inicio-anillo { fill: var(--zug-verde); }
.inicio-relleno { fill: var(--zug-azul); }
.inicio-trazo { fill: none; stroke: var(--zug-blanco); stroke-width: 1.5; }

.inicio-activo { grid-column: 1 / -1; align-content: stretch; justify-items: stretch; padding: 0; background: none; border: 0; box-shadow: none; }
.inicio-activo a {
    display: grid; justify-items: center; align-content: center; gap: .125rem; padding: 1.25rem .5rem;
    color: var(--zug-blanco); text-decoration: none; border-radius: 16px;
    background: linear-gradient(160deg, var(--boton), var(--boton-hondo));
    box-shadow: 0 6px 12px rgb(26 35 45 / .22), 0 26px 44px -10px rgb(26 35 45 / .55);
    transition: transform 400ms cubic-bezier(.16, 1, .3, 1);
}
.inicio-activo a:hover { transform: translateY(-5px); }
.inicio-activo a:focus-visible { outline-color: var(--texto); border-radius: 16px; }
.inicio-activo .inicio-anillo { fill: var(--zug-blanco); }
.inicio-activo .inicio-icono { width: 4.75rem; height: 4.75rem; }
.inicio-activo h2 { font-size: 1.25rem; color: var(--zug-blanco); }
.inicio-activo p { display: inline-flex; align-items: center; gap: .375rem; font-weight: 600; color: var(--superficie); }
.inicio-activo p svg { width: 1rem; height: 1rem; transition: transform 400ms cubic-bezier(.16, 1, .3, 1); }
.inicio-activo a:hover p svg { transform: translateX(4px); }

/* La descripción del programa: con el puntero o el foco de teclado. En táctil no hay hover: el toque va a ¿Qué es?, que abre con el mismo texto. */
.inicio-activo { position: relative; }
.inicio-popover {
    position: absolute; z-index: 2; top: calc(100% + .75rem); left: 50%; translate: -50% 0;
    width: min(22rem, calc(100vw - 2rem)); padding: 1rem 1.25rem;
    font-size: .9375rem; line-height: 1.5; text-align: left; color: var(--texto);
    background: var(--zug-blanco); border: 1px solid var(--linea); border-radius: 16px; box-shadow: var(--sombra-tarjeta);
    visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 200ms;
}
/* El puente sobre el hueco: el puntero llega a la tarjeta sin que se cierre. */
.inicio-popover::before { content: ""; position: absolute; inset: -.75rem 0 100%; }
.inicio-popover::after {
    content: ""; position: absolute; top: -7px; left: calc(50% - 6px); width: 12px; height: 12px; rotate: 45deg;
    background: var(--zug-blanco); border-top: 1px solid var(--linea); border-left: 1px solid var(--linea);
}
.inicio-popover .antetitulo { display: block; margin-bottom: .375rem; }
.inicio-activo:not(.sin-popover):has(a:focus-visible) .inicio-popover { visibility: visible; opacity: 1; }
@media (hover: hover) {
    .inicio-activo:not(.sin-popover):hover .inicio-popover { visibility: visible; opacity: 1; }
}

.inicio-acceso { display: flex; justify-content: center; margin-top: 1.75rem; }
.inicio-acceso a {
    display: inline-flex; align-items: center; min-height: 48px; padding: .625rem 1.5rem; font-weight: 600; text-decoration: none;
    background: var(--zug-blanco); border: 1px solid var(--linea); border-radius: 999px;
    box-shadow: var(--sombra-baja); transition: border-color 200ms ease;
}
.inicio-acceso a:hover { border-color: var(--texto); }

.inicio-pie { padding-block: 1.5rem; }
.inicio-pie-fila { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.inicio-enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; font-size: .9375rem; }
.inicio-enlaces a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.inicio-enlaces a:hover { text-decoration: underline; }
.inicio-contacto { display: flex; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.inicio-contacto a {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--zug-blanco); background: var(--zug-azul);
    box-shadow: 0 6px 12px -4px rgb(26 35 45 / .5); transition: transform 300ms cubic-bezier(.16, 1, .3, 1);
}
.inicio-contacto a:hover { transform: translateY(-2px); }
.inicio-contacto svg { stroke-width: 1.5; }
.inicio-credito { font-size: .8125rem; }

/* En móvil, los programas que aún no abren ocupan menos: el acceso queda más cerca. */
@media (max-width: 59.99rem) {
    .inicio-programa:not(.inicio-activo) { padding: .75rem .25rem; }
    .inicio-programa:not(.inicio-activo) .inicio-icono { width: 3rem; height: 3rem; margin-bottom: .375rem; }
}

@media (min-width: 60rem) {
    .inicio-logos .inicio-zug { margin-top: 5rem; }
    .inicio-programas { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .875rem; margin-top: 2rem; }
    .inicio-programa:not(.inicio-activo) { padding-block: 1.25rem; }
    .inicio-activo { grid-column: auto; margin-block: -.625rem; }
    .inicio-icono { width: 4.5rem; height: 4.5rem; }
    .inicio-activo .inicio-icono { width: 5.25rem; height: 5.25rem; }
    /* Couples es la primera columna: la tarjeta sale de su orilla izquierda, con la flecha bajo el programa. */
    .inicio-popover { left: 0; translate: none; }
    .inicio-popover::after { left: 3.5rem; }
    .inicio-pie-fila { grid-template-columns: 1fr auto; justify-items: start; align-items: center; text-align: left; }
    .inicio-contacto { justify-self: end; }
    .inicio-credito { grid-column: 1 / -1; justify-self: center; }
}
