:root {
    --primary: #1f7a5a;
    --primary-dark: #15583f;
    --accent: #f3b43f;
    --text: #1e2b25;
    --muted: #6d7a74;
    --bg: #f8faf9;
    --white: #fff;
    --border: #dfe7e3;
    --danger: #b94040;
    --shadow: 0 14px 40px rgba(25, 60, 45, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);

    /* Evita desplazamiento horizontal */
    overflow-x: hidden;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.header {
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-dark);
}

.nav nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    font-weight: 700;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    background: linear-gradient(135deg, #e8f5ee, #fff8e9);
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.badge,
.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em;
}

.badge {
    background: #d7eee2;
    padding: 8px 12px;
    border-radius: 999px;
    letter-spacing: 0;
    font-size: 13px;
}

h1 {
    max-width: 700px;
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -.05em;
}

.hero p {
    max-width: 620px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 28px;
}

.hero-paw {
    font-size: 100px;
    line-height: 1.15;
    text-align: center;
    transform: rotate(5deg);
}


/* ==========================================================
   BOTONES
   ========================================================== */

.btn {
    border: 0;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    color: white;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}


/* ==========================================================
   SECCIONES
   ========================================================== */

.section {
    padding: 72px 0;
}

.section-light {
    background: #eef5f1;
}

.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: 38px;
    margin: 8px 0 0;
    letter-spacing: -.03em;
}


/* ==========================================================
   TABS
   ========================================================== */

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tab {
    border: 1px solid var(--border);
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}


/* ==========================================================
   FORMULARIO
   ========================================================== */

.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 800;
    font-size: 14px;
}

.optional {
    font-weight: 500;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccd8d2;
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31,122,90,.1);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

small {
    color: var(--muted);
}


/* ==========================================================
   FOOTER FORMULARIO
   ========================================================== */

.form-footer {
    border-top: 1px solid var(--border);
    margin-top: 24px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.form-footer span {
    font-size: 12px;
    color: var(--muted);
}


/* ==========================================================
   PREVIEW
   ========================================================== */

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

.preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}


/* ==========================================================
   ALERTAS
   ========================================================== */

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert.success {
    background: #dff4e7;
    color: #17633e;
}

.alert.error {
    background: #fde4e4;
    color: #a52d2d;
}


/* ==========================================================
   FILTROS
   ========================================================== */

