/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* compensa el header sticky */
    /* overflow-x: hidden; */
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: #fff;
    color: #333;
    overflow-x: hidden;
}

.menu{
    line-height: 1.6;
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.header {
    width: 100%;
    background-color: #fff;
    z-index: 9;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    height: 64px;
}

.site-declaranet {
    margin: 0;
    line-height: 1;
}

.site-declaranet a {
    display: flex;
    align-items: center;
}

.site-declaranet img {
    height: 30px;
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #9b2247;
    font-size: 1.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    line-height: 1;
    transition: background-color 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus {
    background-color: #f0e0e6;
    outline: none;
}

.site-nav-logo {
    display: inline-block;
    flex-shrink: 0;
    width: 250px;
    height: 52px;
    background-image: url('../images/Logo-Buen-Gobierno.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

#navbarMain {
    /*background-color: #d4c19c;*/
    background-color: #9b2247;
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
}

#navbarMain ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#navbarMain a {
    /*color: #000;*/
    color: #fff;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    font-size: 25px;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

#navbarMain a:hover {
    background-color: #b82d5a;
    border-radius: 4px;
}


.banner-inicio {
    background-color: #272833;
    background-image: url('../images/banner_home.jpg');
    height: calc(100vh - 85px);
    min-height: 500px;
    background-attachment: fixed;
    background-position: 50%;
    background-size: cover;
    position: relative;
}

.banner-psp {
    background-color: #272833;
    background-image: url('../images/DSC_4088.jpg');
    min-height: 89vh;
    line-height: 1.6;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
}

.banner-asesoria {
    color: #fff;
    background-image: url('../images/busqueda.jpg');
    /* background-color: #1a0a14; */
    height: 30vh;
    min-height: 500px;
    line-height: 1.6;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    background-blend-mode: darken;
}


.fondoPagina {
    color: #333;
    background-image: url('../images/banner_home.jpg');
    height: 80vh;
    min-height: 800px;
    line-height: 1.6;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.titulo-declaracion {
    text-align: center;
    font-size: 60px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.75px;
    color: #fff;
    padding-top: 50px;
}

.titulo-declaracion img {
    display: block;
    margin: 10px auto 0;
    width: 50%;
    max-width: 100%;
    height: auto;
}

.goto-next {
    background-image: url('../images/arrow.svg');
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    height: 3.5em;
    width: 4em;
    display: block;
    position: absolute;
    left: 50%;
    top: 55%;
    margin: -.75em 0 0 -1em;
    border: 0;
    overflow: hidden;
    text-indent: 10em;
    white-space: nowrap;
}

/* .banner-firma {
    background-color: #f8f9fa;
    padding: 3em;
    position: relative;
    margin-top: 2em;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
} */
/* background-image: url('../images/DSC_3890.jpg'); */
.banner-firma {
    color: #fff;
    background-image: url('../images/DSC_3890.jpg');
    /* background-color: #1a0a14; */
    /* height: 30vh; */
    min-height: 500px;
    line-height: 1.6;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    background-blend-mode: darken;
}


h2.titulo-declara {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.75px;
    margin: 1em 0;
    color: #333;
}

.f-left {
    flex: 1;
}

.button-declara {
    border-radius: 4px;
    font-weight: 500;
    color: #fff;
    padding: 1em 1.5em;
    text-decoration: none;
    box-shadow: 0 4px 10px 0 rgba(157, 36, 73, .3);
    background-color: #e2103a;
}

h2.acerca-de {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.75px;
    margin: 1em 0;
    color: #fff;
    text-align: center;
}

h2.olvidaste-contrasenia{
    font-size: 36px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.75px;
    margin: 1em 0;
    color: #000;
    text-align: center;
}

h2.preguntas-frecuentes{
    font-size: 36px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.75px;
    margin: 1em 0;
    color: #000;
    text-align: center;
}

h2.psp {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.75px;
    margin: 1em 0;
    color: #fff;
    text-align: center;
}

h2.psp2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.75px;
    margin: 1em 0;
    color: #000;
    text-align: center;
}

h2.info {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.75px;
    margin: 1em 0;
    color: #000;
    text-align: center;
}

.pspo {
    color: #fff;
}

p {
    margin: 0 0 1.5em;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    color: #fff;
    text-align: justify;
}
p.olvidaste-contrasenia {
    margin: 0 0 1.5em;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    color: #000;
    text-align: justify;
}

p.preguntas-frecuentes {
    margin: 0 0 1.5em;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    color: #000;
    text-align: justify;
}

p.persona-serv {
    margin: 0 0 1.5em;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    color: #000;
    text-align: justify;
}

p.inf {
    margin: 0 0 1.5em;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    color: #fff;
    text-align: center;
}

p.tramitar-fiel {
    margin: 0 0 1.5em;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    color: #000;
    text-align: justify;
}

p.firma {
    margin: 0 0 1.5em;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    color: #000;
    text-align: justify;
}

p b,
p strong {
    font-weight: 700;
}

    .left-side-bar {
        width: 260px;
        flex-shrink: 0;
        position: sticky;
        top: 80px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(155, 34, 71, 0.12);
        border-top: 4px solid #9b2247;
        overflow: hidden;
        align-self: flex-start;
    }

    .sidebar-title {
        font-family: Montserrat, sans-serif;
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #9b2247;
        padding: 0.9rem 1.2rem 0.75rem;
        margin: 0;
        border-bottom: 1px solid #f0e0e6;
        background: #fdf4f6;
    }

    .left-side-bar a {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        color: #444;
        font-family: Roboto, sans-serif;
        font-size: 0.875rem;
        font-weight: 400;
        padding: 0.65rem 1.2rem;
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: background 0.18s ease, color 0.18s ease, border-left-color 0.18s ease;
        line-height: 1.35;
        word-break: break-word;
        border-bottom: 1px solid #f9f0f3;
    }

    .left-side-bar a i {
        margin-top: 2px;
        flex-shrink: 0;
        color: #c45878;
        font-size: 0.8rem;
        transition: color 0.18s;
    }

    .left-side-bar a:hover {
        background: #fdf4f6;
        color: #9b2247;
        border-left-color: #9b2247;
    }

    .left-side-bar a:hover i {
        color: #9b2247;
    }

    .left-side-bar a.active {
        background: #fbeaee;
        color: #9b2247;
        border-left-color: #9b2247;
        font-weight: 600;
    }

    .left-side-bar a.active i {
        color: #9b2247;
    }

    /* Layout de páginas de firma */
    .firma-layout {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        max-width: 1170px;
        margin: 2rem auto;
        padding: 0 15px;
    }

    .firma-article {
        flex: 1;
        min-width: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 16px rgba(0,0,0,0.06);
        padding: 2rem 2.5rem;
    }

    .firma-article header h1 {
        font-family: Montserrat, sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: #9b2247;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #f0e0e6;
    }

    .subpage-body {
        background: #f5f0f2;
    }


h3.inform {
    color: #b82d5a;
    text-align: center;
}

.pf {
    list-style: disc;
}

a{
    color: #ff0000;
}

ul {
    padding-left: 1.5em;
    padding-right: 1.5em;
    font-family: Roboto, sans-serif;
    text-align: justify;
    list-style: none;
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1170px;
    width: 100%;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 2em;
}

.col-lg-12 {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}

table {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #ddd;
  padding: 8px;
}

tr:nth-child(even){background-color: #f2f2f2;}

tr:hover {background-color: #ddd;}

th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #b82d5a;
  color: white;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav-logo {
        display: none;
    }

    #navbarMain {
        width: 100%;
        overflow: hidden;
    }

    #navbarMain ul {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    #navbarMain.nav-open ul {
        max-height: 500px;
    }

    #navbarMain a {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    #navbarMain {
        font-size: 1rem;
    }

    .banner-inicio {
        height: 60vh;
        min-height: 600px;
    }

    .titulo-declaracion {
        font-size: 28px;
    }

    .titulo-declaracion img {
        width: 70%;
    }

    .banner-firma {
        padding: 2em;
    }

    /* background-attachment:fixed no funciona en móvil — causa overflow */
    .banner-inicio,
    .banner-psp,
    .banner-asesoria,
    .banner-firma,
    .fondoPagina {
        background-attachment: scroll;
    }

    h2.titulo-declara {
        font-size: 28px;
    }

    .firma-layout {
        flex-direction: column;
        margin: 1rem auto;
    }

    .left-side-bar {
        width: 100%;
        position: static;
    }

    .firma-article {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .titulo-declaracion {
        font-size: 24px;
    }

    .titulo-declaracion img {
        width: 80%;
    }

    h2.titulo-declara {
        font-size: 24px;
    }

    .banner-firma {
        padding: 1em;
    }

    .row {
        flex-direction: column;
        gap: 1em;
    }

    .col-lg-12 {
        gap: 1em;
    }

    .button-declara {
        padding: 0.8em 1.2em;
        font-size: 0.9em;
    }

    #navbarMain {
        font-size: 1.2rem;
    }

    .f-left {
        max-width: 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    max-width: 900px;
    width: 90%;
    margin: auto;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #9b2247;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-header .close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-header .close:hover {
    color: #ccc;
}

.modal-body {
    padding: 0;
}

.modal-body iframe {
    display: block;
    width: 100%;
    height: 450px;
}

/* ── Toast: Aviso de Declaración de Modificación ── */
.toast-aviso {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 1100;
    background: linear-gradient(135deg, #9b2247 0%, #c0392b 100%);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(155, 34, 71, 0.4), 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 48px 26px 20px;
    max-width: 480px;
    width: calc(100% - 32px);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.4s ease;
    overflow: hidden;
}

/* Desktop: toast más grande */
@media (min-width: 769px) {
    .toast-aviso {
        max-width: 700px;
        padding: 26px 60px 34px 28px;
        gap: 20px;
        border-radius: 16px;
    }
}

.toast-aviso.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-aviso-icon {
    font-size: 2.1rem;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.92;
}

@media (min-width: 769px) {
    .toast-aviso-icon {
        font-size: 2.8rem;
    }
}

.toast-aviso-body {
    flex: 1;
    min-width: 0;
}

.toast-aviso-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 5px;
    color: #fff;
    text-align: left;
}

@media (min-width: 769px) {
    .toast-aviso-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
}

.toast-aviso-msg {
    font-family: 'Roboto', sans-serif;
    font-size: 0.97rem;
    line-height: 1.45;
    margin: 0;
    color: #fff;
    font-weight: 300;
    text-align: left;
}

@media (min-width: 769px) {
    .toast-aviso-msg {
        font-size: 1.18rem;
        line-height: 1.5;
    }
}

.toast-aviso-msg strong {
    font-weight: 700;
    color: #fff;
}

.toast-aviso-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.toast-aviso-close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.toast-aviso-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 14px 14px;
    width: 100%;
    transform-origin: left center;
}

