/* ===============================
   Overlay para todos los modales
=============================== */
.wcm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

/* ===============================
   Estilos comunes para los modales
=============================== */
.wcm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 9999;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: none;
    max-height: 90vh;
    overflow-y: auto;
}

/* Títulos y párrafos dentro del modal */
.wcm-modal h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    text-align: center;
}
.wcm-modal p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

/* Estilos para los formularios en los modales */
.wcm-modal form p {
    margin-bottom: 15px;
}
.wcm-modal form input[type="tel"],
.wcm-modal form input[type="email"],
.wcm-modal form input[type="text"] {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.wcm-modal form button {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}
.wcm-reportar-submit {
    background-color: #4D2DCE;
    color: #fff;
}
.wcm-reportar-cancel {
    background-color: #ccc;
    color: #333;
}

/* ===============================
   Estilos para la sección de confirmación "Encontré a la mascota"
=============================== */
#wcm-found-contact {
    margin-top: 15px;
    display: none;
}
.wcm-found-contact-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}
.wcm-found-contact-buttons button {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.wcm-found-contact-buttons button:hover {
    background-color: #f0f0f0;
}
/* Tamaño máximo de los iconos de contacto */
.wcm-found-contact-buttons button img {
    max-width: 45px;
    max-height: 45px;
    display: block;
}

/* ===============================
   Estilos para la Lost Reports Grid
=============================== */
.wcm-lost-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.wcm-lost-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s ease;
}
.wcm-lost-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.wcm-lost-card img.wcm-lost-image {
    width: 60%;
    height: auto;
    border-radius: 100px;
    margin-bottom: 10px;
}
.wcm-lost-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}
.wcm-lost-info {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}
.wcm-report-date {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ===============================
   Botón "Encontré a la mascota"
=============================== */
.wcm-found-btn {
    background-color: #4D2DCE;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.3s ease;
}
.wcm-found-btn:hover {
    background-color: #3a1dbd;
}

/* ===============================
   Estilos para el overlay de mascota encontrada
=============================== */
.wcm-found-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.wcm-found-overlay img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}
.wcm-found-overlay span {
    font-size: 16px;
    font-weight: bold;
    color: #4D2DCE;
}

/* ===============================
   Estilos para la etiqueta "Nuevo Reporte"
=============================== */
.wcm-new-report-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff9800;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 11;
}

/* ===============================
   Estilos para mensaje de alerta
=============================== */
.wcm-form-two-cols {
    display: flex;
    gap: 10px;
}
@keyframes pulsate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.wcm-alert-found {
    background: #CBBBFF;
    border: 1px solid #4D2DCE;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}
.wcm-alert-icon {
    width: 25px;
    height: 25px;
    animation: pulsate 1.5s infinite;
}
.wcm-alert-icon img {
    width: 100%;
    height: auto;
}
.wcm-alert-message h4 {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}
.wcm-alert-found .wcm-alert-message {
    font-size: 14px;
    color: #333;
    padding-left: 15px;
}
.wcm-alert-found .wcm-alert-contact {
    text-align: center;
}
.wcm-alert-found .wcm-alert-contact span {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}
.wcm-alert-found .wcm-alert-contact a {
    display: inline-flex;
    margin: 0 5px;
}
.wcm-alert-found .wcm-alert-contact a img {
    max-width: 45px;
    max-height: 45px;
}

/* ===============================
   Estilos para el checkbox de aceptación en los modales
=============================== */
.wcm-accept-container {
    font-size: 12px !important;
    color: #555;
    margin: 10px 0;
    display: block;
}
.wcm-accept-container input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}
/* Para el modal Reportar Mascota Perdida, se fuerza que el <p> tenga 12px */
.wcm-modal-reportar p {
    font-size: 12px;
    text-align: left !important;
    line-height: 12px;
}

/* ===============================
   Estilos para los botones del modal "Encontré a la mascota"
=============================== */
.wcm-found-submit,
.wcm-found-cancel {
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.wcm-found-submit {
    background-color: #4D2DCE;
    color: #fff;
}
.wcm-found-submit:hover {
    background-color: #3a1dbd;
}
.wcm-found-cancel {
    background-color: #ccc;
    color: #333;
}
.wcm-found-cancel:hover {
    background-color: #b3b3b3;
}

/* ===============================
   Estilos para el botón "wcm-reportar-btn" igual que "wcm-happy-button"
=============================== */
.wcm-reportar-btn {
    display: block;
    width: 100%;
    font-size: 11px !important;
    margin-top: 10px;
    padding: 5px 20px !important;
    border: none;
    border-radius: 30px;
    background: #FEA8A8;
    color: #8A2F2F !important;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

/* ===============================
   Responsividad
=============================== */
@media (max-width: 768px) {
    .wcm-lost-card {
        width: calc(50% - 20px);
    }
}
/* Para móviles, forzamos que las tarjetas con clase "col-1" se muestren en 2 columnas */
@media (max-width: 480px) {
    .wcm-lost-card.col-1 {
        width: calc(50% - 20px);
    }
    /* Si deseas que para el resto de las tarjetas se mantenga el ancho del 100%, puedes dejarlo o ajustarlo */
    .wcm-lost-card:not(.col-1) {
        width: 100%;
    }
        .wcm-found-btn {
        font-size: 11px;
        white-space: normal; /* Permite el salto de línea */
        line-height: 1.1;
        text-align: center;
    }
}
/* ===============================
   Toast visual: Logro mascota encontrada
=============================== */
#wcm-achievement-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    background-color: #4D2DCE;
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    animation: slideUpFade 0.4s ease-in-out;
    max-width: 300px;
    font-family: inherit;
}

#wcm-achievement-toast img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    animation: bounceIn 0.6s ease;
}

#wcm-achievement-toast p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* Animación de entrada */
@keyframes slideUpFade {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animación para el icono */
@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    80% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive: en móviles, centrar el toast abajo */
@media (max-width: 480px) {
    #wcm-achievement-toast {
        bottom: 15px;
        right: 50%;
        transform: translateX(50%);
        max-width: 90%;
    }
}