/* ===============================
   ESTILO GENERAL
================================*/
*{
    font-family: "Varela Round", serif;
    font-weight: 400;
    font-style: normal;  
}
/* ========================================= */
/* === ESTILOS MASCOTAS PERDIDAS === */
/* ========================================= */

:root {
    --color-mint: #AEE2E1;
    --color-red-alert: #ff6b6b; /* Color de alerta */
    --color-dark: #333;
    --bg-gray: #f4f7f6;
}

body {
    background-color: var(--bg-gray);
    margin: 0;
    padding: 0;
}

/* HERO SECTION ROJA/NARANJA (Diferente a la de adoptar) */
.alert-hero {
    background: linear-gradient(135deg, #f1be83, #ff9966);
    padding: 80px 20px 60px 20px; /* ✅ top 80px = altura nav fijo */
    text-align: center;
    color: white;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 20px rgba(255, 94, 98, 0.3);
}

.alert-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.alert-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-filter {
    background: white;
    color: #ff5e62;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.btn-filter:hover {
    transform: scale(1.05);
}

/* GRID CONTAINER */
.lost-container {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.lost-grid {
    display: grid;
    /* RESPONSIVE: Automáticamente se ajusta */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* TARJETA DE MASCOTA PERDIDA */
.lost-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative; /* Para la cinta */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.lost-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* CINTA "PERDIDO" */
.ribbon {
    position: absolute;
    right: -5px; 
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px; 
    height: 75px; 
    text-align: right;
}

.ribbon span {
    font-size: 10px;
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 100px;
    display: block;
    background: var(--color-red-alert);
    background: linear-gradient(var(--color-red-alert) 0%, #c0392b 100%);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px; 
    right: -21px;
}

/* IMAGEN */
.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.lost-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.location-badge {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

/* DETALLES */
.card-details {
    padding: 20px;
}

.header-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-details h2 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--color-dark);
}

.species-icon {
    font-size: 1.2rem;
    color: #999;
}

.description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.info-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.info-tags span {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #555;
}

/* BOTONES */
.btn-report {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--color-red-alert);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-report:hover {
    background: #e55050;
}

.btn-mine {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    background: #f9f9f9;
    color: #999;
    border-radius: 10px;
    cursor: default;
}

/* MODALES (Estilo limpio) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.btn-apply, .btn-send-report {
    width: 100%;
    padding: 12px;
    background: var(--color-mint);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    color: #004d40;
}

.btn-send-report {
    background: var(--color-red-alert);
    color: white;
}

.report-box textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    resize: none;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ESTADO VACÍO */
.empty-state-lost {
    text-align: center;
    padding: 50px;
    color: #999;
}

.empty-state-lost i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .alert-hero h1 { font-size: 1.8rem; }
    .lost-grid { grid-template-columns: 1fr; /* Una columna en móvil */ }
}

/* ===============================
   ANIMACIÓN DE ÉXITO
================================*/
.success-report {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #38b000;
    color: white;
    padding: 18px 25px;
    border-radius: 18px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: aparecer .3s ease-out;
    z-index: 2500;
}

.success-icon {
    font-size: 24px;
}
  
  /* .nav estilos en style.css — no duplicar aquí */
  
  .nav-list,
  .nav2-list {
    list-style-type: none;
    display: flex;
    gap: 1rem;
    padding: 0; 
    margin: 0; 
  }
  
  .nav-list li,
  .nav2-list li {
    display: flex; 
    align-items: center; 
  }
  
  .nav-list li a,
  .nav2-list li a {
    text-decoration: none;
    color: #1c1c1c;
    font-size: 18px; 
    padding: 1rem;
  }
  
  /* Dropdown Menu */
  #dropdown-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none; 
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 100%; 
    left: 0;
    width: 150px;
  }
  
  .user-menu {
    position: relative;
  }
  
  #dropdown-menu li {
    padding: 10px;
    text-align: left;
  }
  
  #dropdown-menu li:hover {
    background-color: #f0f0f0;
  }
  
  .user-menu:hover #dropdown-menu {
    display: block; 
  }
  
  img#user-img {
    display: block;
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
  }
  
  
  /* Estilos para el menú hamburguesa */
  .menu-toggle {
    display: none; /* Oculto por defecto en pantallas grandes */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostrar botón hamburguesa */
    }
  
    .nav-list {
        display: none; /* Ocultar menú por defecto */
        flex-direction: column;
        gap: 10px;
        background-color: #fff;
        position: absolute;
        top: 0%;
        left: 50%;
        width: 50%;
        padding: 10px 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        height: 100%;
    }
  
    .nav-list.show {
        display: flex; /* Mostrar menú cuando se active */
    }
  
    .nav-list a {
        font-size: 14px;
    }
  
    .user-menu {
        text-align: center;
    }
  }
  
  #dropdown-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
    width: 150px;
  }
  
  .user-menu {
    position: relative;
  }
  
  #dropdown-menu li {
    padding: 10px;
    text-align: left;
  }
  
  #dropdown-menu li:hover {
    background-color: #f0f0f0;
  }
  
  .user-menu:hover #dropdown-menu {
    display: block;
  }
  
  img#user-img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
  }
  
  .Pub {
    padding: 2rem;
  }
  
  .container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
  }
  
  .card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 10px;
    text-align: center;
  }
  
  .card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
  }
  
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
  }
  
  .card-footer a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    transition: color 0.3s;
  }
  
  .card-footer a:hover {
    color: #0056b3;
  }
  
  .card-footer span {
    font-size: 12px;
    color: #888;
  }
  
  .detalles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    padding: 20px;
  }
  
  .detalles-card {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .detalles-media {
    width: 100%;
    padding: 20px;
  }
  
  .carousel img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  .detalles-content {
    padding: 20px;
    width: 100%;
  }
  
  .detalles-content h1 {
    font-size: 28px;
    color: black;
    margin-bottom: 15px;
    word-wrap: break-word;
  }
  
  .detalles-content p {
    font-size: 16px;
    margin: 10px 0;
    color: #555;
    word-wrap: break-word;
  }
  
  .EnPu {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 20px;
  }
  
  form {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
  }
  
  form h2 {
    text-align: center;
    color: #343a40;
    margin-bottom: 20px;
    font-size: 24px;
  }
  
  form label {
    display: block;
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
  }
  
  form input[type="text"],
  form input[type="file"],
  form textarea,
  form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
  }
  
  form textarea {
    resize: none;
  }
  
  form button {
    display: block;
    width: 100%;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  form button:hover {
    background-color: #0056b3;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .card {
        width: 100%;
    }
  
    .detalles-container {
        flex-direction: column;
    }
  
    .detalles-content {
        width: 100%;
    }
  
    .Pub {
        padding: 1rem;
    }
  
    form {
        max-width: 90%;
    }
  }
  
  @media (max-width: 480px) {
    .nav-list {
        flex-direction: column;
    }
  
    .card-title {
        font-size: 18px;
    }
  
    .card-description {
        font-size: 12px;
    }
  }
  
  
  form p {
    text-align: center;
    color: #868e96;
    font-size: 14px;
    margin-top: 10px;
  }
  
  form p a {
    color: #007bff;
    text-decoration: none;
  }
  
  form p a:hover {
    text-decoration: underline;
  }
  
  .reportar-form {
    margin-top: 10px;
    display: none;
  }
  
  .form-reporte {
    display: none;
    margin-top: 10px;
  }
  
  .form-reporte.oculto {
    display: none;
  }
  
  .form-reporte.visible {
    display: block;
  }
  
  
  .reportar-btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #ff4d4d;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .reportar-btn:hover {
    background-color: #e04444;
  }
  
  .modal {
    display: none; /* Ocultar por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
  }
  
  /* Animación de aparición del modal */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  
  /* Animación de zoom para el contenido del modal */
  @keyframes zoomIn {
    from {
      transform: scale(0.9);
    }
    to {
      transform: scale(1);
    }
  }
  
  /* Botón de cierre */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    background: #ff4b2b;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .close-btn:hover {
    background: #ff1c00;
    transform: scale(1.2);
  }
  
  /* Mensaje del modal */
  #modal-message {
    font-size: 18px;
    color: #fff;
    margin: 20px 0;
    font-family: 'Varela Round', sans-serif;
  }
  

  
  /* Clase "visible" para mostrar el modal de forma dinámica */
  .visible {
    display: flex;
    animation: fadeIn 0.5s ease;
  }
  
  /* Clase "oculto" para ocultar el modal */
  .oculto {
    display: none;
  }
  

