/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
  --eden-primary: #0B6859;
  --eden-secondary: #1B444F;
  --eden-text: #212529;
  --eden-text-light: #888888;
  --eden-bg: #FAFAFB; /* Fondo gris súper claro / casi blanco */
  --eden-sidebar-bg: #FFFFFF;
  --eden-border: #E5E7EB;
  --eden-active-bg: #EAF2F0; /* Verde suave para botones y menú */
  --eden-asterisk: #C04A4A; /* Color del asterisco */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--eden-bg);
  color: var(--eden-text);
  line-height: 1.5;
}

/* El asterisco rojo/marrón para ambos formularios */
.asterisk-color {
  color: var(--eden-asterisk);
  margin-left: 2px;
}

/* =========================================
   LAYOUT PARA ESCRITORIO
   ========================================= */
.desktop-container {
  display: flex;
  min-height: 100vh;
}

.desktop-sidebar {
  width: 260px;
  background: var(--eden-sidebar-bg);
  border-right: 1px solid var(--eden-border);
  padding: 20px 0;
}

.desktop-logo {
  padding: 0 20px 30px;
  display: flex;
  align-items: center;
}

.desktop-menu { list-style: none; }
.desktop-menu li { margin-bottom: 5px; }
.desktop-menu a {
  color: #333333;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 0 15px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 14px;
}

.desktop-menu a i {
  width: 25px;
  font-size: 16px;
  margin-right: 12px;
  text-align: center;
  color: #555;
}

.desktop-menu li.active a { background-color: var(--eden-active-bg); color: var(--eden-text); font-weight: 500; }
.desktop-menu li.active a i { color: var(--eden-primary); }
.desktop-menu a:hover:not(.active) { background-color: #F3F4F6; }

.desktop-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--eden-bg);
}

.desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px 0;
  background: transparent;
}

.header-title { font-size: 24px; font-weight: 300; color: var(--eden-text); }

.btn-oficina-virtual {
  background-color: var(--eden-active-bg);
  color: var(--eden-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-oficina-virtual:hover { background-color: #dce7e4; }

.payment-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 20px;
  margin-top: -60px;
}

.payment-icon { font-size: 65px; margin-bottom: 20px; }
.payment-title { font-size: 20px; font-weight: 500; margin-bottom: 8px; color: var(--eden-text); }
.payment-lead { font-size: 13px; color: var(--eden-text-light); margin-bottom: 30px; }

.eden-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-group { width: 100%; text-align: left; margin-bottom: 25px; }
.eden-form label { display: block; font-weight: 400; font-size: 13px; margin-bottom: 8px; color: var(--eden-secondary); }
.eden-form input {
  width: 100%;
  padding: 12px 15px;
  font-size: 14px;
  border: 1px solid var(--eden-border);
  border-radius: 8px;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease;
}
.eden-form input:focus { border-color: var(--eden-primary); outline: none; }

.eden-btn {
  background: var(--eden-primary);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.eden-btn:hover { background: var(--eden-secondary); }

/* =========================================
   ESTILOS GLOBALES (LOADER)
   ========================================= */
#loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #FFFFFF; display: none; flex-direction: column;
  justify-content: center; align-items: center; z-index: 10000;
}
.spinner {
  width: 60px; height: 60px; border: 4px solid var(--eden-primary);
  border-left-color: transparent; border-bottom-color: transparent;
  border-radius: 50%; animation: spin 0.8s ease-in-out infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#loader p { margin-top: 15px; color: var(--eden-primary); font-size: 1em; }

/* =========================================
   LAYOUT PARA MÓVIL (Max 992px)
   ========================================= */
.mobile-container { display: none; }

@media (max-width: 992px) {
  .desktop-container { display: none; }
  
  .mobile-container { 
    display: flex; 
    flex-direction: column;
    max-width: 100%; 
    margin: 0 auto; 
    background: var(--eden-bg); /* Fondo integrado */
    min-height: 100vh; 
    position: relative; 
  }
  
  /* Nuevo Encabezado Móvil (Sin fondo verde) */
  .mobile-header {
    background: transparent;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  /* Botón menú (Hamburguesa) Verde */
  .mobile-menu-btn {
    color: var(--eden-primary);
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  /* Botón Oficina virtual móvil */
  .btn-oficina-virtual-mobile {
    background-color: var(--eden-active-bg);
    color: var(--eden-primary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
  }
  
  /* Menú lateral (Igual que antes) */
  .mobile-sidebar {
    position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
    background: #FFFFFF; color: var(--eden-text); padding: 25px 0;
    z-index: 1000; transition: left 0.3s ease; overflow-y: auto;
    border-right: 1px solid var(--eden-border);
  }
  .mobile-sidebar.active { left: 0; }
  .mobile-sidebar-logo { padding: 0 25px 25px; border-bottom: 1px solid var(--eden-border); margin-bottom: 15px; }
  .mobile-menu { list-style: none; }
  .mobile-menu li { margin-bottom: 5px; }
  .mobile-menu a {
    color: var(--eden-text); text-decoration: none; display: flex;
    align-items: center; padding: 12px 25px; transition: all 0.3s; font-size: 15px;
  }
  .mobile-menu a i { width: 25px; margin-right: 10px; color: #555; }
  .mobile-menu a:hover { background-color: var(--eden-bg); }
  
  .overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 999; display: none;
  }
  .overlay.active { display: block; }

  /* Nuevo Contenido Móvil (Sin tarjeta blanca) */
  .mobile-content { 
    padding: 40px 20px; 
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .payment-section-mobile {
    width: 100%;
    max-width: 380px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .payment-section-mobile .payment-icon {
    font-size: 80px; /* Ícono grande como en la imagen */
    margin-bottom: 25px;
  }
  
  .payment-title-mobile {
    font-size: 20px;
    font-weight: 400;
    color: var(--eden-text);
    margin-bottom: 10px;
  }
  
  .payment-lead-mobile {
    font-size: 13px;
    color: var(--eden-text-light);
    margin-bottom: 40px;
    line-height: 1.4;
  }
  
  /* Nuevo Formulario Móvil */
  .eden-form-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar el botón */
  }
  
  .eden-form-mobile .input-group {
    width: 100%;
    text-align: left;
    margin-bottom: 25px;
  }

  .eden-form-mobile label {
    display: block;
    font-size: 14px;
    color: var(--eden-secondary);
    margin-bottom: 8px;
  }
  
  .eden-form-mobile input {
    width: 100%;
    padding: 14px;
    border: 1px solid #EAEAEA;
    border-radius: 8px; /* Bordes algo redondeados */
    background-color: #FFFFFF;
    font-size: 15px;
  }
  
  /* Botón móvil centrado y forma de píldora */
  .eden-btn-mobile {
    background: var(--eden-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px; /* Redondeado total */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: auto; /* Ya no ocupa el 100% del ancho */
  }
}