.toast-aviso-progress.running {
    animation: toastProgressShrink 8s linear forwards;
}

@keyframes toastProgressShrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
    }
    
    .modal-body iframe {
        height: 250px;
    }
    
    .modal-header .modal-title {
        font-size: 14px;
    }
}

/* =====================================================
   MEJORAS VISUALES — SCROLL ANIMATIONS & LAYOUT
   ===================================================== */

/* ── Header scrolled shadow ── */
.menu.scrolled {
    box-shadow: 0 2px 18px rgba(0,0,0,0.13);
}

/* ── Hero overlay (subtle dark gradient on banner) ── */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(20,10,30,0.55) 0%,
        rgba(155,34,71,0.22) 60%,
        transparent 100%
    );
    pointer-events: none;
    /* z-index: 1; */
}
/* Cualquier elemento hermano después del overlay queda por encima */
/* .hero-overlay ~ * {
    position: relative;
    z-index: 2;
} */

/* ── Bounce animation for scroll arrow ── */
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(12px); }
}
.goto-next {
    animation: bounceDown 1.8s ease-in-out infinite;
}

/* ── Section base spacing ── */
section {
    padding: 5rem 0;
    position: relative; /* permite que .hero-overlay funcione en cualquier section */
}
.banner-inicio,
.banner-psp,
.section-preguntas-frecuentes,
.section-firma {
    padding: 0;
}

