/* ===== Página institucional ===== */

/* Quitar subrayado solo dentro de la página institucional (evita pisar otras páginas) */
.institucional-page a {
    text-decoration: none;
}

.institucional-page {
    background-color: #f4f4f4;
    color: #222;
}

/* destacamos el link "Institucional" en el menú */
.menu-link-active {
    color: var(--color-primario);
}

/* ===== Hero institucional ===== */

.hero-institucional {
    margin-top: var(--header-height); /* igual que el hero del index */
    background-color: #3f3f3f;
    color: #fff;
    padding: 2.5rem 0 2rem;
    text-align: center;
    position: relative;
}

.hero-institucional::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background-color: var(--color-primario);
}

.hero-institucional-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero-institucional h1 {
    color: var(--color-primario); /* Mismo amarillo */
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700; /* Mismo grosor que “NINGÚN TRABAJO…” */
    text-transform: uppercase; /* Todo mayúsculas */
    letter-spacing: 0.5px; /* Misma separación visual */
    margin-bottom: 1.2rem; /* Ajuste visual */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* Muy suave para evitar que se vea borroso */
}

.hero-institucional p {
    margin: 0 auto 0.75rem; /* 🔹 ahora el margin-bottom es 0.75rem ≈ 12px */
    padding: 0 10px;

    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    color: var(--color-claro);
    opacity: 0.95;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.35);
}

/* ===== Main institucional ===== */

.institucional-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 2rem 1rem 0;
}

.institucional-section {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.8rem;
    padding: 1.8rem 1.6rem;
}

.institucional-section h2 {
    text-align: left;
    margin-bottom: 0.8rem;
    letter-spacing: 0.03em;
}

.institucional-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primario);
    margin-top: 0.25rem;
}

.institucional-section h3 {
    font-size: 1.05rem;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.institucional-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.6rem;
    text-align: justify;
}

/* Nota de alcance / aclaración institucional */
.nota-alcance {
    margin-top: 1rem;
    padding-top: 0.6rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #666;
    border-top: 1px solid #e3e3e3;
}

/* ==========================================
   BULLETS PERSONALIZADOS (RED HOGAR)
   ========================================== */

/* reseteamos márgenes de las listas internas */
.rh-list,
.valores-lista,
.rh-list-check {
    list-style: none; /* sin bullet nativo */
    margin: 0.4rem 0 0.8rem 0;
    padding-left: 1.6rem; /* sangría uniforme */
    font-size: 0.95rem;
}

.rh-list li,
.valores-lista li,
.rh-list-check li {
    position: relative;
    margin-bottom: 0.45rem;
    line-height: 1.5;
}

/* Bullet propio Red Hogar: círculo amarillo con borde negro */
.rh-list li::before,
.valores-lista li::before,
.rh-list-check li::before {
    content: '';
    position: absolute;
    left: -1.15rem;
    top: 0.55rem;
    width: 9px;
    height: 9px;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><circle cx='5' cy='5' r='4' fill='%23febb17' stroke='%23000000' stroke-width='1'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ========================================== */
/* grid Misión / Visión */
/* ========================================== */

.institucional-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
}

.institucional-grid > div {
    padding: 0 0.5rem;
}

.institucional-grid p {
    text-align: justify;
}

.institucional-grid ul {
    text-align: left;
}

/* CTA PDF */

.cta-pdf {
    text-align: center;
}

.cta-pdf p {
    text-align: center;
    margin-bottom: 1rem;
}

.btn-pdf {
    display: inline-block;
    margin-top: 0.2rem;
}

/* ==========================================
   Pasos / Proceso (Cómo trabajamos)
   ========================================== */

.rh-steps {
    margin: 0.6rem 0 0.8rem 0;
    padding-left: 1.4rem;
    font-size: 0.95rem;
}

.rh-steps li {
    margin-bottom: 0.55rem;
    line-height: 1.55;
}

.rh-steps li::marker {
    font-weight: 700;
    color: var(--color-primario);
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
    .hero-institucional h1 {
        font-size: 1.6rem;
    }

    .hero-institucional p {
        font-size: 0.9rem;
    }
}

/* ===== Misión / Visión responsivo ===== */
@media (max-width: 900px) {
    .institucional-grid {
        grid-template-columns: 1fr; /* 👉 una sola columna */
        gap: 1.5rem;
    }

    /* separador suave entre Misión y Visión */
    .institucional-grid > div:first-child {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 1.2rem;
        margin-bottom: 0.8rem;
    }
}

/* ==========================================
   FOOTER OPTIMIZADO (Institucional)
   Nota: este CSS asume el footer nuevo con
   .footer-item / .footer-link / .footer-icon
   ========================================== */

.footer {
    background-color: #000;
    color: var(--color-claro);
    border-top: 3px solid var(--color-primario);
    font-family: var(--fuente-principal);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-logo {
    width: 140px;
    margin-bottom: 0.5rem;
}

/* Items (cada línea: ícono + texto) */
.footer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 0.95rem;
    color: #f4f4f4;
}

/* Link clickeable que envuelve icono + texto */
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f4f4f4; /* texto claro, no amarillo */
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
    opacity: 0.95;
}

/* Íconos */
.footer-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Solo si querés que el ícono quede amarillo sin cambiar el texto:
   descomentá este bloque (ideal para PNG monocromos) */
/*
.footer-icon {
    filter: brightness(0) saturate(100%) invert(77%) sepia(85%) saturate(748%)
            hue-rotate(356deg) brightness(103%) contrast(103%);
}
*/

/* Emojis (alineados como íconos) */
.footer-emoji {
    font-size: 18px;
    line-height: 1;
}

/* QR */
.footer-qr {
    margin-top: 0.8rem;
}

.qr-afip {
    width: 80px;
    height: auto;
    border: none;
    border-radius: 4px;
    background: #fff;
    padding: 4px;
    transition: transform 0.25s ease;
}

.qr-afip:hover {
    transform: scale(1.07);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

/* Links legales */
.footer-legal {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #aaa;
}

.footer-legal a {
    color: #aaa;
    text-decoration: none;
    margin: 0 5px;
}

.footer-legal a:hover {
    color: var(--color-primario);
    text-decoration: underline;
}

/* Pie inferior */
.footer-bottom {
    background-color: #111;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 1.5rem;
    border-top: 1px solid #222;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 0.5rem;
    }

    .footer-logo {
        width: 120px;
    }

    .qr-afip {
        width: 65px;
        padding: 3px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}
