/* ========================================
   FUNDACINE - WEB INSTITUCIONAL
   ======================================== */

:root {
    --background: #111111;
    --surface: #1b1b1b;
    --primary: #f0bc78;
    --text: #ffffff;
    --muted: #aaaaaa;
    --border: #303030;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 5px;
}

/* BARRA ADMINISTRATIVA */

.public-admin-bar {
    position: relative;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 5%;
    background: #242424;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.public-admin-bar span {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.public-admin-bar a:hover {
    color: var(--primary);
}

/* CABECERA */

.public-header {
    position: relative;
    z-index: 1000;
    background: var(--background);
}

.public-navigation {
    max-width: var(--container);
    margin: auto;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.public-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.public-logo img {
    display: block;
    width: 150px;
}

.public-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
}

.public-menu a {
    transition: color 0.2s ease;
}

.public-menu a:hover {
    color: var(--primary);
}

/* SELECTOR DE IDIOMA */

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.language-selector a {
    color: var(--muted);
}

.language-selector a.active {
    color: var(--primary);
    font-weight: 700;
}

.public-login {
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
}

/* CONTENIDO PRINCIPAL */

.public-main {
    flex: 1;
    min-width: 0;
}

/* CONTENIDO PROVISIONAL */

.public-fallback {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 80px 8%;
    background:
        radial-gradient(
            ellipse at 85% 30%,
            rgba(240, 188, 120, 0.12),
            transparent 50%
        ),
        var(--background);
}

.fallback-content {
    max-width: 900px;
    animation: fade-in 0.8s ease both;
}

.public-eyebrow {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.fallback-content h1 {
    font-size: clamp(38px, 7vw, 90px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 25px 0;
}

.fallback-content p {
    color: var(--muted);
    font-size: clamp(16px, 2vw, 21px);
}

/* ELEMENTOS DEL CONSTRUCTOR */

.fb-section {
    position: relative;
    width: 100%;
    padding: 70px 30px;
    background-position: center;
    background-size: cover;
}

.fb-container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.fb-columns {
    display: grid;
    gap: 30px;
    width: 100%;
}

.fb-cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.fb-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fb-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fb-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fb-column {
    min-width: 0;
}

.fb-heading {
    margin: 0 0 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

h1.fb-heading {
    font-size: clamp(36px, 6vw, 80px);
}

h2.fb-heading {
    font-size: clamp(28px, 4vw, 48px);
}

h3.fb-heading {
    font-size: 26px;
}

.fb-text {
    margin-bottom: 20px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.fb-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.fb-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    margin: 8px 8px 8px 0;
    background: var(--primary);
    color: var(--background);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.fb-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.fb-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 25px 0;
}

.fb-spacer {
    display: block;
    width: 100%;
}

/* FOOTER */

.public-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: var(--container);
    margin: auto;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-content p {
    color: var(--muted);
    font-size: 13px;
}

/* ANIMACIONES */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET */

@media (max-width: 1024px) {

    .fb-cols-4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .public-navigation {
        padding: 20px;
    }

    .public-menu {
        gap: 18px;
    }
}

/* CELULARES */

@media (max-width: 768px) {

    .public-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 20px 15px;
    }

    .public-logo img {
        width: 125px;
    }

    .public-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 13px;
    }

    .public-login {
        padding: 8px 12px;
    }

    .public-fallback {
        min-height: 65vh;
        padding: 60px 25px;
    }

    .fallback-content h1 {
        letter-spacing: -1px;
    }

    .public-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .fb-section {
        padding: 45px 20px;
    }

    .fb-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .fb-heading {
        overflow-wrap: anywhere;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}