/* Instagram Style CSS - La Medrano Coaching */
/* Tema blanco y negro elegante - Mismo estilo del instalador */

:root {
  --primary-black: #000000;
  --secondary-black: #262626;
  --dark-gray: #8e8e8e;
  --medium-gray: #dbdbdb;
  --light-gray: #fafafa;
  --pure-white: #ffffff;
  --accent-red: #ed4956;
  --success-green: #00a400;
  --instagram-gradient: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

/* ===== ESTILOS GENERALES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pure-white);
  color: var(--primary-black);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ===== COMPONENTES DE FORMULARIO ===== */
.form-control-instagram {
  border: 2px solid var(--medium-gray);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--pure-white);
  color: var(--primary-black);
}

.form-control-instagram:focus {
  border-color: var(--primary-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
  background: var(--pure-white);
  outline: none;
}

.form-label-instagram {
  font-weight: 600;
  color: var(--secondary-black);
  margin-bottom: 8px;
  font-size: 14px;
  display: block;
}

/* ===== BOTONES ===== */
.btn-instagram {
  background: var(--primary-black);
  color: var(--pure-white);
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
}

.btn-instagram:hover {
  background: var(--secondary-black);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-instagram:active {
  transform: translateY(0);
}

.btn-instagram-outline {
  background: transparent;
  border: 2px solid var(--primary-black);
  color: var(--primary-black);
}

.btn-instagram-outline:hover {
  background: var(--primary-black);
  color: var(--pure-white);
}

.btn-instagram-gradient {
  background: var(--instagram-gradient);
  color: var(--pure-white);
  border: none;
}

.btn-instagram-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(224, 48, 108, 0.4);
  color: var(--pure-white);
}

/* ===== CARDS ===== */
.card-instagram {
  border: 1px solid var(--medium-gray);
  border-radius: 15px;
  background: var(--pure-white);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card-instagram:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card-header-instagram {
  background: var(--pure-white);
  border-bottom: 1px solid var(--medium-gray);
  padding: 20px;
  font-weight: 600;
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: between;
  border-radius: 15px 15px 0 0 !important;
}

.card-body-instagram {
  padding: 25px;
  background: var(--pure-white);
  border-radius: 0 0 15px 15px;
}

/* ===== NAVBAR ===== */
.navbar-instagram {
  background: var(--pure-white);
  border-bottom: 1px solid var(--medium-gray);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand-instagram {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-black) !important;
  text-decoration: none;
}

.navbar-nav-instagram .nav-link {
  color: var(--secondary-black) !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-nav-instagram .nav-link:hover {
  background: var(--light-gray);
  color: var(--primary-black) !important;
}

.navbar-nav-instagram .nav-link.active {
  background: var(--primary-black);
  color: var(--pure-white) !important;
}

/* ===== POSTS ESTILO INSTAGRAM ===== */
.post-container {
  max-width: 614px;
  margin: 0 auto 20px;
  background: var(--pure-white);
  border: 1px solid var(--medium-gray);
  border-radius: 15px;
  overflow: hidden;
}

.post-header {
  padding: 16px;
  border-bottom: 1px solid var(--medium-gray);
  display: flex;
  align-items: center;
  background: var(--pure-white);
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid var(--primary-black);
  object-fit: cover;
}

.post-username {
  font-weight: 600;
  color: var(--primary-black);
  text-decoration: none;
}

.post-username:hover {
  color: var(--secondary-black);
}

.post-image {
  width: 100%;
  height: auto;
  display: block;
}

.post-actions {
  padding: 12px 16px;
  border-bottom: 1px solid var(--medium-gray);
  background: var(--pure-white);
  display: flex;
  gap: 15px;
}

.post-action-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-black);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 5px;
}

.post-action-btn:hover {
  color: var(--accent-red);
  transform: scale(1.1);
}

.post-likes {
  padding: 8px 16px;
  font-weight: 600;
  color: var(--primary-black);
}

.post-caption {
  padding: 0 16px 12px;
  color: var(--primary-black);
}

/* ===== PROGRESS BARS ===== */
.progress-instagram {
  height: 8px;
  background-color: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-bar-instagram {
  background: var(--primary-black);
  transition: width 0.6s ease;
  height: 100%;
}

.progress-bar-gradient {
  background: var(--instagram-gradient);
}

/* ===== BADGES ===== */
.badge-instagram {
  background: var(--primary-black);
  color: var(--pure-white);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-gradient {
  background: var(--instagram-gradient);
}

.badge-success {
  background: var(--success-green);
}

.badge-danger {
  background: var(--accent-red);
}

/* ===== ALERTS ===== */
.alert-instagram {
  border: 1px solid var(--medium-gray);
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  background: var(--pure-white);
}

.alert-success {
  border-left: 4px solid var(--success-green);
  background: #f0f9f0;
}

.alert-danger {
  border-left: 4px solid var(--accent-red);
  background: #fef0f0;
}

.alert-warning {
  border-left: 4px solid #ffc107;
  background: #fffbf0;
}

.alert-info {
  border-left: 4px solid #17a2b8;
  background: #f0f9ff;
}

/* ===== UTILIDADES ===== */
.text-gradient {
  background: var(--instagram-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(var(--pure-white), var(--pure-white)) padding-box,
              var(--instagram-gradient) border-box;
}

.shadow-instagram {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.rounded-instagram {
  border-radius: 15px;
}

/* ===== ANIMACIONES ===== */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
  }
  100% { 
    transform: scale(1); 
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card-body-instagram {
    padding: 20px;
  }
  
  .post-container {
    margin: 0 10px 20px;
    border-radius: 10px;
  }
  
  .btn-instagram {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .navbar-nav-instagram .nav-link {
    margin: 0 5px;
    padding: 6px 12px !important;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .card-body-instagram {
    padding: 15px;
  }
  
  .form-control-instagram {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .post-header {
    padding: 12px;
  }
  
  .post-actions {
    padding: 10px 12px;
  }
}

/* ===== ESPECÍFICO PARA INSTALADOR ===== */
.install-container {
  min-height: 100vh;
  background: var(--pure-white);
  padding: 50px 0;
}

.install-card {
  background: var(--pure-white);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 1px solid var(--medium-gray);
  padding: 40px;
  margin: 30px auto;
  max-width: 800px;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--medium-gray);
  z-index: 1;
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
  color: var(--dark-gray);
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--primary-black);
  color: var(--pure-white);
  transform: scale(1.1);
}

.step.completed .step-number {
  background: var(--success-green);
  color: var(--pure-white);
}

.step-content {
  animation: fadeIn 0.5s ease-in;
}

.requirement-check {
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  border-left: 4px solid var(--medium-gray);
  background: var(--pure-white);
  transition: all 0.3s ease;
}

.requirement-check.success {
  background: #f0f9f0;
  border-left-color: var(--success-green);
}

.requirement-check.error {
  background: #fef0f0;
  border-left-color: var(--accent-red);
}

.requirement-check.warning {
  background: #fffbf0;
  border-left-color: #ffc107;
}

.password-strength-bar {
  height: 6px;
  border-radius: 3px;
  margin-top: 5px;
  transition: all 0.3s ease;
}

/* SIDEBAR - Blanco/Negro, Estrecho, Padding 10px */
.profile-sidebar {
    width: 220px;
    background: var(--pure-white);
    border-right: 1px solid var(--medium-gray);
    padding: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.profile-sidebar .nav-link {
    color: var(--primary-black) !important;
    font-weight: 500;
    font-size: 14.5px;
    padding: 12px 10px !important;
    border-radius: 8px;
    margin: 4px 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-sidebar .nav-link:hover {
    background: #f0f0f0;
    color: var(--primary-black) !important;
    transform: translateX(2px);
}

.profile-sidebar .nav-link.active {
    background: var(--primary-black) !important;
    color: var(--pure-white) !important;
    font-weight: 600;
}

/* Modo oscuro */
.dark-mode .profile-sidebar {
    background: #1a1a1a;
    border-right-color: #333;
}

.dark-mode .profile-sidebar .nav-link {
    color: #e0e0e0 !important;
}

.dark-mode .profile-sidebar .nav-link:hover {
    background: #2a2a2a;
}

.dark-mode .profile-sidebar .nav-link.active {
    background: var(--pure-white) !important;
    color: var(--primary-black) !important;
}

/* PROGRESO LINEAL - MODO OSCURO */
.progress {
    background-color: #e9ecef !important;
}

.dark-mode .progress {
    background-color: #333 !important;
}

.dark-mode .progress-bar {
    background: linear-gradient(90deg, #0d6efd, #0d8bfd) !important;
}

.progress-bar {
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

main {
  background-color: #FAF3F0 !important;
}