styless

/* ============================================
   ESTILOS GENERALES
   ============================================ */
body {
  font-family: Arial, sans-serif;
  background: #f2f6f9;
  margin: 0;
  padding: 0;
}

header {
  background: #2c7be5;
  color: white;
  padding: 15px;
  text-align: center;
}

/* ============================================
   ESTILOS COMUNES PARA TODAS LAS PÁGINAS
   ============================================ */

/* Botones generales */
.btn {
  background: #2c7be5;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background 0.3s;
  font-size: 14px;
}

.btn:hover {
  background: #1a68d1;
  color: white;
  text-decoration: none;
}

/* Variantes de botones */
.btn-success {
  background: #28a745;
}

.btn-success:hover {
  background: #218838;
}

.btn-view {
  background: #17a2b8;
}

.btn-view:hover {
  background: #138496;
}

.btn-edit {
  background: #ff9800;
}

.btn-edit:hover {
  background: #e68900;
}

.btn-delete {
  background: #dc3545;
}

.btn-delete:hover {
  background: #c82333;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Mensajes de alerta */
.mensaje-alerta {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

.mensaje-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mensaje-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.modal-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 5px;
}

.close-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

/* ============================================
   ESTILOS PARA INDEX.PHP (DISEÑO DE DOS COLUMNAS)
   ============================================ */

/* Contenedor principal */
.container {
  max-width: 1200px; /* Cambiado para dos columnas */ 
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 15px;
  }
}

/* Diseño de dos columnas */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .two-column-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Columna izquierda - Búsqueda */
.search-column {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #dee2e6;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.search-column h2 {
  color: #2c7be5;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.5rem;
  border-bottom: 3px solid #2c7be5;
  padding-bottom: 10px;
}

/* Campo de búsqueda */
.search-field {
  width: 200px;
  padding: 18px 20px;
  font-size: 18px;
  border: 3px solid #2c7be5;
  border-radius: 10px;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: all 0.3s;
  background: white;
}

.search-field:focus {
  outline: none;
  border-color: #1a68d1;
  box-shadow: 0 0 0 4px rgba(44, 123, 229, 0.2);
}

/* Botón de búsqueda */
.btn-search-full {
  background: #2c7be5;
  color: white;
  border: none;
  padding: 16px 30px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(44, 123, 229, 0.3);
}

.btn-search-full:hover {
  background: #1a68d1;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Enlaces en columna de búsqueda */
.search-links-column {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #adb5bd;
}

.link-btn-column {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
}

.link-btn-column.view-all {
  background: #28a745;
  color: white;
}

.link-btn-column.view-all:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

/* Columna derecha - Registro */
.register-column {
  background: white;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #dee2e6;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.register-column h2 {
  color: #ff9800;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.5rem;
  border-bottom: 3px solid #ff9800;
  padding-bottom: 10px;
}

/* Botón de registro */
.btn-register {
  background: #ff9800;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.btn-register:hover {
  background: #e68900;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Estilos de formulario */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2c7be5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

.file-input-container {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  text-align: center;
}

.file-input-container input[type="file"] {
  border: none;
  background: transparent;
}

/* Resultados de búsqueda (ancho completo) */
.results-full-width {
  grid-column: 1 / -1;
  margin-top: 20px;
}

/* Mensaje de bienvenida */
.welcome-box {
  background: white;
  padding: 30px;
  text-align: center;
  border-radius: 15px;
  border: 2px dashed #e9ecef;
  margin: 20px 0;
  grid-column: 1 / -1;
}

.welcome-box h3 {
  color: #2c7be5;
  margin-bottom: 15px;
}

.welcome-box p {
  color: #6c757d;
  font-size: 16px;
  margin-bottom: 10px;
}

/* ============================================
   ESTILOS PARA LISTAR.PHP
   ============================================ */

.listar-container {
  max-width: 1200px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .listar-container {
    margin: 10px;
    padding: 15px;
  }
}

.listar-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2c7be5;
}

@media (min-width: 768px) {
  .listar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.listar-header h2 {
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .listar-header h2 {
    text-align: left;
  }
}

/* Buscador en listar.php */
.search-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px solid #dee2e6;
}

.search-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #495057;
  text-align: center;
  font-size: 1.3rem;
}