/* ── Alternating section backgrounds ── */
.section-light {
    background: #fdf6f8;
}
.section-alt {
    background: #f7f7f9;
}
.section-dark-gradient {
    background: linear-gradient(135deg, #1a0a14 0%, #6b1232 60%, #9b2247 100%);
}
#acerca-de {
    /* ══════════════════════════════════════════════════
       OPCIONES DE FONDO — descomenta la que quieran
       ══════════════════════════════════════════════════

       OPCIÓN A (original) — gradiente vino suave:
    background: linear-gradient(150deg, #1a0a14 0%, #9b2247 100%);

       OPCIÓN C — institucional oscuro, sin rojo:
    background: linear-gradient(160deg, #111827 0%, #1f2937 60%, #374151 100%);

       OPCIÓN D — azul marino + vino (más moderno):
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #6b1232 100%);
    ══════════════════════════════════════════════════ */

    /* OPCIÓN B ACTIVA — vino profundo con profundidad */
    background: linear-gradient(135deg, #0d0415 0%, #4a0e28 45%, #9b2247 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
/* Círculo difuminado decorativo — fondo */
#acerca-de::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226,16,58,0.13) 0%, transparent 65%);
    top: -200px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
}
#acerca-de .container {
    position: relative;
    z-index: 1;
}
#acerca-de h2.acerca-de {
    text-shadow: 0 2px 14px rgb(0, 0, 0);
}
#acerca-de p {
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 14px rgb(0, 0, 0);
}
#acerca-de a:not(.button-declara) {
    color: #ffdce8;
    text-underline-offset: 3px;
}
#acerca-de a:not(.button-declara):hover { color: #fff; }