/* Estilos para los Íconos de Navegación */
.nav-icon {
    /* Define un tamaño fijo para todos */
    width: 40px; 
    height: 40px; 
    
    /* ¡La clave! Asegura que la imagen se ajuste dentro del espacio 30x30 
       sin cortarse, manteniendo sus proporciones. */
    object-fit: contain; 
    vertical-align: middle;
    transition: all 0.2s ease-out;
}

.nav-list li a,
.nav2-list li a {
    text-decoration: none;
    color: transparent; /* Mantenemos esto porque ahora son iconos */
    font-size: 18px; 
    padding: 0.5rem; /* Ajuste el padding para centrar mejor el icono */
    
    /* [AÑADIR ESTO] Esto es clave para posicionar el borde animado */
    position: relative; 
    overflow: hidden; /* Ocultamos el borde antes de que se dibuje */
}

/* Modificar la regla de hover del ícono (para quitar el levantamiento) */
.nav-list li a:hover .nav-icon {
    /* Quitamos el transform: translateY(-3px) y dejamos un sutil brillo */
    transform: none; /* Asegura que no se mueva */
    filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.6)); /* Resplandor sutil */
}

/* ---------------------------------------------------- */
/* === EFECTO DE Borde ANIMADO COMPLETO (INNOVADOR) === */
/* ---------------------------------------------------- */