.filter-links {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-links a {
    background: white;
    border: 1px solid var(--border);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.filter-links a.selected {
    background: var(--text);
    color: white;
}


/* ==========================================================
   CARDS
   ========================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}

.card {
    position: relative;
    background: white;
    border: 1px solid rgba(31, 122, 90, .28);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(25,60,45,.06);
    min-width: 0;
    height: fit-content;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

/* ==========================================================
   EFECTO NEÓN — PUBLICACIONES
   ========================================================== */

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 285deg,
        rgba(31, 122, 90, 0) 305deg,
        rgba(31, 122, 90, .95) 330deg,
        rgba(243, 180, 63, 1) 345deg,
        rgba(31, 122, 90, .95) 355deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.card > * {
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {

    .card:hover {
        transform: translateY(-5px);
        border-color: rgba(31, 122, 90, .75);
        box-shadow:
            0 0 0 1px rgba(31, 122, 90, .28),
            0 0 12px rgba(31, 122, 90, .24),
            0 0 28px rgba(31, 122, 90, .16),
            0 14px 35px rgba(25, 60, 45, .12);
    }

    .card:hover::before {
        opacity: 1;
        animation: cardNeonRotate 2.8s linear infinite;
    }
}

@keyframes cardNeonRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card-images {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.no-image {
    display: grid;
    place-items: center;
    font-size: 50px;
}

.card-body {
    padding: 20px;
    min-width: 0;
    overflow-wrap: break-word;
}

.card-type {
    font-size: 12px;
    font-weight: 900;
    color: var(--primary);
}

.card h3 {
    font-size: 24px;
    margin: 8px 0;
}

.card p {
    color: #52615a;
    line-height: 1.55;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.meta,
.phone {
    display: block;
    font-weight: 700;
    margin-top: 10px;
    overflow-wrap: anywhere;
}

.phone {
    color: var(--primary);
}

.date {
    display: block;
    margin-top: 16px;
}


/* ==========================================================
   SIN PUBLICACIONES
   ========================================================== */

.empty {
    background: white;
    border: 1px dashed #c8d5cf;
    padding: 60px 20px;
    border-radius: 18px;
    text-align: center;
}

.empty div {
    font-size: 50px;
}

/* ==========================================================
   NUEVO APARTADO — INFORMACIÓN Y AYUDA

   Estos estilos pertenecen exclusivamente al apartado
   informativo agregado a la página principal.
   ========================================================== */


/* ==========================================================
   SECCIÓN PRINCIPAL
   ========================================================== */

   .info-section {
    padding: 78px 0;
    background: #ffffff;
}


/* ==========================================================
   ENCABEZADO
   ========================================================== */

.info-title {
    max-width: 760px;
    margin-bottom: 38px;
}

.info-title p {
    max-width: 720px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}


/* ==========================================================
   GRILLA DE TARJETAS
   ========================================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


/* ==========================================================
   TARJETAS INFORMATIVAS
   ========================================================== */

.info-card {
    display: flex;
    gap: 18px;

    padding: 26px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        0 8px 25px rgba(25, 60, 45, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


/* Efecto suave al pasar el mouse */

.info-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 32px rgba(25, 60, 45, .10);
}


/* ==========================================================
   ICONOS
   ========================================================== */

.info-icon {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    background: #eef6f1;

    font-size: 28px;
}


/* ==========================================================
   CONTENIDO DE TARJETAS
   ========================================================== */

.info-card-content {
    min-width: 0;
}

.info-label {
    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .08em;
}


.info-card h3 {
    margin: 0 0 10px;

    font-size: 23px;

    letter-spacing: -.02em;
}


.info-card p {
    margin: 0;

    color: #52615a;

    line-height: 1.6;
}


.info-card ul {
    margin: 15px 0 0;
    padding-left: 20px;

    color: #52615a;

    line-height: 1.7;
}


.info-card li {
    margin-bottom: 3px;
}


/* ==========================================================
   PEQUEÑAS DIFERENCIAS VISUALES ENTRE TARJETAS
   ========================================================== */

.info-card-lost .info-icon {
    background: #fff0f0;
}


.info-card-seen .info-icon {
    background: #fff8e5;
}


.info-card-adoption .info-icon {
    background: #fff0f5;
}


.info-card-management .info-icon {
    background: #eef1ff;
}


/* ==========================================================
   BLOQUE DESTACADO — UBICACIÓN
   ========================================================== */

.info-highlight {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-top: 24px;

    padding: 26px 28px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #eaf6ef,
            #f5faf7
        );

    border: 1px solid #d4e8dc;
}


.info-highlight-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    background: #ffffff;

    font-size: 30px;

    box-shadow:
        0 6px 18px rgba(25, 60, 45, .07);
}


.info-highlight h3 {
    margin: 0 0 8px;

    font-size: 22px;
}


.info-highlight p {
    margin: 0;

    color: #52615a;

    line-height: 1.6;
}


/* ==========================================================
   INFORMACIÓN COMUNITARIA
   ========================================================== */

.community-info {
    display: flex;

    gap: 20px;

    margin-top: 24px;

    padding: 28px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #fff8e8,
            #fffdf7
        );

    border: 1px solid #f0dfb6;
}


.community-info-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    background: #ffffff;

    font-size: 29px;

    box-shadow:
        0 6px 18px rgba(100, 75, 25, .07);
}


.community-info-content {
    min-width: 0;
}


.community-info h3 {
    margin: 0 0 10px;

    font-size: 23px;
}


.community-info p {
    max-width: 850px;

    margin: 0 0 10px;

    color: #5e5b4d;

    line-height: 1.65;
}


.community-note {
    display: inline-block;

    margin-top: 6px;

    font-weight: 800;

    color: #80611c;
}


/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 800px) {

    .info-section {
        padding: 60px 0;
    }


    .info-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   RESPONSIVE — CELULAR
   ========================================================== */

@media (max-width: 520px) {

    .info-section {
        padding: 52px 0;
    }


    .info-title {
        margin-bottom: 28px;
    }


    .info-title p {
        font-size: 16px;
        line-height: 1.6;
    }


    .info-card {
        gap: 14px;

        padding: 20px;

        border-radius: 17px;
    }


    .info-icon {
        flex: 0 0 46px;

        width: 46px;
        height: 46px;

        border-radius: 13px;

        font-size: 23px;
    }


    .info-card h3 {
        font-size: 20px;
    }


    .info-card p,
    .info-card ul {
        font-size: 14px;
        line-height: 1.6;
    }


    .info-highlight,
    .community-info {
        gap: 14px;

        padding: 20px;

        border-radius: 17px;
    }


    .info-highlight-icon,
    .community-info-icon {
        flex: 0 0 46px;

        width: 46px;
        height: 46px;

        border-radius: 13px;

        font-size: 23px;
    }


    .info-highlight h3,
    .community-info h3 {
        font-size: 19px;
    }


    .info-highlight p,
    .community-info p {
        font-size: 14px;
        line-height: 1.6;
    }

}


/* ==========================================================
   RESPONSIVE — CELULARES MUY PEQUEÑOS
   ========================================================== */

@media (max-width: 360px) {

    .info-card {
        flex-direction: column;
    }


    .info-icon {
        flex-basis: auto;
    }


    .info-highlight,
    .community-info {
        flex-direction: column;
    }


    .info-highlight-icon,
    .community-info-icon {
        flex-basis: auto;
    }

}



/* ==========================================================
   FOOTER
   ========================================================== */

   footer {
    background: #14231c;
    color: white;
    padding: 28px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

footer span {
    color: #b9c8c1;
}

/* ==========================================================
   RESPONSIVE FOOTER
   ========================================================== */

@media (max-width: 800px) {
    footer .container {
        flex-direction: row;        /* mantiene fila */
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-contact {
        align-items: flex-end;
        text-align: right;
    }
}



/* ==========================================================
   UBICACION
   ========================================================== */

.location-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-location {
    background: #e8f3ed;
    color: var(--primary-dark);
    border: 1px solid #c9e0d3;
}

.btn-location:hover {
    background: #d8ecdf;
}

.btn-location:disabled {
    opacity: .65;
    cursor: wait;
}

.location-status {
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.location-status.success {
    color: var(--primary);
}

.location-status.error {
    color: var(--danger);
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 800;
    overflow-wrap: anywhere;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 800px) {

    .hero {
        padding: 55px 0;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-paw {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .form-footer,
    footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================================
   CELULAR
   ========================================================== */

@media (max-width: 520px) {

    /*
       IMPORTANTE:
       Antes teníamos:
       
       .nav nav {
           display: none;
       }

       Eso ocultaba TODO el menú en celulares,
       incluyendo "Gestionar publicación".

       Ahora el menú permanece visible.
    */

    .nav {
        min-height: auto;
        padding: 10px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .logo {
        font-size: 17px;
        text-align: center;
        white-space: nowrap;
    }

    .nav nav {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 12px;
        line-height: 1.2;
    }

    .nav nav a {
        display: inline-block;
        padding: 5px 3px;
        white-space: nowrap;
    }

    .section {
        padding: 50px 0;
    }

    .form-card {
        padding: 18px;
    }

    .preview {
        grid-template-columns: 1fr 1fr;
    }

    /*
       Evita que los botones o formularios
       generen desplazamiento horizontal.
    */

    .btn {
        max-width: 100%;
    }

    input,
    textarea {
        max-width: 100%;
        min-width: 0;
    }

    /*
       Ubicación en celular
    */

    .location-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-location {
        width: 100%;
        text-align: center;
    }

    .location-status {
        width: 100%;
    }

    /*
       Footer
    */

    footer .container {
        width: calc(100% - 24px);
    }
}


/* ==========================================================
   CELULARES MUY PEQUEÑOS
   ========================================================== */

@media (max-width: 360px) {

    .container {
        width: calc(100% - 20px);
    }

    .logo {
        font-size: 16px;
    }

    .nav nav {
        gap: 4px;
        font-size: 11px;
    }

    .nav nav a {
        padding: 5px 2px;
    }

    .form-card {
        padding: 14px;
    }

    .preview {
        grid-template-columns: 1fr;
    }
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.contact-actions .phone {
    margin-top: 0;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.whatsapp-link:hover {
    opacity: .9;
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================
   NUEVO MÓDULO
   PANEL DE ADMINISTRACIÓN DE ANUNCIOS
   ========================================================== */

   .admin-anuncios-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.admin-anuncio-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:20px;
    box-shadow:0 8px 25px rgba(25,60,45,.06);
    display:flex;
    flex-direction:column;
    gap:12px;
}

.admin-anuncio-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.admin-anuncio-tipo{
    font-size:13px;
    font-weight:800;
    color:var(--primary);
}

.estado{
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.estado-activo{
    background:#dff4e7;
    color:#17633e;
}

.estado-oculto{
    background:#ececec;
    color:#555;
}

.admin-anuncio-card h3{
    margin:0;
    font-size:22px;
}

.admin-anuncio-card p{
    color:#52615a;
    line-height:1.55;
    margin:0;
}

.admin-meta{
    font-size:14px;
    font-weight:700;
    color:var(--muted);
}

.admin-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:auto;
}

.btn-edit{
    background:#e8f3ed;
    color:var(--primary-dark);
    border:1px solid #c9e0d3;
}

.btn-secondary{
    background:#f3f4f6;
    color:#374151;
}

.btn-danger{
    background:#fde4e4;
    color:#a52d2d;
}


/* ==========================================
   RESPONSIVE PANEL ANUNCIOS
   ========================================== */

@media (max-width:800px){

    .admin-anuncios-grid{
        grid-template-columns:1fr;
    }

}

/* ==========================================================
   NUEVO MÓDULO
   FORMULARIO DE CREACIÓN DE ANUNCIOS
   ========================================================== */

   select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccd8d2;
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    outline: none;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31,122,90,.1);
}

/* ==============================================================
   ANUNCIOS COMUNITARIOS
   --------------------------------------------------------------
   Estilos pertenecientes al apartado:
   "Información para la comunidad"
   ============================================================== */


/* --------------------------------------------------------------
   SECCIÓN PRINCIPAL
   -------------------------------------------------------------- */

   .community-announcements {
    padding: 70px 0;
    background: #f8faf7;
}


/* --------------------------------------------------------------
   ENCABEZADO
   -------------------------------------------------------------- */

.community-title {
    max-width: 700px;
    margin: 0 auto 35px;
    text-align: center;
}

.community-title h2 {
    margin-bottom: 12px;
}

.community-title p {
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}


/* --------------------------------------------------------------
   CONTENEDOR DE LAS TARJETAS
   -------------------------------------------------------------- */

.community-announcements-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* --------------------------------------------------------------
   TARJETA
   -------------------------------------------------------------- */

.community-announcement-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(31, 122, 90, .28);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(25, 60, 45, .06);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

/* ==========================================================
   EFECTO NEÓN — ANUNCIOS COMUNITARIOS
   ========================================================== */

.community-announcement-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 285deg,
        rgba(31, 122, 90, 0) 305deg,
        rgba(31, 122, 90, .95) 330deg,
        rgba(243, 180, 63, 1) 345deg,
        rgba(31, 122, 90, .95) 355deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.community-announcement-card > * {
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {

    .community-announcement-card:hover {
        transform: translateY(-5px);
        border-color: rgba(31, 122, 90, .75);
        box-shadow:
            0 0 0 1px rgba(31, 122, 90, .28),
            0 0 12px rgba(31, 122, 90, .24),
            0 0 28px rgba(31, 122, 90, .16),
            0 14px 35px rgba(25, 60, 45, .12);
    }

    .community-announcement-card:hover::before {
        opacity: 1;
        animation: announcementNeonRotate 2.8s linear infinite;
    }
}

@keyframes announcementNeonRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* --------------------------------------------------------------
   IMAGEN
   -------------------------------------------------------------- */

.community-announcement-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f1f4f1;
}

.community-announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --------------------------------------------------------------
   CONTENIDO
   -------------------------------------------------------------- */

.community-announcement-body {
    padding: 22px;
}

.community-announcement-body h3 {
    margin: 10px 0 12px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.community-announcement-body p {
    margin: 0 0 18px;
    line-height: 1.65;
    color: #4f5d54;
}


/* --------------------------------------------------------------
   TIPO DE ANUNCIO
   -------------------------------------------------------------- */

.community-announcement-type {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e6f5ee;
    color: #187b5d;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* --------------------------------------------------------------
   INFORMACIÓN DEL ANUNCIO
   -------------------------------------------------------------- */

.community-announcement-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf0ed;
    color: #536158;
    font-size: 0.92rem;
    line-height: 1.5;
}

.community-announcement-meta strong {
    color: #29352e;
}


/* --------------------------------------------------------------
   ENLACE
   -------------------------------------------------------------- */

.community-announcement-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #187b5d;
}

.community-announcement-link:hover {
    text-decoration: underline;
}


/* --------------------------------------------------------------
   CUANDO TODAVÍA NO HAY ANUNCIOS
   -------------------------------------------------------------- */

.community-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 35px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e3e9e4;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.community-empty-icon {
    display: block;
    margin-bottom: 12px;
    font-size: 2.2rem;
}

.community-empty h3 {
    margin-bottom: 10px;
}

.community-empty p {
    margin: 0;
    color: #5c685f;
    line-height: 1.7;
}


/* ==============================================================
   RESPONSIVE
   ============================================================== */


/* --------------------------------------------------------------
   TABLET
   -------------------------------------------------------------- */

@media (max-width: 900px) {

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

}


/* --------------------------------------------------------------
   CELULAR
   -------------------------------------------------------------- */

@media (max-width: 600px) {

    .community-announcements {
        padding: 50px 0;
    }

    .community-title {
        margin-bottom: 25px;
    }

    .community-title h2 {
        font-size: 1.65rem;
    }

    .community-announcements-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .community-announcement-card {
        border-radius: 16px;
    }

    .community-announcement-image {
        height: 180px;
    }

    .community-announcement-body {
        padding: 20px;
    }

}

/* ==========================================================
   PUBLICACIÓN RECIÉN CREADA
========================================================== */

.publication-success {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.success-title {
    margin-bottom: 24px;
}

.success-title h2 {
    margin-bottom: 12px;
}

.success-title p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.65;
}

.management-data {
    background: #ffffff;
    border: 1px solid #cfe4d8;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.management-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.management-data-item span {
    color: var(--muted);
    font-weight: 700;
}

.management-data-item strong {
    color: var(--primary-dark);
    font-size: 20px;
    letter-spacing: 1px;
    text-align: right;
}

.management-warning {
    color: #52615a;
    line-height: 1.55;
    margin: 20px 0;
}

.management-data .btn {
    margin-top: 4px;
}

.new-publication-wrapper {
    margin-top: 30px;
}

.new-publication-heading {
    margin-bottom: 16px;
}

.new-publication-heading h3 {
    margin: 7px 0 0;
    font-size: 28px;
}

.new-publication-card {
    max-width: 600px;
    margin: 0 auto;
}

.create-another {
    text-align: center;
    margin-top: 28px;
}

.create-another p {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: 18px;
}

/* ==========================================================
   CARRUSEL DE FOTOS DE PUBLICACIONES
========================================================== */

.card-images {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-slider {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.card-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.card-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 290px;
    overflow: hidden;
}

.card-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: rgba(20, 35, 28, 0.72);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(5px);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.slider-prev { left: 6px; }
.slider-next { right: 6px; }

.slider-btn:hover {
    background: rgba(31, 122, 90, 0.92);
    box-shadow: 0 0 18px rgba(31, 122, 90, 0.45);
}

.slider-counter {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 10;
    padding: 5px 11px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.card-images .no-image {
    width: 100%;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
   GESTIONAR PUBLICACIÓN
========================================================== */

.management-hero {
    text-align: center;
    margin-bottom: 28px;
}

.management-hero p {
    max-width: 650px;
    margin: 12px auto 0;
    color: var(--muted);
    line-height: 1.65;
}

.management-action {
    margin-top: 28px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf6ef, #f8fbf9);
    border: 1px solid #d4e8dc;
}

.management-action h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.management-action p {
    margin: 0 0 18px;
    color: #52615a;
    line-height: 1.6;
}

.management-resolve {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #cfe4d8;
    background: #f7fcf9;
}

.management-resolve h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.management-resolve p {
    margin: 0 0 18px;
    color: #52615a;
    line-height: 1.6;
}

.management-resolve .btn {
    width: 100%;
}

.managed-publication {
    margin-top: 28px;
}

.managed-publication-title {
    margin-bottom: 16px;
}

.managed-publication-title h3 {
    margin: 7px 0 0;
    font-size: 28px;
}

.managed-publication-card {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .slider-btn {
        display: none;
    }

    .slider-counter {
        bottom: 10px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .management-data,
    .management-action,
    .management-resolve {
        padding: 18px;
    }

    .management-data-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .management-data-item strong {
        text-align: left;
        font-size: 18px;
    }

    .management-data .btn,
    .create-another .btn {
        width: 100%;
        text-align: center;
    }

    .new-publication-heading h3,
    .managed-publication-title h3 {
        font-size: 23px;
    }
}


/* ==========================================================
   AJUSTES PARA GESTIÓN
========================================================== */

.container.narrow {
    width: min(720px, calc(100% - 32px));
}

.btn-success {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    font-size: 16px;
    padding: 15px 20px;
}

.btn-success:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (max-width: 520px) {
    .container.narrow {
        width: calc(100% - 24px);
    }
}

/* ==========================================================
   FOOTER - CONTACTO
   ========================================================== */

   .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand strong {
    font-size: 17px;
}

.footer-brand span {
    color: #b9c8c1;
    font-size: 14px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

.footer-contact span {
    color: #b9c8c1;
    font-size: 13px;
}

.footer-contact a {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    transition: color .2s ease;
}

.footer-contact a:hover {
    color: var(--accent);
}


/* ==========================================================
   FOOTER - CELULAR
   ========================================================== */

   @media (max-width: 800px) {
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    footer .container {
        flex-direction: row; /* mantiene fila */
        justify-content: space-between;
        align-items: center;
    }
}


/* ==========================================================
   HERO ESPECIAL PARA CELULAR
   PC QUEDA EXACTAMENTE COMO ESTÁ
   ========================================================== */

   @media (max-width: 520px) {

    .hero-paw {
        /*
         * Ocultamos visualmente los emojis originales
         * solamente en celular.
         */
        font-size: 0;

        display: flex;
        align-items: flex-end;
        justify-content: center;

        gap: 10px;

        width: 100%;
        min-height: 120px;

        transform: none;
    }

    /*
     * Ocultamos el salto de línea original.
     */
    .hero-paw br {
        display: none;
    }

    /*
     * Creamos nuevamente el perro y el gato
     * solamente para celular.
     */
    .hero-paw::before,
    .hero-paw::after {

        display: flex;
        align-items: center;
        justify-content: center;

        width: 92px;
        height: 105px;

        border-radius: 24px;

        background: rgba(255,255,255,.55);

        box-shadow:
            0 12px 30px rgba(25,60,45,.08);

        backdrop-filter: blur(4px);

        font-size: 68px;
        line-height: 1;

        filter:
            drop-shadow(0 8px 5px rgba(25,60,45,.12));

    }


    /*
     * PERRO
     */
    .hero-paw::before {
        content: "🐕";

        transform: rotate(-4deg);

        animation:
            heroDogMobile 3.5s ease-in-out infinite;
    }


    /*
     * GATO
     */
    .hero-paw::after {
        content: "🐈";

        transform: rotate(4deg);

        animation:
            heroCatMobile 3.8s ease-in-out infinite;
    }

}


/* ==========================================================
   ANIMACIÓN PERRO — CELULAR
   ========================================================== */

@keyframes heroDogMobile {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-7px) rotate(1deg);
    }

}


/* ==========================================================
   ANIMACIÓN GATO — CELULAR
   ========================================================== */

@keyframes heroCatMobile {

    0%,
    100% {
        transform: translateY(0) rotate(4deg);
    }

    50% {
        transform: translateY(-9px) rotate(-1deg);
    }

}


/* ==========================================================
   CELULARES MUY PEQUEÑOS
   ========================================================== */

@media (max-width: 360px) {

    .hero-paw::before,
    .hero-paw::after {
        width: 82px;
        height: 94px;

        font-size: 58px;

        border-radius: 21px;
    }

}

/* ==========================================================
   SELECCION DE FOTO PARA EL HISTORICO
   ========================================================== */

   .historico-fotos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.historico-foto-option {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
}

.historico-foto-option input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.historico-foto-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #f4f7f5;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.historico-foto-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #eef3f0;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.historico-foto-label {
    display: block;
    padding: 9px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-dark);
    background: #ffffff;
}

.historico-foto-option:hover .historico-foto-card {
    border-color: #9bc9b0;
    box-shadow: 0 6px 18px rgba(25, 60, 45, .10);
    transform: translateY(-1px);
}

.historico-foto-option input[type="radio"]:checked + .historico-foto-card {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(31, 122, 90, .14),
        0 8px 20px rgba(25, 60, 45, .10);
}


/* =========================================================
   MÓVIL
   ========================================================= */

   @media (max-width: 520px) {
    .historico-fotos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .historico-foto-card img {
        height: 100px;
    }

    .historico-foto-label {
        padding: 7px 4px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .historico-fotos {
        gap: 6px;
    }

    .historico-foto-card img {
        height: 88px;
    }

    .historico-foto-label {
        font-size: 10px;
    }
}

/* ==========================================================
   PUBLICACIONES CERCANAS
========================================================== */

.nearby-publications-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 22px 0 28px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
}

.nearby-publications-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nearby-publications-text strong {
    color: var(--text);
    font-size: 16px;
}

.nearby-publications-text span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.publication-distance {
    display: inline-block;
    margin: 10px 0 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(31, 122, 90, .10);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 600px) {

    .nearby-publications-control {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin: 18px 0 24px;
        padding: 14px;
    }

    .nearby-publications-control .btn {
        width: 100%;
    }
}

