/* ===== USER PROFILE PAGE CSS - KOPI ===== */

/* Variables */
:root {
  --primary-color: #160503;
  --primary-color-opacity: rgba(22, 5, 3, 0.76);
  --background-white: #FFF;
  --primary-brown: #9F5524;
  --background-gray: #F3F4F6;
  --light-gray: #E5E7EB;
  --success-green: #10B981;
  --error-red: #EF4444;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 20px rgba(22, 5, 3, 0.08);
  --shadow-hover: 0 8px 30px rgba(22, 5, 3, 0.15);
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--background-gray);
  color: var(--primary-color);
  line-height: 1.6;
}

/* ===== LAYOUT PRINCIPAL ===== */
#contenido {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: calc(100vh - 120px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 40px;
}

/* ===== SIDEBAR IZQUIERDO ===== */
#izquierdo {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
  height: fit-content;
  position: sticky;
  top: 40px;
}

.centro {
  text-align: left;
}

#t2 {
  color: var(--primary-brown);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#t2:hover {
  color: var(--primary-color);
}

#t2::before {
  content: '←';
  font-size: 16px;
}

#t1 {
  font-family: 'Amaranth', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
}

#t1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-brown);
  border-radius: 2px;
}

/* Menu de navegación */
#fe {
  list-style: none;
  padding: 0;
  margin: 0;
}

#fe li {
  padding: 15px 20px;
  margin-bottom: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
  position: relative;
  color: var(--primary-color-opacity);
}

#fe li:hover {
  background: var(--background-gray);
  color: var(--primary-color);
  transform: translateX(5px);
}

#fe li.active {
  background: linear-gradient(135deg, var(--primary-brown), #8B4513);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(159, 85, 36, 0.3);
}

#fe li.active::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary-brown);
  border-radius: 2px;
}

/* ===== CONTENIDO PRINCIPAL ===== */
#derecho {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

#df {
  padding: 40px;
}

#w1 {
  font-family: 'Amaranth', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--background-gray);
}

/* ===== CAMPOS DE DATOS ===== */
.campo-grupo {
  margin-bottom: 25px;
}

.raspa {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-brown);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jh {
  display: block;
  width: 100%;
}

.subrayado {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
  padding: 12px 0;
  border-bottom: 2px solid var(--light-gray);
  width: 100%;
  transition: var(--transition-smooth);
  background: transparent;
}

.subrayado:hover {
  border-bottom-color: var(--primary-brown);
}

.subrayado:focus {
  outline: none;
  border-bottom-color: var(--primary-brown);
  box-shadow: 0 2px 0 var(--primary-brown);
}

/* Estado de carga */
.subrayado.loading {
  color: var(--primary-color-opacity);
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* ===== SECCIONES DE CONTENIDO ===== */
.seccion-contenido {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.seccion-contenido.active {
  display: block;
}

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

/* Sección de contacto */
.contacto-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Sección de métodos de pago */
.metodos-pago {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tarjeta-pago {
  background: var(--background-gray);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.tarjeta-pago:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
}

.icono-tarjeta {
  width: 40px;
  height: 40px;
  background: var(--primary-brown);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.info-tarjeta h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.info-tarjeta p {
  font-size: 14px;
  color: var(--primary-color-opacity);
}

/* Agregar método de pago */
.agregar-metodo {
  border: 2px dashed var(--light-gray);
  background: transparent;
  color: var(--primary-color-opacity);
  justify-content: center;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.agregar-metodo:hover {
  border-color: var(--primary-brown);
  color: var(--primary-brown);
  background: rgba(159, 85, 36, 0.05);
}

/* ===== BOTONES DE ACCIÓN ===== */
.acciones {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--background-gray);
  display: flex;
  gap: 15px;
}

.btn-accion {
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-brown), #8B4513);
  color: white;
  box-shadow: 0 4px 15px rgba(159, 85, 36, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(159, 85, 36, 0.4);
}

.btn-secondary {
  background: var(--background-gray);
  color: var(--primary-color);
  border: 2px solid var(--light-gray);
}

.btn-secondary:hover {
  background: var(--light-gray);
  border-color: var(--primary-brown);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  #contenido {
    grid-template-columns: 300px 1fr;
    gap: 30px;
  }
  
  #izquierdo {
    padding: 30px 20px;
  }
  
  #df {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  #contenido {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
  }
  
  #izquierdo {
    position: static;
    padding: 25px 20px;
  }
  
  #t1 {
    font-size: 1.8rem;
  }
  
  #fe {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
  }
  
  #fe li {
    white-space: nowrap;
    margin-bottom: 0;
    min-width: max-content;
  }
  
  .contacto-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .acciones {
    flex-direction: column;
  }
  
  .btn-accion {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #t1 {
    font-size: 1.5rem;
  }
  
  #df {
    padding: 20px;
  }
  
  .raspa {
    font-size: 12px;
  }
  
  .subrayado {
    font-size: 14px;
  }
}