/* ============================================================
   Portal del Cliente - ISP Pay Venezuela
   Diseño ultra limpio, responsive mobile-first y transiciones smooth
   ============================================================ */

:root {
  --primary-color: #0284c7;
  --secondary-color: #0f172a;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #e2e8f0;
}

body.portal-page {
  background-color: var(--bg-gradient-start);
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.05) 0px, transparent 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-wrapper {
  position: relative;
  width: 100%;
  padding: 2.5rem 1rem;
  margin: auto;
}

/* Tarjeta principal del portal */
.portal-card {
  background: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.03);
  padding: 2.75rem 2.25rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: fadeInUp 0.4s ease-out;
}

@media (max-width: 576px) {
  .portal-card {
    padding: 2rem 1.25rem;
    border-radius: 1.5rem;
  }
}

/* Header del portal */
.portal-header {
  margin-bottom: 2rem;
}

.portal-logo {
  max-height: 90px;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portal-logo:hover {
  transform: scale(1.04);
}

.portal-logo-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #38bdf8);
  color: white;
  border-radius: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.28);
  transition: transform 0.3s ease;
}

.portal-logo-placeholder:hover {
  transform: rotate(5deg) scale(1.05);
}

.portal-company-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.portal-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* Input de Cédula */
.cedula-input-group {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #e2e8f0;
  transition: all 0.25s ease;
}

.cedula-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.cedula-prefix {
  max-width: 80px;
  background-color: #f8fafc;
  border: none;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.cedula-input {
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.15rem;
}

.cedula-input:focus {
  outline: none;
  box-shadow: none;
}

/* Botón de consulta */
.portal-btn {
  background: var(--primary-color);
  border: none;
  border-radius: 1.15rem;
  padding: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
  color: white;
}

.portal-btn:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
  color: white;
}

.portal-btn:active {
  transform: translateY(1px);
}

/* Tarjeta de Contratos Encontrados */
.contract-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.35rem;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
  animation: fadeInUp 0.35s ease;
}

.contract-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  transform: translateY(-2px);
}

.amount-badge-usd {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  background: #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: 0.65rem;
}

.amount-badge-ves {
  font-size: 1.4rem;
  font-weight: 800;
  color: #16a34a;
}

.bcv-rate-pill {
  display: inline-flex;
  align-items: center;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Footer del portal */
.portal-footer {
  margin-top: 2rem;
}
