/* Extraído de home.blade.php — CSS propio de esa vista */
/* ----------------------------------------------------------------
   RESET LOCAL  (no rompe Tailwind, sólo aplica dentro de .ffyh-*)
   ---------------------------------------------------------------- */
.ffyh-page *, .ffyh-page *::before, .ffyh-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.ffyh-page { font-family: 'Inter', sans-serif; }

/* ================================================================
   HERO
   ================================================================ */
.ffyh-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

/* --- Slides de fondo --- */
.ffyh-slides { position: absolute; inset: 0; z-index: 0; }

.ffyh-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.3s ease-in-out;
    animation: ffyhKenBurns 9s ease-in-out infinite alternate;
}
.ffyh-slide.active { opacity: 1; }

@keyframes ffyhKenBurns {
    from { transform: scale(1);    transform-origin: center center; }
    to   { transform: scale(1.08); transform-origin: 55% 45%; }
}

/* Degradado oscuro sobre el carrusel */
.ffyh-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(40, 74, 116, 0.70) 0%,
        rgba(40, 74, 116, 0.85) 55%,
        rgba(40, 74, 116, 0.95) 100%
    );
}

/* --- Dots del carrusel --- */
.ffyh-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.ffyh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s;
}
.ffyh-dot.active { background: #fff; transform: scale(1.35); }

/* --- Contenido del hero --- */
.ffyh-hero-inner {
    position: relative;
    z-index: 5;
    max-width: 720px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

.ffyh-hero-label {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 1.25rem;
    display: block;
}

.ffyh-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
    min-height: 2.5em;
}

/* Cursor parpadeante del typing */
#ffyhTyping::after {
    content: '|';
    animation: ffyhBlink .7s step-end infinite;
    color: #7ab3e0;
}
@keyframes ffyhBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.ffyh-hero-sub {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
    margin-bottom: 2rem;
    display: block;
}