/* Text colour overrides for light sections */
.section-light p,
.section-light p.inf,
.section-alt  p,
.section-alt  p.inf {
    color: #444;
}
.section-light h3.inform,
.section-alt  h3.inform {
    color: #9b2247;
}
.section-dark-gradient p,
.section-dark-gradient p.inf {
    color: #f0d8e2;
}
.section-dark-gradient h3.inform {
    color: #f7c0d0;
}
.section-dark-gradient a,
.section-dark-gradient a:visited {
    color: #f7c0d0;
}

/* ── Section title with animated underline ── */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: #e2103a;
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1) 0.25s;
}
.section-title.title-visible::after {
    transform: translateX(-50%) scaleX(1);
}
.light-title::after {
    background: #f7c0d0;
}

/* ── CARD SECTION (#declara) ── */
.section-cards {
    background: #fff;
    padding: 5rem 0 6rem;
}
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    color: #1a0a14;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    padding-bottom: 0.6rem;
}
.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: #e2103a;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    box-shadow: 0 4px 24px rgba(155,34,71,0.10);
    border: 1px solid #f0e0e6;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 40px rgba(155,34,71,0.22);
}
.card-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b2247, #e2103a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(226,16,58,0.30);
    flex-shrink: 0;
}
.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a0a14;
    margin: 0;
}
.card p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.card .button-declara {
    margin-top: 0.5rem;
    white-space: nowrap;
}

