:root{
  --pf-azul:#3682C1;    /* confianza */
  --pf-verde:#A3D9A5;   /* frescura */
  --pf-amarillo:#FFE66D;/* acento */
  --pf-gris:#4A4A4A;    /* texto */
  --pf-azul-10: rgba(54,130,193,.1);
  --pf-verde-08: rgba(163,217,165,.08);
}

body{ 
  color: var(--pf-gris); 
}

.btn-pf{ 
  background:var(--pf-azul); 
  border:none; 
  color:#fff; 
}

.btn-pf:hover{ 
  background:#2d6da1; 
  color:#fff;
}

.badge-accent{ 
  background:var(--pf-amarillo); 
  color:#1f2937; 
  font-weight:600; 
}

.card-pf{ 
  border:1px solid #eaeaea; 
  box-shadow:0 8px 24px rgba(0,0,0,.06); 
}

/* Estilos específicos del landing */
.pf-hero{
  background:linear-gradient(180deg, var(--pf-azul-10), var(--pf-verde-08));
}

.pf-chip{
  background:var(--pf-amarillo); 
  color:#1f2937; 
  font-weight:600; 
  padding:.35rem .6rem; 
  border-radius:999px;
}

.pf-primary{
  color:var(--pf-azul)!important
}

.pf-price{
  font-size:2.2rem; 
  font-weight:700
}

.pf-ugly{
  outline:3px solid var(--pf-amarillo)
}

.pf-icon{
  width:44px; 
  height:44px; 
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  border-radius:999px
}

.pf-icon.blue{
  background:rgba(54,130,193,.15); 
  color:var(--pf-azul)
}

.pf-icon.green{
  background:rgba(163,217,165,.35); 
  color:#1f7a1a
}

.pf-icon.yellow{
  background:rgba(255,230,109,.5); 
  color:#8a6b00
}

.pf-footer a{
  color:#6b7280; 
  text-decoration:none
}

.pf-footer a:hover{
  text-decoration:underline
}

.pf-demo-img{
  border-radius:.75rem; 
  width:100%; 
  height:auto; 
  box-shadow:0 8px 24px rgba(0,0,0,.12)
}

.pf-cta-bullets small{
  display:inline-flex; 
  align-items:center; 
  gap:.35rem
}

/* Pricing toggle */
.pf-toggle .form-check-input{
  cursor:pointer
}

.pf-toggle .label{
  font-weight:600
}

.pf-muted{
  opacity:.55
}

/* Modal video */
.modal-video iframe{
  width:100%; 
  height:60vh
}

/* Dashboard Sidebar Styles */
.pf-sidebar {
  position: fixed;
  top: 76px;
  left: 0;
  width: 250px;
  height: calc(100vh - 76px);
  border-right: 1px solid #eaeaea;
  box-shadow: 2px 0 8px rgba(0,0,0,.06);
  z-index: 1000;
  overflow-y: auto;
}

/* Main content adjustment when sidebar is fixed */
@media (min-width: 992px) {
  .dashboard-main-content {
    margin-left: 250px;
  }
}

/* Hide sidebar on mobile */
@media (max-width: 991.98px) {
  .pf-sidebar {
    position: fixed;
    left: -250px;
    transition: left 0.3s ease;
  }
  
  .pf-sidebar.show {
    left: 0;
  }
  
  .dashboard-main-content {
    margin-left: 0;
  }
}

.pf-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--pf-gris);
  text-decoration: none;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pf-nav-link:hover {
  background-color: var(--pf-azul-10);
  color: var(--pf-azul);
  transform: translateX(4px);
}

.pf-nav-link.active {
  background-color: rgba(255, 230, 109, 0.15);
  border-left: 3px solid var(--pf-amarillo);
  color: var(--pf-azul);
  font-weight: 600;
}