/* 1. Pseudo-elemento para Líneas Horizontales (Superior e Inferior) */
.nav-list li a::before {
    content: '';
    position: absolute;
    height: 1px; /* Altura de la línea */
    background: #007bff; /* Color del borde */
    transition: width 0.3s ease-in-out; /* Animamos el ancho */
    width: 0%; /* Inicia sin ancho */
}

/* Línea Superior */
.nav-list li a::before {
    top: 0;
    left: 0;
}

/* Línea Inferior (Se logra con una sombra interna que actúa como borde) */
/* Es más limpio usar box-shadow para el segundo borde horizontal */

/* 2. Pseudo-elemento para Líneas Verticales (Izquierda y Derecha) */
.nav-list li a::after {
    content: '';
    position: absolute;
    width: 1px; /* Ancho de la línea */
    background: #007bff; /* Color del borde */
    /* Animamos la altura y le damos un RETRASO para que empiece después de la línea horizontal */
    transition: height 0.3s ease-in-out 0.3s; 
    height: 0%; /* Inicia sin altura */
}

/* Línea Izquierda */
.nav-list li a::after {
    top: 0;
    left: 0;
}

/* ------------------------------------------- */
/* === ESTADO HOVER: Dibuja las cuatro líneas === */
/* ------------------------------------------- */

/* Dibuja la línea horizontal superior */
.nav-list li a:hover::before {
    width: 100%; 
    box-shadow: 0 55px 0 0 #007bff; /* <--- ¡ESTA ES LA CLAVE! Crea la línea inferior usando sombra. */
}

/* Dibuja las líneas verticales (derecha e izquierda) */
.nav-list li a:hover::after {
    height: 100%; 
    box-shadow: 55px 0 0 0 #007bff; /* <--- ¡ESTA ES LA CLAVE! Crea la línea derecha usando sombra. */
}

/* -------------------------------------------------------------------- */
/* === EFECTO ESTÁTICO DE BORDE EN LA PESTAÑA ACTIVA (.active-page) === */
/* -------------------------------------------------------------------- */

/* Estilo estático para el ícono de la pestaña activa */
.nav-list li a.active-page .nav-icon {
    /* Mantenemos el resplandor de forma permanente */
    transform: none; 
    filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.6)); 
}


/* Dibuja las líneas horizontales de forma permanente */
.nav-list li a.active-page::before {
    width: 100%; /* La línea horizontal superior se dibuja */
    box-shadow: 0 55px 0 0 #007bff; /* La línea horizontal inferior se dibuja */
    /* Aseguramos que la transición de ancho esté completa */
    transition: none; 
}

