/* Registro Social de Hogares — mismo lenguaje visual que Acción Climática (accion_climatica.css). */
:root {
    --rsh-azul: #0f1131;
    --rsh-azul-medio: #1b2a5c;
    --rsh-petroleo: #0b6a87;
    --rsh-lima: #a6ce39;
    --rsh-verde: #527323;
    --rsh-crema: #f6f8f2;
    --rsh-tinta: #0f1131;
    --rsh-gris: #4f5d6f;
    --rsh-linea: #dfe5ec;
    --rsh-blanco: #ffffff;
    --rsh-sombra: 0 22px 60px rgba(15, 17, 49, 0.12);
}

.rsh-pagina {
    background: var(--rsh-blanco);
    color: var(--rsh-tinta);
    font-family: 'Outfit', sans-serif;
    overflow-x: clip;
}

.rsh-pagina h1, .rsh-pagina h2, .rsh-pagina h3, .rsh-pagina a, .rsh-pagina p { font-family: 'Outfit', sans-serif; }

.rsh-contenedor {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Hero: azul institucional con la ilustración de la plaza de Quillota como horizonte. */
.rsh-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    color: var(--rsh-blanco);
    background:
        url('../img/plaza-panoramica-quillota.png') center bottom -64px / min(1100px, 96%) auto no-repeat,
        radial-gradient(ellipse at 85% 30%, rgba(11, 106, 135, 0.55) 0%, transparent 55%),
        linear-gradient(160deg, var(--rsh-azul) 0%, var(--rsh-azul-medio) 100%);
}

.rsh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 17, 49, 0.35) 100%);
    pointer-events: none;
}

.rsh-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--rsh-lima), #4e9b58, var(--rsh-petroleo));
}

.rsh-hero-contenido {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr);
    gap: 64px;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 250px;
}

.rsh-etiqueta,
.rsh-sobretitulo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--rsh-lima);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.rsh-sobretitulo { color: var(--rsh-verde); margin-bottom: 12px; }