.pf-nav-link .pf-icon {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

/* Dashboard Cards */
.pf-dashboard-card {
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.pf-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.pf-stat-card {
  position: relative;
  padding: 1.5rem;
}

.pf-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pf-azul);
  margin-bottom: 0.25rem;
}

.pf-stat-label {
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pf-stat-change {
  font-size: 0.875rem;
  font-weight: 600;
}

.pf-stat-change.positive {
  color: #10b981;
}

.pf-stat-change.negative {
  color: #ef4444;
}

/* Dashboard Tables */
.pf-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.pf-table .table {
  margin-bottom: 0;
}

.pf-table .table th {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
  color: var(--pf-gris);
  font-weight: 600;
  padding: 1rem;
}

.pf-table .table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f3f4;
}

.pf-table .table tbody tr:hover {
  background-color: var(--pf-azul-10);
}

/* Status badges */
.pf-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pf-badge.pendiente {
  background-color: rgba(255, 193, 7, 0.15);
  color: #d97706;
}

.pf-badge.aceptado {
  background-color: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.pf-badge.rechazado {
  background-color: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

/* Sidebar logout button */
.pf-sidebar .btn-outline-danger {
  border-color: #dc2626;
  color: #dc2626;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pf-sidebar .btn-outline-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: white;
  transform: translateY(-2px);
}

/* Form styles for dashboard */
.pf-form-control {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.pf-form-control:focus {
  border-color: var(--pf-azul);
  box-shadow: 0 0 0 3px rgba(54, 130, 193, 0.1);
}

.pf-form-label {
  font-weight: 600;
  color: var(--pf-gris);
  margin-bottom: 0.5rem;
}

/* Dashboard specific buttons */
.btn-pf-outline {
  border: 2px solid var(--pf-azul);
  color: var(--pf-azul);
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-pf-outline:hover {
  background: var(--pf-azul);
  color: white;
  border-color: var(--pf-azul);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(54, 130, 193, 0.3);
}

.btn-pf-outline:focus {
  background: var(--pf-azul);
  color: white;
  border-color: var(--pf-azul);
  box-shadow: 0 0 0 3px rgba(54, 130, 193, 0.2);
}

.btn-pf-success {
  background: #10b981;
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-pf-success:hover {
  background: #059669;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-pf-success:focus {
  background: #059669;
  color: white;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-pf-warning {
  background: var(--pf-amarillo);
  border: none;
  color: #1f2937;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-pf-warning:hover {
  background: #fcd34d;
  color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 230, 109, 0.4);
}

.btn-pf-warning:focus {
  background: #fcd34d;
  color: #1f2937;
  box-shadow: 0 0 0 3px rgba(255, 230, 109, 0.3);
}

/* Botones primarios del dashboard */
.btn-pf {
  background: var(--pf-azul);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-pf:hover {
  background: #2d6da1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(54, 130, 193, 0.3);
}

.btn-pf:focus {
  background: #2d6da1;
  color: white;
  box-shadow: 0 0 0 3px rgba(54, 130, 193, 0.2);
}

.btn-pf:active {
  background: #245580;
  transform: translateY(0);
}

/* Footer fijo solo en desktop */
@media (min-width: 992px) {
    .pf-footer {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1020;
    }

    body {
        padding-bottom: 80px; /* Espacio para el footer fijo */
    }
}

/* En móvil, footer normal */
@media (max-width: 991.98px) {
    .pf-footer {
        position: relative !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.loading-icon {
    font-size: 3rem;
    color: var(--pf-azul);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-title {
    color: var(--pf-azul);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loading-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, var(--pf-azul), var(--pf-verde));
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.step.active {
    background-color: rgba(54, 130, 193, 0.1);
}

.step.completed {
    background-color: rgba(163, 217, 165, 0.1);
}

.step-icon {
    color: #dee2e6;
    transition: color 0.3s ease;
}

.step.active .step-icon {
    color: var(--pf-azul);
}

.step.completed .step-icon {
    color: var(--pf-verde);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}