/* ============================================================
   PORTAL CSS - CONVOCATORIA SPF 2026 (FIJO RESPONSIVE DEFINITIVO)
   ============================================================ */

/* ============================================================
   FUENTES
   ============================================================ */
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 300; font-display: swap; src: local("Noto Sans Light"), url(/assets/fonts/NotoSans/NotoSans-Thin.woff2) format("woff2"), url(/assets/fonts/NotoSans/NotoSans-Thin.ttf) format("truetype"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: local("Noto Sans Regular"), url(/assets/fonts/NotoSans/NotoSans-Regular.woff2) format("woff2"), url(/assets/fonts/NotoSans/NotoSans-Regular.ttf) format("truetype"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 600; font-display: swap; src: local("Noto Sans Medium"), url(/assets/fonts/NotoSans/NotoSans-Medium.woff2) format("woff2"), url(/assets/fonts/NotoSans/NotoSans-Medium.ttf) format("truetype"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap; src: local("Noto Sans Bold"), url(/assets/fonts/NotoSans/NotoSans-Bold.woff2) format("woff2"), url(/assets/fonts/NotoSans/NotoSans-Bold.ttf) format("truetype"); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Skip link accesibilidad (visible solo al enfocar con teclado) */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100000; background: #611232; color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; text-decoration: none; font-weight: 600; }
.skip-link:focus { left: 0; }

html, body {
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Noto Sans", "Inter", sans-serif;
    color: #475569;
    background-color: #f8fafc;
}

/* ============================================================
   HEADER FIJO
   ============================================================ */
.navbar-custom {
    background-color: rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    height: 70px;
}
.navbar-custom.scrolled {
    background-color: rgba(97, 18, 50, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    height: 60px;
}
.header-content { display: flex; align-items: center; height: 100%; padding: 0 24px; }
.header-left { flex: 5 0 auto; }
.header-center { margin-left: auto; }
.header-right { margin-left: auto; }
.header-left img, .header-right img { max-height: 40px; transition: max-height 0.3s ease; }
.navbar-custom.scrolled .header-left img, .navbar-custom.scrolled .header-right img { max-height: 32px; }

/* MENÚ HAMBURGUESA */
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; margin-left: 16px; cursor: pointer; padding: 4px 8px; transition: 0.3s; }
.menu-toggle:hover { transform: rotate(90deg); }
.navbarB { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.menu-link { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 14px; padding: 5px 0; font-weight: 500; position: relative; transition: 0.3s; }
.menu-link:hover { color: #fff; }
.menu-link.active { color: #fff; font-weight: 700; }
.menu-link.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, #fff, #a57f2c); border-radius: 2px;
}

/* ============================================================
   MAIN
   ============================================================ */
main {
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    width: 100%;
}

/* ============================================================
   HERO - TOTALMENTE CONTROLADO POR GSAP (SIN STICKY EN CSS)
   ============================================================ */
.hero-wrapper {
    position: relative;
    width: 100%;
    /* LA ALTURA LA CONTROLA GSAP EN EL JS (pinSpacing) */
}

.hero-sticky {
    position: relative; /* ¡CRÍTICO PARA QUE GSAP LO FIJE SIN BUGS! */
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #0f172a; /* Fondo oscuro por si acaso rebota en iOS */
}

.hero-bg, .hero-bg .bg-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg .bg-layer { background-size: cover; background-position: center center; }
.hero-bg .bg-layer-1 {
    background: url('/assets/img/img_3.jpeg') center/cover no-repeat;
    background-image: image-set(url('/assets/img/img_3.webp') type('image/webp'), url('/assets/img/img_3.jpeg') type('image/jpeg'));
    opacity: 0.65;
}
.hero-bg .bg-layer-2 { background: radial-gradient(ellipse at 30% 50%, rgba(97, 18, 50, 0.25) 0%, transparent 70%); opacity: 0.5; }
.hero-bg .bg-layer-3 { background: radial-gradient(ellipse at 70% 80%, rgba(165, 127, 44, 0.2) 0%, transparent 50%); opacity: 0.4; }
.hero-bg .overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(226, 232, 240, 0.35) 100%); }

.hero-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 70px 24px 20px 24px; z-index: 2;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 800;
    color: #0c1b4d;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 0;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #0c1b4d, #294b9b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-phrases-container {
    width: 100%; max-width: 800px; height: 160px;
    margin: 10px auto 15px auto;
    overflow: hidden; position: relative;
    display: flex; justify-content: center; align-items: center;
}
.hero-phrases-scroll { width: 100%; display: flex; flex-direction: column; }
.hero-phrase-wrapper { width: 100%; height: 160px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.hero-phrase { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 700; color: #1e293b; margin: 0; padding: 10px 0; }
.hero-phrase .highlight { color: #13322e; }
.hero-phrase[data-phrase="1"], .hero-phrase[data-phrase="2"],
.hero-phrase[data-phrase="1"] .highlight, .hero-phrase[data-phrase="2"] .highlight { color: #52606d; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-phrase[data-phrase="1"], .hero-phrase[data-phrase="2"] {
        background: linear-gradient(135deg, #52606d, #788693);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .hero-phrase[data-phrase="1"] .highlight, .hero-phrase[data-phrase="2"] .highlight { color: inherit; }
}

.hero-badge {
    font-weight: 600; font-size: clamp(0.85rem, 1.4vw, 1.2rem); color: #0c1b4d; letter-spacing: 3px; text-transform: uppercase;
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px);
    padding: 8px 24px; border-radius: 50px; border: 1px solid rgba(97, 18, 50, 0.15); margin-top: 5px; opacity: 0; transform: translateY(30px);
}

.hero-cta { opacity: 0; margin-top: 15px; }
.btn-cta {
    background: linear-gradient(135deg, #0c1b4d, #294b9b);
    color: #fff;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 90px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    box-shadow: 0 8px 30px rgba(12, 27, 77, 0.3);
}
.btn-cta:hover {
    background: linear-gradient(135deg, #294b9b, #0c1b4d);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(12, 27, 77, 0.4);
    color: #fff;
}
.scroll-indicator {
    position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); z-index: 3;
    color: rgba(97, 18, 50, 0.6); font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-indicator .mouse { width: 22px; height: 34px; border: 2px solid rgba(97, 18, 50, 0.4); border-radius: 12px; position: relative; }
.scroll-indicator .mouse::after { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: rgba(97, 18, 50, 0.6); border-radius: 2px; }

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.seccion { padding: 70px 0; background-color: #ffffff; overflow: hidden; position: relative; }
.container { max-width: 1480px; }
.container-spf { padding-left: 3rem; padding-right: 3rem; }

.title-secciones {
    color: #0c1b4d;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.title-secciones .highlight {
    color: #0c1b4d;
}

/* SECCIÓN GUARDIA */
.seccion-guardia {
    background: linear-gradient(135deg, #0c1b4d 0%, #142b68 100%);
    color: #fff;
}

.guardia-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 0.5em;
}

.guardia-title .highlight {
    color: #a57f2c;
}

.guardia-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.guardia-sueldo {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 0.9rem 1.6rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.guardia-sueldo strong {
    font-size: 2.4rem;
    color: #a57f2c;
    margin-left: 8px;
    font-weight: 800;
}

.btn-registro-guardia {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 90px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8em 2em;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-registro-guardia:hover {
    background: #a57f2c;
    border-color: #a57f2c;
    color: #fff;
}

.guardia-imagen-wrapper {
    position: relative;
    width: 90%;
    margin-inline: auto;
}

.guardia-imagen-wrapper picture {
    display: block;
    aspect-ratio: 1516.5 / 736;
}

.guardia-imagen-wrapper picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, #a57f2c, #c5a34e);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 16px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(12, 27, 77, 0.3);
}
/* SECCIÓN PRESTACIONES */
.seccion-prestaciones { background: #f8fafc; }
.card-prestaciones, .card-documentacion { background: rgba(255, 255, 255, 0.9); border-radius: 24px; padding: 2.5rem; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04); border: 1px solid rgba(226, 232, 240, 0.8); height: 100%; transition: 0.3s; }
.card-title { font-size: 1.45rem; font-weight: 700; color: #1e293b; margin-bottom: 1.5rem; }
.card-title .icon-color { color: #0c1b4d; }
.prestaciones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.prestacion-item { display: flex; align-items: center; gap: 12px; padding: 0.7rem 0.8rem; background: rgba(248, 250, 252, 0.8); border-radius: 12px; transition: 0.3s; }
.prestacion-item:hover { background: rgba(97, 18, 50, 0.05); transform: translateX(4px); }
.prestacion-item img { width: 28px; height: 28px; flex-shrink:0;}
.prestacion-item span { font-size: 0.85rem; color: #475569; font-weight: 500; }

.documentacion-lista { list-style: none; padding: 0; margin: 0; }
.documentacion-lista li { padding: 0.65rem 0; border-bottom: 1px solid rgba(241, 245, 249, 0.8); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; transition: 0.3s; }
.documentacion-lista li:hover { transform: translateX(4px); color: #1e293b; }
.documentacion-lista li:last-child { border-bottom: none; }
.documentacion-lista i { font-size: 1.15rem; color: #611232; }

/* FUNCIONES */
.seccion-funciones { background: #ffffff; padding: 50px 0; }
.funciones-card { background: #ffffff; border-radius: 20px; padding: 2.2rem 2.5rem; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04); border: 1px solid rgba(226, 232, 240, 0.8); }
.funciones-content { display: flex; align-items: center; gap: 2rem; }
.funciones-text { flex: 1; text-align: left; }
.funciones-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.funciones-icono {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #0c1b4d, #294b9b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.funciones-header h3 { font-size: 1.4rem; font-weight: 700; color: #1e293b; margin: 0; }
.funciones-text p { font-size: 0.95rem; line-height: 1.7; color: #475569; margin-bottom: 0.6rem; }
.funciones-imagen { width: 280px; flex-shrink: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.funciones-imagen img { width: 100%; height: auto; display: block; }

/* REQUISITOS */
.seccion-requisitos { background: #f8fafc; }
.requisito-card { background: #ffffff; border-radius: 20px; padding: 2rem; text-align: center; border: 1px solid rgba(226, 232, 240, 0.8); height: 100%; transition: 0.3s; }
.requisito-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.requisito-card img { width: 55px; height: 55px; margin-bottom: 1rem; border-radius: 10px; object-fit: cover;}
.requisito-card .requisito-icono { display: block; height: 55px; margin-bottom: 1rem; color: #a57f2c; font-size: 46px; line-height: 55px; }
.requisito-card h3 { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 0.6rem; }
.requisito-card p { font-size: 0.92rem; color: #64748b; line-height: 1.6; margin: 0; }

/* PRE-REGISTRO */
.seccion-preregistro { background: #ffffff; padding: 50px 0; }
.preregistro-card { background: #ffffff; border-radius: 20px; padding: 2.2rem 2.5rem; border: 1px solid rgba(226, 232, 240, 0.8); box-shadow: 0 4px 30px rgba(0,0,0,0.04); }
.preregistro-card .subtitle { font-size: 1rem; color: #475569; margin-bottom: 1.5rem; }
.preregistro-content { display: flex; flex-direction: column; align-items: center; }
.alert-spf { background: rgba(241, 245, 249, 0.7); border-radius: 14px; padding: 1.2rem 1.8rem; border-left: 4px solid #611232; font-size: 0.95rem; line-height: 1.7; width: 100%; text-align: justify; }
.alert-spf ul { padding-left: 1.2rem; margin-top: 0.6rem; }
.alert-spf ul li { margin-bottom: 0.3rem; font-size: 0.92rem; }
.btn-registro-preregistro {
    background: linear-gradient(135deg, #0c1b4d, #294b9b);
    border-radius: 90px;
    color: #fff;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: 0.3s;
    box-shadow: 0 8px 30px rgba(12, 27, 77, 0.25);
}

.btn-registro-preregistro:hover {
    background: linear-gradient(135deg, #294b9b, #0c1b4d);
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 10px 25px rgba(12, 27, 77, 0.3);
}

/* INFORMACION ADICIONAL */
.seccion-info-adicional { background: #ffffff; padding: 50px 0; }

.info-adicional-card { border-left: 4px solid #611232; }

.info-adicional-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(241, 245, 249, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.info-icono {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c1b4d, #294b9b);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-texto h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.35rem 0;
}

.info-texto p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
    color: #475569;
}

.info-texto a {
    color: #0c1b4d;
    font-weight: 600;
    text-decoration: none;
}

.info-texto a:hover { text-decoration: underline; }

/* REDES SOCIALES */
.seccion-redes { background: #f8fafc; padding: 50px 0; }
.redes-wrapper { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.redes-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.red-social { display: flex; flex-direction: column; align-items: center; padding: 0.7rem 1.2rem; border-radius: 12px; background: #ffffff; border: 1px solid rgba(226, 232, 240, 0.6); text-decoration: none; color: #1e293b; transition: 0.3s; min-width: 70px; }
.red-social:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); border-color: rgba(97, 18, 50, 0.15); }
.red-social img { width: 36px; height: 36px; object-fit: contain; }
.red-social span { margin-top: 0.3rem; font-size: 0.75rem; font-weight: 600; }
.version-badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(97, 18, 50, 0.06); padding: 0.6rem 1.5rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: #611232; border: 1px solid rgba(97, 18, 50, 0.1); }

/* FOOTER */
footer { background: linear-gradient(135deg, #611232, #4a0e27); color: #b3b3b3; padding: 3.5rem 0 0; position: relative; overflow: hidden; }
.footer-title { color: #fff; display: block; font-weight: 700; margin-bottom: 1rem; font-size: 1.1rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 0.5rem; }
footer ul li a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
footer ul li a:hover { color: #fff; transform: translateX(4px); display: inline-block; }
.footer-logo { margin-bottom: 1rem; display: block; }
.footer-social { display: inline-block; margin-right: 0.8rem; transition: 0.3s; opacity: 0.7; }
.footer-social:hover { transform: scale(1.15) translateY(-3px); opacity: 1; }
.footer1 { background: url(/assets/img/headerfooter/bg_footer_pattern.svg) bottom left repeat-x; background-color: #611232; color: #b3b3b3; padding: 2rem 0 1rem; background-size: 100%;}

/* MODAL */
.modal-aviso .modal-content { border-radius: 20px; border: none; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.modal-aviso .modal-header { border-bottom: none; padding: 1.5rem 2rem 0.5rem 2rem; }
.modal-aviso .modal-body { padding: 0.5rem 2rem 1.5rem 2rem; }
.modal-aviso .modal-footer { border-top: none; padding: 0 2rem 2rem 2rem; justify-content: center; }
.modal-aviso .modal-title { color: #611232; font-weight: 800; font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.modal-aviso .pAviso { font-size: 1.05rem; line-height: 1.7; color: #1e293b; text-align: justify; margin: 0; }
.modal-aviso .btn-aceptar { background: linear-gradient(135deg, #611232, #9d2449); border: none; border-radius: 50px; color: #fff; padding: 12px 48px; font-weight: 700; transition: 0.3s; box-shadow: 0 8px 25px rgba(97, 18, 50, 0.3); }

/* ============================================================
   RESPONSIVE MÓVIL (NUEVA MEDIDA DE ALTURAS)
   ============================================================ */
@media (max-width: 1092px) {
    .menu-toggle { display: block; }
    .header-center { margin-left: 0; }
    .navbarB { position: absolute; top: 70px; left: 0; width: 100%; background: rgba(97, 18, 50, 0.98); flex-direction: column; padding: 20px 24px; display: none; z-index: 999; }
    .navbarB.active { display: flex; }
    .navbarB .menu-link { padding: 10px 0; font-size: 15px; }
}

@media (max-width: 992px) {
    .navbar-custom { height: 60px; }
    .navbar-custom.scrolled { height: 55px; }
    .header-content { height: 60px; padding: 0 18px; }
    .navbarB { top: 60px; }
    .seccion { padding: 50px 0; }
    .container-spf { padding-left: 1.5rem; padding-right: 1.5rem; }
    .redes-wrapper { flex-direction: column; gap: 1.5rem; }
    .funciones-content { flex-direction: column; text-align: center; }
    .funciones-header { justify-content: center; }
    .funciones-text { text-align: center; }
    .funciones-imagen { width: 100%; max-width: 320px; order: -1; margin-top: 15px; }
    .floating-badge { display: none; }
}

@media (max-width: 768px) {
    .navbar-custom { height: 56px; }
    .navbar-custom.scrolled { height: 50px; }
    .header-content { height: 56px; padding: 0 14px; }
    .navbarB { top: 56px; padding: 16px 20px; }
    .header-left img { max-height: 28px; }

    /* Ajuste responsivo de la imagen */
    .hero-bg .bg-layer-1 { background-position: center top; opacity: 0.6; }
    .hero-content { padding: 70px 16px 20px 16px; }
    .hero-title { font-size: clamp(2.2rem, 7.5vw, 3.2rem); }
    
    /* Variables de altura para el JS */
    .hero-phrases-container { height: 120px; }
    .hero-phrase-wrapper { height: 120px; }
    .hero-phrase { font-size: clamp(1.8rem, 5.5vw, 2.6rem); }
    
    .hero-cta .btn-cta { padding: 12px 30px; font-size: 0.9rem; }
    .scroll-indicator { display: none; }

    .seccion { padding: 35px 0; }
    .container-spf { padding-left: 1rem; padding-right: 1rem; }
    .seccion-guardia .row { flex-direction: column-reverse; }
    .guardia-info { text-align: center; margin-top: 1.5rem; }
    .prestaciones-grid { grid-template-columns: 1fr; }
    .card-prestaciones, .card-documentacion, .funciones-card, .preregistro-card { padding: 1.5rem; }

    .info-item { padding: 0.95rem; }
    .info-texto p { font-size: 0.9rem; }

    .modal-aviso .modal-body { padding: 0.5rem 1.2rem 1.2rem 1.2rem; }
    .modal-aviso .modal-header { padding: 1rem 1.2rem 0.5rem 1.2rem; }
    .modal-aviso .modal-footer { padding: 0 1.2rem 1.5rem 1.2rem; }
    .modal-aviso .modal-title { font-size: 1.15rem; }
    .modal-aviso .pAviso { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .hero-content { padding-top: 65px; }
    .hero-phrases-container, .hero-phrase-wrapper { height: 100px; }
    .hero-phrase { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
    .red-social { padding: 0.5rem 0.7rem; min-width: 50px; }
    .red-social img { width: 28px; height: 28px; }
}