.rsh-hero h1 {
    max-width: 760px;
    margin: 18px 0 22px;
    color: var(--rsh-blanco);
    font-size: clamp(3rem, 6.2vw, 5.6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
}

.rsh-hero h1 span { display: block; color: var(--rsh-lima); }

.rsh-pagina .rsh-hero-bajada {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.65;
}

.rsh-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.rsh-boton {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rsh-boton:hover { transform: translateY(-2px); }
.rsh-pagina .rsh-boton-principal, .rsh-pagina .rsh-boton-principal:visited { background: var(--rsh-lima); color: var(--rsh-azul); }
.rsh-pagina .rsh-boton-principal:hover { background: #b7db54; color: var(--rsh-azul); }
.rsh-pagina .rsh-boton-claro, .rsh-pagina .rsh-boton-claro:visited { border-color: rgba(255, 255, 255, 0.58); color: var(--rsh-blanco); background: rgba(255, 255, 255, 0.08); }
.rsh-pagina .rsh-boton-claro:hover { background: var(--rsh-blanco); color: var(--rsh-azul); }
.rsh-pagina .rsh-boton-azul, .rsh-pagina .rsh-boton-azul:visited { background: var(--rsh-azul); color: var(--rsh-blanco); }
.rsh-pagina .rsh-boton-azul:hover { background: var(--rsh-petroleo); color: var(--rsh-blanco); }
.rsh-pagina .rsh-boton-borde, .rsh-pagina .rsh-boton-borde:visited { border-color: var(--rsh-azul); color: var(--rsh-azul); background: transparent; }
.rsh-pagina .rsh-boton-borde:hover { background: var(--rsh-azul); color: var(--rsh-blanco); }

.rsh-pagina a:focus-visible { outline: 3px solid var(--rsh-lima); outline-offset: 4px; }

/* Tarjeta de identidad del hero, como .accion-identidad. */
.rsh-identidad {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(15, 17, 49, 0.72);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.rsh-identidad-logo {
    padding: 22px 26px;
    border-radius: 14px;
    background: var(--rsh-blanco);
}

.rsh-identidad-logo img { display: block; width: 100%; height: auto; max-height: 150px; object-fit: contain; }

.rsh-datos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.rsh-dato {
    padding: 14px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.rsh-dato strong, .rsh-dato span { display: block; }
.rsh-dato strong { color: var(--rsh-lima); font-size: 1.35rem; line-height: 1.1; }
.rsh-dato span { margin-top: 5px; color: rgba(255, 255, 255, 0.72); font-size: 0.72rem; line-height: 1.25; }

/* Navegación interna fija, como .accion-navegacion. */
.rsh-navegacion {
    position: sticky;
    top: 91px;
    z-index: 50;
    background: var(--rsh-azul);
    box-shadow: 0 10px 24px rgba(15, 17, 49, 0.18);
}

.rsh-navegacion-interior {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.rsh-navegacion-interior::-webkit-scrollbar { display: none; }

.rsh-pagina .rsh-navegacion a, .rsh-pagina .rsh-navegacion a:visited {
    flex: 0 0 auto;
    padding: 17px 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.87rem;
    font-weight: 800;
    text-decoration: none;
}

.rsh-pagina .rsh-navegacion a:hover { color: var(--rsh-lima); }

/* Secciones */
.rsh-seccion { padding: 96px 0; scroll-margin-top: 150px; }
.rsh-seccion-clara { background: var(--rsh-crema); }

.rsh-pagina h2 {
    margin: 0 0 18px;
    color: var(--rsh-azul);
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.rsh-pagina h3 { margin: 0 0 10px; color: var(--rsh-azul); font-size: 1.28rem; font-weight: 800; line-height: 1.2; }
.rsh-pagina p, .rsh-pagina li { color: var(--rsh-gris); font-size: 1.04rem; line-height: 1.65; }

.rsh-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 40px;
}

.rsh-intro h2 { margin-bottom: 0; }
.rsh-intro-texto { margin: 0; font-size: 1.12rem; }

.rsh-grilla {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.rsh-tarjeta {
    padding: 30px 28px;
    border: 1px solid var(--rsh-linea);
    border-radius: 18px;
    background: var(--rsh-blanco);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rsh-tarjeta:hover { transform: translateY(-4px); box-shadow: var(--rsh-sombra); }
.rsh-tarjeta p { margin: 0; }

.rsh-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #eef6dc;
    color: var(--rsh-verde);
    font-size: 1.3rem;
}

/* Trámites: pasos numerados */
.rsh-pasos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.rsh-paso {
    position: relative;
    padding: 30px 28px 28px;
    border-radius: 18px;
    background: var(--rsh-blanco);
    box-shadow: 0 1px 0 var(--rsh-linea), 0 10px 30px rgba(15, 17, 49, 0.06);
    border-top: 5px solid var(--rsh-lima);
}

.rsh-paso-numero {
    display: block;
    margin-bottom: 14px;
    color: var(--rsh-petroleo);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.rsh-paso p { margin: 0; }

.rsh-aviso {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 30px;
    padding: 26px 30px;
    border-radius: 18px;
    background: var(--rsh-blanco);
    border: 1px solid var(--rsh-linea);
}

.rsh-aviso p { margin: 0; }
.rsh-aviso p i { color: var(--rsh-petroleo); margin-right: 6px; }
.rsh-aviso .rsh-botones { margin-top: 0; justify-content: flex-end; }

/* Atención */
.rsh-contacto {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto auto;
    gap: 18px 36px;
    align-items: center;
    margin: 30px 0 34px;
    padding: 22px 28px;
    border-radius: 18px;
    background: var(--rsh-azul);
    color: var(--rsh-blanco);
}

.rsh-contacto-equipo { display: flex; align-items: center; gap: 16px; line-height: 1.55; }
.rsh-contacto-equipo .rsh-icono { margin: 0; background: rgba(166, 206, 57, 0.16); color: var(--rsh-lima); }
.rsh-contacto-equipo span { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.rsh-contacto-dato { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rsh-contacto-dato i { color: var(--rsh-lima); }
.rsh-pagina .rsh-contacto a, .rsh-pagina .rsh-contacto a:visited { color: var(--rsh-blanco); text-decoration: none; overflow-wrap: anywhere; }
.rsh-pagina .rsh-contacto a:hover { color: var(--rsh-lima); }

.rsh-oficina {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--rsh-linea);
    border-radius: 18px;
    background: var(--rsh-blanco);
}

.rsh-oficina-principal { border: 2px solid var(--rsh-lima); background: #fbfdf5; }
.rsh-oficina-marca { align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 99px; background: var(--rsh-lima); color: var(--rsh-azul); font-size: 0.72rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.rsh-oficina-direccion { margin: 0 0 12px; font-weight: 600; color: var(--rsh-azul); }
.rsh-oficina-direccion i { color: var(--rsh-petroleo); margin-right: 4px; }
.rsh-oficina ul { margin: 0 0 18px; padding: 0; list-style: none; }
.rsh-oficina li { font-size: 0.97rem; }
.rsh-oficina li i { color: var(--rsh-verde); margin-right: 6px; }
.rsh-pagina .rsh-mapa, .rsh-pagina .rsh-mapa:visited { margin-top: auto; align-self: flex-start; color: var(--rsh-petroleo); font-weight: 800; text-decoration: none; }
.rsh-pagina .rsh-mapa:hover { color: var(--rsh-azul); text-decoration: underline; }

/* Canales nacionales */
.rsh-canales {
    position: relative;
    padding: 80px 0;
    color: var(--rsh-blanco);
    background: linear-gradient(120deg, var(--rsh-azul) 0%, var(--rsh-azul-medio) 60%, var(--rsh-petroleo) 140%);
    scroll-margin-top: 150px;
}

.rsh-canales::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--rsh-lima), #4e9b58, var(--rsh-petroleo));
}

.rsh-canales-interior { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 48px; align-items: center; }
.rsh-pagina .rsh-canales h2 { color: var(--rsh-blanco); margin-top: 12px; }
.rsh-pagina .rsh-canales p { color: rgba(255, 255, 255, 0.82); margin: 0; }
.rsh-pagina .rsh-canales p a, .rsh-pagina .rsh-canales p a:visited { color: var(--rsh-lima); }
.rsh-telefonos { display: grid; gap: 12px; }
.rsh-pagina .rsh-telefonos a, .rsh-pagina .rsh-telefonos a:visited {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 24px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--rsh-blanco); font-size: 1.6rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.rsh-pagina .rsh-telefonos a:hover { background: var(--rsh-lima); color: var(--rsh-azul); }
.rsh-telefonos i { font-size: 1.1rem; color: var(--rsh-lima); }
.rsh-telefonos a:hover i { color: var(--rsh-azul); }

.rsh-lista-telefonos { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rsh-lista-telefonos a { white-space: nowrap; }
.rsh-lista-telefonos a + a::before { content: "·"; margin-right: 14px; color: var(--rsh-lima); }

@media (max-width: 991px) {
    .rsh-hero { min-height: 0; }
    .rsh-hero-contenido { grid-template-columns: 1fr; gap: 36px; padding-top: 140px; padding-bottom: 170px; }
    .rsh-identidad { max-width: 520px; }
    .rsh-intro, .rsh-aviso, .rsh-canales-interior { grid-template-columns: 1fr; gap: 20px; }
    .rsh-aviso .rsh-botones { justify-content: flex-start; }
    .rsh-contacto { grid-template-columns: 1fr; }
    .rsh-grilla, .rsh-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rsh-navegacion { position: static; }
    .rsh-navegacion-interior { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .rsh-hero { background-size: 150% auto, auto, auto; background-position: center bottom -30px, center, center; }
    .rsh-hero-contenido { padding-top: 120px; padding-bottom: 120px; }
    .rsh-hero h1 { letter-spacing: -1.6px; font-size: 3rem; }
    .rsh-identidad { padding: 18px; }
    .rsh-dato strong { font-size: 1.1rem; }
    .rsh-grilla, .rsh-pasos { grid-template-columns: 1fr; }
    .rsh-seccion { padding: 64px 0; }
    .rsh-canales { padding: 60px 0; }
    .rsh-pagina .rsh-telefonos a { font-size: 1.35rem; }
    .rsh-boton { width: 100%; }
    .rsh-lista-telefonos a + a::before { content: none; }
    .rsh-contacto-dato { align-items: flex-start; }
}