/* ── Improved button ── */
.button-declara {
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    color: #fff;
    padding: 0.8em 1.6em;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(226,16,58,0.35);
    background: linear-gradient(135deg, #c4103a, #e2103a);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-block;
}
.button-declara:hover {
    background: linear-gradient(135deg, #a50d2f, #c4103a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226,16,58,0.45);
    color: #fff;
}

/* ── Icon lists ── */
ul.icon-list {
    list-style: none;
    padding-left: 0;
}
ul.icon-list .pf {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.2s ease;
    border-radius: 6px;
    padding-left: 0.5rem;
}
ul.icon-list .pf:last-child { border-bottom: none; }
ul.icon-list .pf:hover { background: rgba(155,34,71,0.04); }
ul.icon-list .pf i {
    color: #9b2247;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 1rem;
}
ul.icon-list .pf a {
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 0.97rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}
ul.icon-list .pf a:hover { color: #9b2247; }

/* Dark section icon list overrides */
.section-dark-gradient ul.icon-list .pf a { color: #f0d8e2; }
.section-dark-gradient ul.icon-list .pf a:hover { color: #fff; }
.section-dark-gradient ul.icon-list .pf i { color: #f7c0d0; }
.section-dark-gradient ul.icon-list .pf { border-bottom-color: rgba(255,255,255,0.12); }

/* ── Navbar improvements ── */
#navbarMain a {
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2px;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: background-color 0.25s ease, transform 0.15s ease;
}
#navbarMain a:hover {
    background-color: #7d1b38;
    transform: translateY(-1px);
}

/* ── Section headings — info style override for new sections ── */
h2.info.section-title {
    display: block;
    text-align: center;
}

/* ── Footer ── */
.site-footer {
    background: #1a0a14;
    padding: 2rem 0;
    margin-top: 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #c9a0b0;
    margin: 0;
}
.footer-text a {
    color: #f7c0d0;
    text-decoration: none;
}
.footer-text a:hover { color: #fff; }

/* ── Responsive tweaks for new elements ── */
@media (max-width: 768px) {
    .section-cards { padding: 3rem 0 4rem; }
    .section-heading { font-size: 1.8rem; }
    .card { padding: 2rem 1.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}

/* =====================================================
   SECCIÓN INFORMACIÓN — docs grid
   ===================================================== */
.section-docs {
    background: #fdf6f8;
    /*background: linear-gradient(135deg, #0f0618 0%, #3d0d22 50%, #6b1232 100%);*/
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
/* Decoración geométrica — círculo desenfocado en fondo */
.section-docs::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155,34,71,0.07) 0%, transparent 70%);
    top: -120px;
    right: -100px;
    pointer-events: none;
}
.section-docs::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226,16,58,0.05) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}
.section-docs h2.info {
    color: #1a0a14;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

ul.docs-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}
ul.docs-grid li a {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ede0e5;
    border-left: 4px solid #9b2247;
    text-decoration: none;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 0.93rem;
    line-height: 1.5;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}
ul.docs-grid li a:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(155,34,71,0.12);
    border-left-color: #e2103a;
    color: #1a0a14;
}
ul.docs-grid .doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #9b2247, #e2103a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    ul.docs-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   SECCIÓN NORMATIVIDAD — fondo oscuro + cards
   ===================================================== */
.section-norma {
    background: linear-gradient(135deg, #0f0618 0%, #3d0d22 50%, #6b1232 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
/* Patrón decorativo — líneas diagonales CSS */
.section-norma::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 24px
    );
    pointer-events: none;
}
.section-norma h2.info {
    color: #fff;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}
.norma-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.norma-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    text-decoration: none;
    color: #f0d8e2;
    font-family: 'Roboto', sans-serif;
    font-size: 0.93rem;
    line-height: 1.65;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.norma-card:hover {
    background: rgba(226,16,58,0.18);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    color: #fff;
}
.norma-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(226,16,58,0.25);
    border: 1px solid rgba(226,16,58,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #f7c0d0;
    flex-shrink: 0;
}
.norma-arrow {
    font-size: 0.8rem;
    color: rgba(247,192,208,0.6);
    align-self: flex-end;
}
@media (max-width: 768px) {
    .norma-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   SECCIÓN FORMATOS DE APOYO
   ===================================================== */
.section-formatos {
    background: linear-gradient(180deg, #faf5f7 0%, #fff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
/* Acento decorativo superior */
.section-formatos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #9b2247, #e2103a, #9b2247);
}
.section-formatos h2.info {
    color: #1a0a14;
    margin-bottom: 2.5rem;
}

.formatos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.formato-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ede0e5;
    text-decoration: none;
    color: #1a0a14;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px rgba(155,34,71,0.07);
}
.formato-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(155,34,71,0.18);
}
.formato-card > i {
    font-size: 2.4rem;
    color: #9b2247;
    margin-bottom: 0.25rem;
}
.formato-card strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a0a14;
}
.formato-card > span {
    font-size: 0.82rem;
    color: #888;
    font-family: 'Roboto', sans-serif;
}
.formato-dl {
    margin-top: auto;
    background: linear-gradient(135deg, #9b2247, #e2103a) !important;
    color: #fff !important;
    padding: 0.5em 1.2em;
    border-radius: 20px;
    font-size: 0.82rem !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.formatos-nota {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: #fff8f9;
    border: 1px solid #f0d8e2;
    border-left: 4px solid #9b2247;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.8rem;
}
.formatos-nota i {
    color: #9b2247;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.formatos-nota p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}
.formatos-privacidad {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.formatos-privacidad a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #9b2247;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.formatos-privacidad a:hover { color: #e2103a; }
@media (max-width: 768px) {
    .formatos-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
    .formatos-privacidad { flex-direction: column; gap: 0.75rem; }
}

/* =====================================================
   CONTRASTE DE TEXTO — BANNERS CON IMAGEN DE FONDO
   Estos overrides garantizan legibilidad en las secciones
   oscuras sin importar la imagen detrás.
   ===================================================== */

/* ── h2.info es #000 globalmente; se corrige en banners oscuros ── */
#asesoria-soporte h2.info,
#firma-electronica h2.info,
#acerca-de h2.info,
#psp h2.info,
#psp h2.info {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

/* ── h3.inform es pink oscuro; se pierde sobre fotos ── */
#asesoria-soporte h3.inform,
#firma-electronica h3.inform {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 14px rgb(0, 0, 0);

}
#asesoria-soporte h3.inform a,
#firma-electronica h3.inform a {
    color: #ffdce8;
    transition: color 0.2s ease;
}
#asesoria-soporte h3.inform a:hover,
#firma-electronica h3.inform a:hover {
    color: #fff;
}

/* ── Párrafos y texto de contacto en banners ── */
#asesoria-soporte p.inf,
#firma-electronica p.inf {
    color: rgba(255,255,255,0.90);
    text-shadow: 0 2px 14px rgb(0, 0, 0);
}

/* ── Links sueltos dentro de firma-electronica ── */
#firma-electronica a:not(.button-declara) {
    color: #ffdce8;
}
#firma-electronica a:not(.button-declara):hover {
    color: #fff;
}

/* ── PSP: sección con foto + overlay — textos y links ── */
#psp h2.psp {
    text-shadow: 0 2px 14px rgb(0, 0, 0);
}
#psp h3.pspo { 
    color: #fff; 
    text-shadow: 0 2px 14px rgb(0, 0, 0);
}
#psp p.psp {
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 14px rgb(0, 0, 0);
}
#psp h3.psp {
    text-shadow: 0 2px 14px rgb(0, 0, 0);
}
#psp h3.psp a {
    color: #ffdce8;
    transition: color 0.2s ease;
}
#psp h3.psp a:hover { color: #fff; }