.search-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .search-input-group {
    flex-direction: row;
  }
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 2px solid #2c7be5;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.btn-search {
  background: #2c7be5;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  min-width: 100px;
  transition: background 0.3s;
}

.btn-search:hover {
  background: #1a68d1;
}

.search-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (min-width: 768px) {
  .search-actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

.search-action-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #2c7be5;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  min-width: 180px;
  transition: background 0.3s;
}

.search-action-btn.view-all {
  background: #28a745;
}

.search-action-btn.view-all:hover {
  background: #218838;
}

.search-action-btn.new-reg {
  background: #ff9800;
}

.search-action-btn.new-reg:hover {
  background: #e68900;
}

.search-separator {
  color: #adb5bd;
  display: none;
}

@media (min-width: 768px) {
  .search-separator {
    display: inline;
  }
}

/* Tabla de registros */
.total-registros {
  background: #e9f7fe;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #2c7be5;
  text-align: center;
  border-left: 4px solid #2c7be5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
  }
}

th {
  background: #2c7be5;
  color: white;
  padding: 12px 8px;
  text-align: left;
  font-weight: bold;
}

td {
  padding: 10px 8px;
  border-bottom: 1px solid #eaeaea;
}

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

/* Miniaturas de fotos */
.foto-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.no-foto {
  color: #6c757d;
  font-style: italic;
  font-size: 0.9em;
}

/* Acciones en tabla */
.acciones {
  display: flex;
  gap: 5px;
}

/* Observaciones */
.observacion-cell {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sin-observacion {
  color: #6c757d;
  font-style: italic;
}

/* Estado vacío */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-state h3 {
  color: #6c757d;
  margin-bottom: 10px;
}

/* Botones de acción inferiores */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .action-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
}

/* Badges y etiquetas */
.cachorro-nombre {
  color: #2c7be5;
  font-weight: bold;
}

.date-badge {
  background: #e9f7fe;
  color: #2c7be5;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

/* ============================================
   ESTILOS PARA RESULTADOS DE BÚSQUEDA (COMPARTIDOS)
   ============================================ */

.resultados-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .resultados-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.resultado-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.resultado-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
  background: #f8f9fa;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
}

.card-id {
  font-weight: bold;
  color: #495057;
}

.card-fecha {
  font-size: 12px;
  color: #6c757d;
  background: #e9ecef;
  padding: 3px 8px;
  border-radius: 3px;
}