/* Dibuja las líneas verticales de forma permanente */
.nav-list li a.active-page::after {
    height: 100%; /* La línea vertical izquierda se dibuja */
    box-shadow: 55px 0 0 0 #007bff; /* La línea vertical derecha se dibuja */
    /* Aseguramos que la transición de altura esté completa */
    transition: none;
}

/* 1. Posicionamiento del Contenedor Principal */
.user-menu {
    position: relative; /* Permite que el submenú se posicione correctamente */
}

/* 2. Estilo y Ocultamiento del Submenú */
.nav2-list {
    /* Mantén tus estilos de caja (fondo, sombra, borde) */
    list-style-type: none;
    position: absolute; 
    top: 100%; 
    right: 0; /* Lo alinea a la derecha del ícono */
    min-width: 180px; 
    background-color: #ffffff; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    padding: 5px 0;
    z-index: 1000; 
    flex-direction: column; 
    gap: 0; 
    
    /* CLAVE: Ocultar por defecto. El !important asegura que sobrescriba otros estilos */
    display: none !important; 
}

/* 3. Regla para MOSTRAR el menú con JavaScript */
/* JS añadirá la clase 'active' al contenedor .user-menu */
.user-menu.active .nav2-list {
    display: flex !important; 
}

/* 4. Resplandor para el ícono de perfil cuando está abierto (activo) */
/* JS añadirá la clase 'active' al ícono */
.nav-icon.active {
    filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.8));
}

/* 5. ¡SOLUCIÓN A LAS LÍNEAS EXTRAÑAS EN EL SUBMENÚ! */
.nav2-list li a {
    /* Desactivar el posicionamiento relativo necesario para las líneas */
    position: static !important; 
    
    /* Estilo para alinear los íconos (emojis) */
    display: flex;
    align-items: center;
    gap: 8px; 
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
}

/* CLAVE: Eliminar los pseudo-elementos (las líneas) en el submenú */
.nav2-list li a::before,
.nav2-list li a::after {
    content: none !important; 
}

/* ESTILO PARA EL ÍCONO DE PERFIL ACTIVO (User.png) */
/* CLAVE: Si la clase 'active' está en el <li> padre */
.user-menu.active .nav-icon,
.nav-icon.active {
    /* Aquí aplicamos el mismo efecto de resplandor y 'cuadrito' que tienen los otros */
    filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.8));
    /* Si tienes algún borde o sombreado para simular el 'cuadrito', ponlo aquí */
}

/* Para el ícono de perfil, que usa la clase 'active' en el <li>: */
.user-menu.active .nav-icon {
    border: 2px solid #007bff; 
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.8);
}

/* === FORZAR MISMO MENU QUE INICIO === */
@media (max-width: 768px) {

    /* No queremos menú móvil, así que: */
    .menu-toggle {
        display: none !important;
    }

    .nav {
        flex-direction: row;
        align-items: center;
    }

    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    .nav-icon, #user-img {
        width: 35px;
        height: 35px;
    }

    .nav-list li a {
        padding: 5px;
    }

    /* Ajuste pequeño del dropdown */
    .nav2-list {
        right: -50px;
    }
}

/* ========================================= */
/* === NUEVOS BOTONES TARJETA PERDIDOS === */
/* ========================================= */

.card-actions {
    display: flex;
    gap: 15px; /* Un poco más de espacio entre ellos */
    margin-top: 15px;
    width: 100%;
}

/* ESTILOS COMUNES (GEMELOS)
   Aplicamos esto a AMBOS botones a la vez para garantizar que sean idénticos 
*/
.btn-view-details, 
.btn-report {
    /* 1. Geometría Idéntica */
    flex: 1;                /* Ambos ocupan el 50% exacto */
    height: 48px;           /* Altura FIJA obligatoria para ambos */
    box-sizing: border-box; /* Evita que el borde aumente el tamaño */
    
    /* 2. Alineación del texto */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    /* 3. Tipografía */
    font-size: 15px;
    font-weight: bold;
    font-family: "Varela Round", sans-serif;
    text-decoration: none;
    
    /* 4. Bordes y Forma */
    border-radius: 12px;
    cursor: pointer;
    margin: 0; /* Elimina márgenes default del navegador */
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

/* --- ESTILO ESPECÍFICO: BOTÓN GRIS (Detalles) --- */
.btn-view-details {
    background-color: #f4f4f4;
    color: #666;
    border: 1px solid #ddd; /* Borde gris suave */
}

.btn-view-details:hover {
    background-color: #e0e0e0;
    color: #333;
    transform: translateY(-3px);
}

/* --- ESTILO ESPECÍFICO: BOTÓN ROJO (Reportar) --- */
.btn-report {
    background: var(--color-red-alert);
    color: white;
    /* IMPORTANTE: Borde del mismo color para igualar el píxel de borde del botón gris */
    border: 1px solid var(--color-red-alert); 
    box-shadow: 0 4px 6px rgba(255, 107, 107, 0.3); /* Sombra suave roja */
}

.btn-report:hover {
    background: #ff5252;
    border-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.4);
}