/* --- Buscador --- */
.ffyh-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 40px;
    padding: 6px 6px 6px 18px;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto 1rem;
}
.ffyh-search-icon {
    width: 18px;
    height: 18px;
    color: #888;
    flex-shrink: 0;
    display: block;
}
.ffyh-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1a3a5c;
    background: transparent;
    font-family: inherit;
}
.ffyh-search button {
    background: #1a3a5c;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}
.ffyh-search button:hover { background: #0f2740; }

/* --- Tags rápidos --- */
.ffyh-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.ffyh-tag {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    text-decoration: none;
    transition: background .15s;
}
.ffyh-tag:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* --- CTA principal del hero --- */
.ffyh-cta-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1a3a5c;
    border-radius: 30px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.ffyh-cta-hero:hover { background: #e8f0f8; transform: translateY(-2px); }

/* ================================================================
   LAYOUT GENERAL (secciones de contenido)
   ================================================================ */
.ffyh-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
.ffyh-divider {
    border: none;
    border-top: 0.5px solid #e2e8f0;
    max-width: 900px;
    margin: 0 auto;
}
.ffyh-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}
.ffyh-sec-header h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
}
.ffyh-sec-header a {
    font-size: 13px;
    color: #185fa5;
    text-decoration: none;
}

/* ================================================================
   GRIDS
   ================================================================ */
.ffyh-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ffyh-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

/* ================================================================
   CARDS — INVESTIGADORES
   ================================================================ */
.ffyh-card {
    background: #fff;
    border: 0.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color .15s;
}
.ffyh-card:hover { border-color: #b8c8d8; }

.ffyh-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}
.ffyh-av-blue   { background: #e6f1fb; color: #0c447c; }
.ffyh-av-teal   { background: #e1f5ee; color: #085041; }
.ffyh-av-coral  { background: #faece7; color: #712b13; }
.ffyh-av-purple { background: #eeedfe; color: #3c3489; }

.ffyh-card h3   { font-size: 14px; font-weight: 500; color: #1a202c; margin-bottom: 2px; }
.ffyh-card-meta { font-size: 12px; color: #64748b; margin-bottom: 6px; }

/* ================================================================
   BADGES
   ================================================================ */
.ffyh-badge   { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 12px; }
.ffyh-b-blue  { background: #e6f1fb; color: #185fa5; }
.ffyh-b-teal  { background: #e1f5ee; color: #0f6e56; }
.ffyh-b-amber { background: #faeeda; color: #854f0b; }
.ffyh-b-coral { background: #faece7; color: #993c1d; }
.ffyh-b-purple{ background: #eeedfe; color: #534ab7; }

/* ================================================================
   CARDS — CENTROS
   ================================================================ */
.ffyh-center-card {
    background: #fff;
    border: 0.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}
.ffyh-center-card h3 { font-size: 14px; font-weight: 500; color: #1a202c; margin-bottom: 4px; }

.ffyh-icon-big {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.ffyh-ic-blue   { background: #e6f1fb; color: #185fa5; }
.ffyh-ic-teal   { background: #e1f5ee; color: #0f6e56; }
.ffyh-ic-purple { background: #eeedfe; color: #534ab7; }
.ffyh-ic-amber  { background: #faeeda; color: #854f0b; }


/* ================================================================
   EVENTOS
   ================================================================ */
.ffyh-events-list { display: flex; flex-direction: column; gap: 12px; }

.ffyh-event-card {
    background: #fff;
    border: 0.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ffyh-event-date {
    min-width: 44px;
    text-align: center;
    border-radius: 8px;
    padding: 6px 4px;
    background: #e6f1fb;
    flex-shrink: 0;
}
.ffyh-event-date .ffyh-day   { display: block; font-size: 20px; font-weight: 500; color: #185fa5; line-height: 1; }
.ffyh-event-date .ffyh-month { display: block; font-size: 11px; color: #185fa5; text-transform: uppercase; }
.ffyh-event-card h3           { font-size: 14px; font-weight: 500; color: #1a202c; margin-bottom: 2px; }
.ffyh-empty-hint               { font-size: 13px; color: #64748b; font-style: italic; margin-top: 1rem; }

/* ================================================================
   CTA BANNER (login / dashboard)
   ================================================================ */
.ffyh-cta-banner {
    background: #284a74;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;

    /* 🔑 Agregá estas 3 líneas para alinear el botón abajo */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ffyh-cta-banner h2 { color: #fff; font-size: 1.2rem; font-weight: 500; margin-bottom: .5rem; }
.ffyh-cta-banner p  {
    color: #a8c8e8;
    font-size: 14px;
    margin-bottom: 1.25rem;

    /* 🔑 Agregá esto para que el párrafo empuje el botón hacia abajo */
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ffyh-btn {
    display: inline-block;
    background: #fff;
    color: #1a3a5c;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}
.ffyh-btn:hover { background: #e8f0f8; }

.ffyh-btn-ghost {
    background: transparent;
    color: #a8c8e8;
    border: 0.5px solid rgba(255,255,255,.3);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    display: inline-block;
    margin-top: 0.75rem;
}
.ffyh-btn-ghost:hover { background: rgba(255,255,255,.1); }

    .ffyh-section { max-width: 1200px; }
    .ffyh-grid-6 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
    .ffyh-grid-6 .ffyh-card {
        flex: 0 1 250px;
    }
    @media (max-width: 600px) {
        .ffyh-grid-6 .ffyh-card {
            flex-basis: 100%;
        }
    }

/* ================================================================
   ACCESOS RÁPIDOS — cards bajo el hero (colores vivos, más angostas)
   ================================================================ */
.ffyh-section--accesos {
    max-width: 980px;
    padding: 2rem 1.5rem;
}

.ffyh-section--accesos .ffyh-grid-6 { gap: 18px; }
.ffyh-section--accesos .ffyh-grid-6 .ffyh-card { flex: 0 1 205px; }

.ffyh-card-acceso {
    --acceso-c1: #2f9df2;
    --acceso-c2: #0c447c;
    border-radius: 16px;
    padding: 1.5rem 1rem 1.25rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .15s;
}

.ffyh-card-acceso:hover {
    border-color: #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    transform: translateY(-4px);
}

.ffyh-card-acceso h3 { transition: color .15s; }
.ffyh-card-acceso:hover h3 { color: var(--acceso-c2); }

.ffyh-acceso-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--acceso-c1), var(--acceso-c2));
    box-shadow: 0 8px 16px rgba(15, 23, 42, .18);
    transition: transform .2s ease;
}

.ffyh-card-acceso:hover .ffyh-acceso-icon { transform: scale(1.1) rotate(-4deg); }
.ffyh-acceso-icon svg { width: 24px; height: 24px; }

/* Variantes de color */
.ffyh-ac-azul    { --acceso-c1: #2f9df2; --acceso-c2: #0c447c; }
.ffyh-ac-violeta { --acceso-c1: #8b5cf6; --acceso-c2: #4c1d95; }
.ffyh-ac-verde   { --acceso-c1: #19c58d; --acceso-c2: #065f46; }
.ffyh-ac-fuccia  { --acceso-c1: #f45cae; --acceso-c2: #9d174d; }

@media (max-width: 600px) {
    .ffyh-section--accesos .ffyh-grid-6 .ffyh-card {
        flex-basis: 100%;
    }
}

/* Grid de 3 tarjetas lado a lado en desktop, apiladas en mobile */
.ffyh-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .ffyh-cta-grid {
        grid-template-columns: 1fr;
    }
}
