/* ========================================
   Consulta Apto Cobro - Vista Pública
   ======================================== */

:root {
  --primary-color: #4ab7d8;
  --primary-dark: #2a297e;
  --primary-blue: #6994bd;
  --info-blue: #3498db;
  --success-green: #2ecc71;
  --warning-orange: #f39c12;
  --danger-red: #e74c3c;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-md: 0 4px 6px rgba(42, 41, 126, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apto-cobro-container {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: calc(100vh - 300px);
}

.apto-cobro-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.apto-cobro-header {
  text-align: center;
  margin-bottom: 3rem;
}

.apto-cobro-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.apto-cobro-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Search Card */
.search-apto-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.search-apto-card:hover {
  box-shadow: var(--shadow-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.input-group-search {
  display: flex;
  gap: 1rem;
}

.input-group-search .form-control {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
}

.input-group-search .form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 183, 216, 0.1);
}

.btn-search {
  padding: 0.8rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--info-blue) 100%
  );
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 183, 216, 0.3);
}

.btn-search:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Result Card */
.result-apto-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 3rem;
  display: none;
  border: 1px solid var(--border-color);
}

.result-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.result-header.success {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-green);
}

.result-header.warning {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning-orange);
}

.result-header i {
  font-size: 1.5rem;
}

.result-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.result-body {
  padding: 2rem;
}

.result-message {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-line;
}

/* Info Section */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.info-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.info-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-list i {
  color: var(--primary-color);
  width: 20px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-action {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.btn-action-primary {
  background: var(--primary-dark);
  color: white;
}

.btn-action-primary:hover {
  background: #1a1a5e;
  color: white;
  transform: translateX(5px);
}

.btn-action-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-action-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .info-section {
    grid-template-columns: 1fr;
  }

  .input-group-search {
    flex-direction: column;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }
}