/* Botón inactivo "Es tuya" */
.btn-mine {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    background: #f9f9f9;
    color: #999;
    border-radius: 10px;
    cursor: default;
    text-align: center;
    box-sizing: border-box;
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 350px) {
    .card-actions {
        flex-direction: column;
    }
    .btn-view-details, .btn-report {
        width: 100%;
        flex: none; /* Quita el flex 1 para que ocupen todo el ancho */
    }
}

/* --- BOTÓN DE DENUNCIA (Pequeño y discreto) --- */
.btn-flag-icon {
    width: 45px; /* Cuadrado/Redondo */
    height: auto; /* Se ajusta a la altura de los otros */
    border: 2px solid #ffebee;
    border-radius: 12px;
    background: #fff;
    color: #e57373; /* Rojo suave */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0; /* No dejar que se aplaste */
}

.btn-flag-icon:hover {
    background: #ffebee;
    color: #d32f2f;
    border-color: #ffcdd2;
    transform: translateY(-2px);
}

.btn-flag-icon i {
    font-size: 1.1rem;
}

/* Botón dentro del modal de denuncia */
.btn-submit-denuncia {
    width: 100%;
    padding: 12px;
    background: #546e7a; /* Gris azulado serio para moderación */
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit-denuncia:hover {
    background: #455a64;
}
/* === NOTIFICACIÓN DE ÉXITO (ESTILO ADOPTAR) === */
.success2-report {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71; 
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    z-index: 100000;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
    /* Animación de entrada */
    animation: slideUpFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.5s ease;
    min-width: 250px; /* Tamaño mínimo para que no se vea minúsculo */
    width: auto;
}

.success2-report p {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
}

.success-icon {
    background: white;
    color: #2ecc71;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Animación idéntica a Adoptar */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ========================================= */
/* === CORRECCIÓN DE MODALES EN MÓVIL === */
/* ========================================= */

/* 1. Reseteamos el formulario SOLO cuando está dentro de un modal */
.modal-box form {
    padding: 0 !important;        /* Quita el relleno doble */
    margin: 0 !important;
    background: transparent !important; /* Quita el fondo blanco extra */
    box-shadow: none !important;  /* Quita la sombra doble */
    width: 100% !important;       /* Fuerza a que respete el ancho del modal */
    max-width: 100% !important;
    box-sizing: border-box;       /* Asegura que los bordes no aumenten el tamaño */
}

/* 2. Aseguramos que la caja del modal se centre bien */
.modal-box {
    box-sizing: border-box; /* Importante para que el padding no deforme la caja */
    margin: 0 auto;         /* Centrado horizontal de seguridad */
    
    /* Si en pantallas muy pequeñas el modal es muy alto, esto permite scrollear */
    max-height: 90vh;       
    overflow-y: auto;       
}

/* 3. Ajuste específico para los inputs dentro del modal */
.modal-box input, 
.modal-box textarea, 
.modal-box select {
    width: 100% !important;   /* Que ocupen todo el ancho disponible */
    box-sizing: border-box;   /* Que el padding del input no lo rompa */
}

.views-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    z-index: 2;
    transition: 0.3s;
}

.views-badge i {
    font-size: 0.75rem;
}


.lost-card:hover .views-badge {
    transform: scale(1.08);
    background: rgba(0, 0, 0, 0.8);
}

.alert-hero { padding-top: 80px !important; }

@media (max-width: 768px) {
    .alert-hero { padding-top: 78px !important; }
}