/* ==========================================================
   ESTILOS INSTITUCIONALES - TECH HOME BOLIVIA
   Estilos unificados para: sobre_nosotros.php, ver_perfil.php, configuracion.php
   ========================================================== */

/* ==========================================================
   ESTILOS BASE COMPARTIDOS
   ========================================================== */

/* Toques modernos manteniendo la estructura base */
.modern-gradient-bg {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.05) 0%,
    rgba(32, 201, 151, 0.05) 100%
  );
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Espaciado superior para evitar superposición con header */
.main-content-section {
  margin-top: 120px;
  padding-top: 80px;
}

/* Efectos de pulso */
.pulse-effect {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
}

/* ==========================================================
   ESTILOS PARA SOBRE NOSOTROS
   ========================================================== */

/* Timeline Styles */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, #28a745, #20c997);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 50px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
}

.timeline-year {
  position: absolute;
  top: 20px;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-year {
  right: -30px;
}

.timeline-item:nth-child(even) .timeline-year {
  left: -30px;
}

.year-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  border: 4px solid white;
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #28a745;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-left-color: #20c997;
}

.timeline-content h4 {
  margin-bottom: 15px;
  font-size: 1.3em;
}

.timeline-content p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Triangular pointers */
.timeline-item:nth-child(odd) .timeline-content::before {
  content: "";
  position: absolute;
  top: 25px;
  right: -10px;
  border: 10px solid transparent;
  border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  content: "";
  position: absolute;
  top: 25px;
  left: -10px;
  border: 10px solid transparent;
  border-right-color: white;
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(40, 167, 69, 0.1);
}

.team-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #20c997;
}

.team-card-modern .thb-box {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card-modern .thb-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.team-card-modern:hover .thb-box::before {
  left: 100%;
}

.team-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 25px;
  text-align: center;
  position: relative;
}

.team-header::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #20c997;
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  font-weight: bold;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.team-name {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 5px;
}

.team-role {
  font-size: 0.9em;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-content {
  padding: 25px;
}

.team-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.team-skills {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-skills li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.team-skills li:last-child {
  border-bottom: none;
}

.skill-name {
  color: #333;
  font-weight: 500;
}

.skill-level {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
}

.stats-highlight {
  position: relative;
  font-weight: bold;
  background: linear-gradient(45deg, #28a745, #20c997);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================
   ESTILOS PARA PERFIL DE USUARIO
   ========================================================== */

/* Profile Header */
.profile-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 60px 0;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M0,0v60c50,0,100-50,150-50s100,50,150,50s100-50,150-50s100,50,150,50s100-50,150-50s100,50,150,50s100-50,150-50V0H0z"/></svg>')
    repeat-x bottom;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 48px;
  font-weight: bold;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-name {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-email {
  font-size: 1.2em;
  opacity: 0.9;
  margin-bottom: 20px;
}

.profile-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Profile Info Sections */
.profile-info-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid rgba(40, 167, 69, 0.1);
  transition: all 0.3s ease;
}

.profile-info-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #20c997;
}

.section-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.info-item {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid #28a745;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: #e9ecef;
  border-left-color: #20c997;
  transform: translateX(5px);
}

.info-label {
  font-size: 0.9em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.info-value {
  font-size: 1.1em;
  color: #333;
  font-weight: 500;
}

/* Statistics Cards */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(40, 167, 69, 0.4);
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9em;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.btn-custom {
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
  color: white;
  text-decoration: none;
}

.btn-outline-custom {
  background: transparent;
  color: #28a745;
  border-color: #28a745;
}

.btn-outline-custom:hover {
  background: #28a745;
  color: white;
  transform: translateY(-3px);
  text-decoration: none;
}

/* ==========================================================
   ESTILOS PARA CONFIGURACIÓN
   ========================================================== */

/* Configuration Header */
.config-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 50px 0;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.config-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M0,0v60c50,0,100-50,150-50s100,50,150,50s100-50,150-50s100,50,150,50s100-50,150-50s100,50,150,50s100-50,150-50V0H0z"/></svg>')
    repeat-x bottom;
}

.config-avatar {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  font-weight: bold;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.config-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.config-subtitle {
  font-size: 1.1em;
  opacity: 0.9;
}

.config-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid rgba(40, 167, 69, 0.1);
  transition: all 0.3s ease;
}

.config-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #20c997;
}

/* Form Styles */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 1em;
}

.form-control-custom {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control-custom:focus {
  outline: none;
  border-color: #28a745;
  background: white;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control-custom:disabled {
  background-color: #e9ecef;
  opacity: 0.6;
  cursor: not-allowed;
}

.form-control-custom[type="date"] {
  padding: 13px 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.btn-config {
  padding: 15px 40px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary-config {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary-config:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
  color: white;
}

.btn-secondary-config {
  background: #6c757d;
  color: white;
}

.btn-secondary-config:hover {
  background: #545b62;
  transform: translateY(-3px);
  color: white;
  text-decoration: none;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: none;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.1),
    rgba(32, 201, 151, 0.1)
  );
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-error {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1),
    rgba(255, 0, 0, 0.1)
  );
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.form-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #dee2e6, transparent);
  margin: 30px 0;
}

.config-actions {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.back-link {
  color: #28a745;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #20c997;
  text-decoration: none;
  transform: translateX(-5px);
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */

/* Mobile Timeline */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 80px !important;
    padding-right: 20px !important;
  }

  .timeline-year {
    left: 0 !important;
    right: auto !important;
  }

  .timeline-content::before {
    left: -10px !important;
    right: auto !important;
    border-left-color: transparent !important;
    border-right-color: white !important;
  }

  /* Mobile forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .config-actions {
    flex-direction: column;
    gap: 20px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-custom,
  .btn-config {
    text-align: center;
  }

  /* Mobile grids */
  .info-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