.card-body {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.card-info {
  flex: 1;
}

.info-item {
  margin-bottom: 8px;
  display: flex;
}

.info-label {
  font-weight: bold;
  color: #495057;
  min-width: 100px;
  font-size: 13px;
}

.info-value {
  color: #6c757d;
  flex: 1;
  font-size: 14px;
}

.info-value.destacado {
  color: #2c7be5;
  font-weight: bold;
}

.card-foto {
  width: 60px;
  height: 60px;
}

.foto-mini {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.card-actions {
  padding: 10px 15px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  gap: 5px;
  justify-content: center;
}

/* Sin resultados */
.sin-resultados {
  background: #f8f9fa;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px dashed #dee2e6;
}

.sin-resultados p {
  color: #6c757d;
  margin-bottom: 10px;
}

.ver-todos {
  text-align: center;
  margin-top: 20px;
}

/* ============================================
   RESPONSIVE PARA MÓVILES
   ============================================ */

@media (max-width: 768px) {
  .search-column,
  .register-column {
    padding: 20px;
  }
  
  .search-field {
    padding: 16px;
    font-size: 16px;
  }
  
  .btn-search-full,
  .btn-register {
    padding: 14px;
    font-size: 16px;
  }
  
  .link-btn-column,
  .search-action-btn {
    width: 100%;
    padding: 12px;
  }
  
  .card-body {
    flex-direction: column;
  }
  
  .card-foto {
    align-self: center;
  }
}

/* Estilos para resultados de búsqueda en index.php */
.resultados-busqueda {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.resultados-busqueda h3 {
    color: #2c7be5;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c7be5;
}

.resultados-count {
    background: #e9f7fe;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: bold;
    color: #2c7be5;
    text-align: center;
    border-left: 4px solid #2c7be5;
    font-size: 16px;
}

/* Si aún no tienes estos estilos para las tarjetas de resultados, añádelos: */
.resultado-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.resultado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.card-id {
    font-weight: bold;
    color: #495057;
    font-size: 14px;
}

.card-fecha {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.card-body {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.card-info {
    flex: 1;
}

.info-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.info-label {
    font-weight: bold;
    color: #495057;
    min-width: 110px;
    font-size: 14px;
}

.info-value {
    color: #6c757d;
    flex: 1;
    font-size: 14px;
}

.info-value.destacado {
    color: #2c7be5;
    font-weight: bold;
    font-size: 16px;
}

.card-foto {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.foto-mini {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.card-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Para móviles */
@media (max-width: 768px) {
    .card-body {
        flex-direction: column;
    }
    
    .card-foto {
        align-self: center;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        min-width: auto;
    }

}

/* ============================================
   ESTILOS EXCLUSIVOS PARA VER.PHP
   ============================================ */

.ver-container {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.ver-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2c7be5;
}

@media (min-width: 768px) {
    .ver-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.ver-header h2 {
    margin: 0;
    color: #2c7be5;
    font-size: 1.8rem;
    text-align: center;
}

@media (min-width: 768px) {
    .ver-header h2 {
        text-align: left;
    }
}

/* Tarjeta principal */
.ver-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Header de la tarjeta */
.ver-card-header {
    background: linear-gradient(135deg, #2c7be5, #1a68d1);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.ver-card-id {
    font-size: 14px;
}

.ver-card-fecha {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Cuerpo de la tarjeta */
.ver-card-body {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .ver-card-body {
        grid-template-columns: 2fr 1fr;
    }
}

/* Información */
.ver-info-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.ver-info-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 5px solid #2c7be5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.ver-info-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ver-info-value {
    font-size: 16px;
    color: #212529;
    font-weight: bold;
}

.ver-info-value.destacado {
    color: #2c7be5;
    font-size: 18px;
}

/* VALOR COBRADO - MUY IMPORTANTE */
.ver-info-value.valor {
    color: #2e7d32;
    font-size: 22px;
    font-weight: bold;
    background: #e6f4ea;
    padding: 10px 15px;
    border-radius: 10px;
    display: inline-block;
    border: 2px solid #c3e6cb;
}

/* Observación */
.ver-observacion {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

/* Foto grande */
.ver-foto-box {
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.ver-foto-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ver-foto-box img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 12px;
    border: 3px solid #dee2e6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ver-no-foto {
    color: #6c757d;
    font-style: italic;
    padding: 30px 10px;
}

/* Botones inferiores */
.ver-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .ver-actions {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

.ver-actions .btn {
    min-width: 180px;
    font-size: 15px;
}

/* Responsive extra */
@media (max-width: 576px) {
    .ver-container {
        padding: 20px;
    }

    .ver-info-value.valor {
        font-size: 20px;
    }
}



/* ============================================
   ESTILOS PARA EDITAR.PHP
   ============================================ */

.editar-form {
  margin-top: 20px;
}

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

@media (min-width: 768px) {
  .editar-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.editar-grid .full-width {
  grid-column: 1 / -1;
}

.editar-foto-actual {
  margin-top: 10px;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  text-align: center;
}

.editar-foto-actual img {
  max-width: 150px;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  margin-top: 8px;
}

/* ============================================
   ESTILOS CORRECTOS PARA TELÉFONO Y RAZA EN VER.PHP
   ============================================ */

.ver-info-value.telefono {
    color: #2c7be5;
    font-weight: bold;
    font-size: 16px;
}

.ver-info-value.raza {
    background: #f1f3f5;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    border: 1px solid #dee2e6;
}

/* =========================
   CLIENTE VER - FICHA
========================= */
.cliente-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.cliente-datos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.cliente-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================
   MASCOTAS
========================= */
.mascota-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

.mascota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mascota-header h3 {
    margin: 0;
}

/* =========================
   VISITAS
========================= */
.visitas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.visitas-table th,
.visitas-table td {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 0.9rem;
}

.visitas-table th {
    background: #f0f0f0;
}

.no-visitas {
    font-style: italic;
    color: #777;
    margin-top: 8px;
}

/*    Miniatura pequeña 
.foto-mini {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;    
}

.foto-mini:hover {
    transform: scale(1.1);
}  */


/* Miniatura pequeña click le hace grande */
.mascota-foto img {
    width: 90px;   /* tamaño pequeño */
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #dee2e6;
}

/* Modal suba la foto */
.modal-foto {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-foto img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-foto .cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}



/* Modal suba la foto para registrar ingreso */
.foto-mini {
    width: 90px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
}



/* =========================
   MINIATURAS
========================= */
.foto-mini {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.foto-mini:hover {
    transform: scale(1.1);
}

/* =========================
   MODAL FOTO GRANDE
========================= */
.modal {
    display: none;               /* CLAVE */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;               /* CLAVE */
}

.modal-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* =========================
   EDITAR VISITA
   ========================= */
.editar-visita {
    max-width: 720px;
    margin: 30px auto;
}

.editar-visita form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.editar-visita label {
    font-weight: 600;
    margin-top: 8px;
}

.editar-visita input[type="date"],
.editar-visita input[type="number"],
.editar-visita textarea,
.editar-visita input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.editar-visita textarea {
    resize: vertical;
    min-height: 90px;
}

.editar-visita img.foto-mini {
    max-width: 160px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin: 10px 0;
}

.editar-visita hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.editar-visita .btn {
    margin-top: 10px;
}


/* ===========================
   FORMULARIOS (GLOBAL)
   =========================== */

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: 600;
    margin-top: 5px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea,
select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

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

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.15);
}

/* Mensajes */
form p {
    margin: 0;
    font-weight: bold;
}

/* ===========================
   CARD CENTRADA (LOGIN / USUARIOS)
   =========================== */

.card.editar-visita {
    max-width: 420px;
    margin: 40px auto;
}

.form-small {
    max-width: 300px;
}

/* FIX: Evitar que búsqueda se expanda demasiado */
.search-column {
  max-width: 500px;
  margin: 0 auto;
}

.search-field, 
.btn-search-full {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.btn-search-full {
  width: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ============================================
   ESTILOS PARA FORMULARIO DE BÚSQUEDA EN LISTAR.PHP
   ============================================ */

/* Contenedor del formulario de búsqueda */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Campo de búsqueda dentro del formulario */
.search-form input[type="text"] {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #2c7be5;
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.3s;
  background: white;
}

.search-form input[type="text"]:focus {
  outline: none;
  border-color: #1a68d1;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.2);
}

/* Botones dentro del formulario de búsqueda */
.search-form .btn {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Botón secundario (Ver todos) */
.search-form .btn-secondary {
  background: #6c757d;
}

.search-form .btn-secondary:hover {
  background: #5a6268;
}

/* ===========================
   LOGIN / INICIO
   =========================== */

body {
    background: linear-gradient(135deg, #f6f9fc, #e9f3ee);
}

/* Encabezado login */
.login-header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 32px;
    margin: 0;
    color: #2f6f4e;
}

.login-header span {
    font-size: 14px;
    color: #666;
}

/* Card centrada - CONTAINER PRINCIPAL (con imagen) */
.card.editar-visita {
    max-width: 420px;
    margin: 0 auto 40px auto;
    padding: 25px;
    border-radius: 12px;
    
    /* IMAGEN SOLO EN EL CONTAINER */
    background-color: #ffffff;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('uploads/fondo-login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    
    /* Asegurar que los hijos tengan fondo transparente */
    position: relative;
    z-index: 1;
}

/* Título del login */
.card.editar-visita h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    /* Fondo semitransparente para mejor lectura si es necesario */
    background-color: transparent;
}

/* Inputs más elegantes - MANTENER FONDO ORIGINAL */
.card.editar-visita input {
    background: #f9f9f9;  /* Mantiene su fondo original */
    border: 1px solid #ddd;
    /* Asegurar que los inputs estén sobre la imagen */
    position: relative;
    z-index: 2;
}

.card.editar-visita input:focus {
    background: #fff;
}

/* Botón principal */
.btn-success {
    background: linear-gradient(135deg, #4CAF50, #2e8b57);
    border: none;
    color: #fff;
    position: relative;
    z-index: 2;
}

.btn-success:hover {
    opacity: 0.95;
}

/* Mensaje error */
.login-error {
    background: #ffecec;
    color: #b00020;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    position: relative;
    z-index: 2;
}